Peel the onions and cut into half rings. Mix the crème fraîche, egg yolks and diced bacon and season with salt and pepper.
Line a greased tart pan with the puff pastry. Spread the crème fraîche mixture on top. Put the onions on top. Cut the goat cheese into slices and spread on top.