It has taken me years to recognise this phenomenon but Wikipedia tells me that hexagonal ice crystals in high cirrus cloud refract the light of the Sun. It produces that bright patch to the right of the Sun which has the rainbow colours, suggesting the prism effect of refraction. That bright patch is the sundog or "mock Sun". In good conditions, you get one on either side of the Sun, and sometimes a circle around the Sun.