Philip Agee, a former CIA case officer, is dead. Most commentary on the situation focuses on his writing _Inside the Company: CIA Diary_ and his outing of numerous CIA agents in his old haunts in Latin America (some of who subsequently received bullets in the back of the head).
The real lesson modern intelligence practitioners who disagree with the policies they are obliged to implement should take from old Phil? If you don’t like what is going on then quit. It’s the one respectable course of action you can take without getting yourself and others into (occasionally fatal) trouble, or subjecting yourself to the Cuban health care system.
If you’re not prepared to be a real whistle-blower (with all the slings and arrows that come with it), shut up and move on. You’re no hero otherwise; you’re just a gutless rat.