I'm in the US military, and although there isn't a public spreadsheet with a line for "warner25: $xxx,xxx" you could work out my income if you knew my rank, years of service, location, etc. along with how our pay is structured. Most people outside the system (i.e. my parents and extended family) wouldn't work this out easily, and probably think that my income is much lower than it really is. My co-workers, on the other hand, could probably figure out my income down to the last penny. I think this arrangement doesn't cause strife for two reasons that don't apply to most citizens in the private sector:
1. We knew the deal (how we would get paid, and that it's public knowledge) when we signed up. It's a not a leak.
2. Even if some higher paid co-worker seems like a clown or worse (toxic and counter-productive), we all know exactly what it takes to reach that same level of pay... i.e. a well-defined and generally attainable combination of years, education, certifications, and experiences to get promoted. So you don't need to pay everyone the same amount for the same role, but you do need this kind of deterministic structure.
It seems like number 2, in particular, has no equivalent in the private sector where pay is based on fluid market competition and negotiation and the whims or biases of hiring managers.