There are certain things that your boss can't legally do; if he's doing these, he's violating laws. He can't forbid you to discuss your salary. A boss can't ask prohibited questions during a job interview and force you to sign a project.