Confit comes from southwest France, where duck legs were salted and slow cooked in their own fat to keep for months.
Save the fat for potatoes.