There are some jobs – such as yours – that I’d have to think twice about accepting, because of the risk that I’d find it hard to set my political views aside. If I worked for a government with a policy I strongly disagreed with, and was asked to personally be part of making that policy happen, I don’t know whether I’d stand up for my beliefs in violation of the rules, or act like a professional and give in to peer pressure. There are obviously some examples where refusing to do your job is just being an arsehole at work, and other examples where just doing your job is objectively evil. I’m lucky enough to live in a reasonably civilised country where the latter are in a minority, but they still exist.
This isn’t theoretical. Had life and history taken a slightly different turn, I could have ended up with a job at GCHQ / NCSC implementing tools for spying on British citizens, something I now believe to be very wrong.
I don’t know how other people reconcile this conflict. For example, since Trump’s election, many good people in the US armed forces are in constant danger of being ordered to do something that runs counter to the oath they swore, something that undermines rather than defends the principles and safety of the US. How do they balance those competing demands? There will always be politicians you disagree with, whatever your political position, and that’s fine and to be expected; but the current president is an extreme example. Is there a point where they’d refuse orders? Or is the chain of command powerful enough to override their morals?