Military personnel regularly pee in a cup for a drug search, don’t they? Same thing, really, right down to the naughty bits.
That’s different. You also swear to obey the orders of the (military) officers appointed over you. TSA agents are NOT officers under whom you serve.
Operation Golden Flows are ordered & held under proper military command authority, for the goood order and discipline of the service (it ain’t San Francisco you know dude).