Top leaks are usually connection leaks, and connection leaks are what hard water produces. The heater is fine; the joint between the heater and the house has given up.
Where the water comes from
The inlet and outlet nipples. Dielectric nipples separate steel from copper to slow corrosion. When that protection fails, the fitting corrodes from the inside and weeps.
The unions. A joint that has been disturbed, or one that was never quite tight, shows up as a slow drip that runs down the tank and looks like a body leak.
The relief valve. Discharge at the top of the tank, often through a pipe, is the relief valve doing its job — or failing to reseat. Both are worth understanding.
The vent connector. On a gas unit, water at the flue collar is a venting or condensation problem rather than a plumbing one, and it gets attention for safety reasons.
Why this water is hard on joints
Helendale Community Services District reports average total hardness of 235 mg/L and total dissolved solids of 470 mg/L from its groundwater wells. Deposits gather at the places where water sits still — threads, seats, and the crevices inside a dielectric connection. Over years, that is where a fitting fails first.
The pressure clue
A leak that appears only during a heating cycle is telling you about pressure, not about the fitting alone. Thermal expansion on a closed system with a failed expansion tank pushes joints and relief valves past their limit. Replacing the washer without addressing the pressure is how the same leak returns.
What the repair involves
The heater is isolated, the joint is dried and confirmed, and the nipple, union or valve is replaced. The system is then run through a heat cycle to confirm the repair holds under pressure — which is the only test that matters for a leak that only appears when the unit is working.
When it is the tank
If water comes from the shell at the fitting rather than the thread, the tank has corroded around the connection. That is a replacement, and it should be planned rather than patched.
What to have ready
Where at the top the water appears, whether it happens only when heating, the tank's age, and whether there is an expansion tank on the system. Those answers usually separate joint, valve and pressure before anyone arrives.