I'm friends with a lot of my exes but it took time. We didn't just get into it. I don't think you can be friends until you're cool with them dating someone else. That's when you know.
We don't have an Official Secrets Act in the United States as other countries do. Under the First Amendment freedom of the press freedom of speech and freedom of association are more important than protecting secrets.