Oh, that makes sense! I can see rust issues being a problem when they're in that kind of environment.
For making yogurt, or storing a half-used jar in the fridge I use the plastic storage lids. I have used them for many years without any problems sterilizing them in the dishwasher. You could probably boil them for a bit in hot water if you were concerned about it, but I haven't done this. Hope this helps!