> resignation is the proper action
Why not act according to your conscience and get fired if your employer really feels like it ?
Otherwise, in many circumstances a simple "is this legal?" question in a chat or chain of emails that I'll be there in case of discovery will have tremendous effects on whether some dubious thing is done willy nilly.