Painting a Master Cylinder

I've done several, with, Rustoleum, satin black. Clean the area, real well, first. -- If the, cylinder, lid is sealed, properly, and You are careful, when You put brake fluid in, then brake fluid, on the surface, should not be a problem.