It is safe if constructed carefully. You would not want the light bulb touching the metal. This way if the bulb breaks, it does not short to the ground.
The VERY IMPORTANT part in using any outdoor electrical items, is a GFCI protected electric supply.
It very minute things seem to be...