@petergleick
"The duty to obey in the armed forces is governed by the Uniform Code of Military Justice (UCMJ). Articles 90, 91, and 92 require service members to obey lawful orders, creating a duty to disobey patently illegal ones. An order is unlawful if it directs a crime, violates the Constitution, or contravenes the laws of war.
The Nuremberg trials after World War II established that 'following orders' is not a defense for committing war crimes."
(from https://legalclarity.org/your-right-to-disobey-an-unlawful-order/ )
Let's take a moment to dwell on "creating a duty to disobey patently illegal [orders]".