I have this assembly of stainless steel flex pipe and galvanized steel fittings at my cold water connection to my water heaters. The part where the cold water connects has a little bit of rust, and there were signs that the connection was leaking at one point, but the leaking has stopped. Naturally, I want to replace the rusty parts at a minimum to avoid complete failure down the line. A plumber told me that galvanized steel is contractor grade garbage and recommended replacing all the galvanized steel with brass fittings. However, my BS meter went off because I know that two different metals touching will cause galvanic corrosion. So what is the best solution here?
Pics of the install below. Not pictured is a shutoff valve on the cold water inlet. The shutoff valve has pex from the wall on one side and that stainless steel flex pipe on the other side which connects to the galvanized steel.


Pics of the install below. Not pictured is a shutoff valve on the cold water inlet. The shutoff valve has pex from the wall on one side and that stainless steel flex pipe on the other side which connects to the galvanized steel.



