As I've gotten older and more respected in my field, I've done the same. I've had C level staff demand I do things that I felt were unethical and I've outright refused. I had someone tell me the CEO supported an action and I told him he could get the CEO to do it but there was a 0% chance I'd have my name attached and he was welcome to let me go. There's a lot I'll do for money but I definitely ha e some things I won't do, like violate privacy.