You are currently exchanging your time for money / income. As an employee, you have a bit of an obligation to do as your boss asks, no matter how ridiculous you think it is.
A person can only 'walk away' when they have something else to go to, or have nothing to lose.
For the time being, you have a family to support, so keep your head down, do what you're asked, and make a change when possible.
Sometimes, having principles sucks. You won't make any real money (in a job) until you're about 45 y/o. So as long as you invest your time in someone else's business, do as your asked by the employer.
This mask bullshit will pass… the day after the US elections, Nov 4. Only 3 more months.