The issue is blackmailability -certainly it is there, beyond the embarrassment and family dislocation, consider the financial implications after having been married for almost 40 years (military pensions in the U.S. are considered a marital asset).
Supposedly this was going on while he was Commander ISAF and USFOR-A. When he became D/CIA a national background check was done (those who have had one done remember how they turn over every rock since you were a child).
In General Petraeus case supposedly this was done by the CIA rather than the FBI. So was this honking huge red flag as to blackmail potential overlooked, or was it considered not to be a risk because the affair was over. If it was the later, why a week before he was supposed to testify before Congress (and he can still be subpoenaed to do so) does he fall on his sword regarding the affair, if it was the former is this sort of being able to walk an elephant through the kitchen incompetence common these days?
Hogwash, hundreds of people would have known for more than a year. He was the commander in chief in Afghanistan forcrissakes, and he spent a lot of time with Paula, likely at night after his regular duties, he went regularly on 5 km runs with her, while his wife and her husband were back in Virginia. Americans are not only puritans, but also naive.

