Most "software engineers" don't have licenses/credentials backing up their job title, anyway. Compared to other industries, it's lightly regulated at best. So long as that's the case, I think the current balance, which includes the possibility that a programmer will be dismissed for failure to comply, is reasonable. From an HR and PR standpoint, companies who do so will be facing the threat of blowback related to disclosure that a programmer was fired for using their judgment on an ethics question rather than taking orders. That's not nothing.