This has dire consequences, as we can already see.
I made my boss clear that he's not doing me a faviour by employing me, but instead we've made a fair deal: I work in the companies interest, they give me money.
My leader in the company can help to organize and represent my work, however, he can not treat me like a resource nor give me orders.
I fared very well by being clear on this in the beginning. Now I am basically free to work on what I think what needs to be done.
It's a decision to accept authority over you. You do not have to. Often, you shouldn't.