It's not a taboo thing. In my contracts I've had always clause that all the information are confidential, including salary amount. And I can be sued by company if I break the agreement.
The other interesting thing is clause about installing not approved application on your laptop. Everybody does it - your favourite editor, messenger, file manager etc. But when they want to fire you, they say that you've broken the rule and you're going to be sued unless you agree to leave company immediately without any punishment.