We all know that President Obama was never a transparent president, but who would have thought the former commander-in-chief would stoop to giving a secret speech about sports.

Yes, that’s right. The “most transparent president in history” — as Obama liked to call himself — spoke under a bizarre gag order during his appearance yesterday at the MIT Sloan Sports Analytics Conference at the Boston Convention & Exhibition Center.

What’s next? A gag order on Obama’s golf scores?

The media and audience members on hand for the conference were not only banned from recording or streaming the talk, but prohibited from even talking about what he said.

And if you violated the ban? The journalistic equivalent of the death penalty.

“Those who fail to adhere to this policy will be subject to removal from the conference and denied tickets to future SSAC conferences,” the conference warned.

Oh, no! We can’t cover any more SSAC events? How ever would we survive?

This is a tactic more suited to Russia than America. Scratch that. Even Russia under President Vladimir Putin wouldn’t pull this. Maybe the old Soviet Union.

Here in the U.S., it’s unheard of to ban reporting on a speech, even if it’s at a private event. Maybe banning cameras, but not actual freedom of speech.

But that’s exactly what the analytics conference demanded of everyone who attended the sold-out event. The conference even restricted when the audience could line up to get into the convention center. And if someone tried to pull their phone out during the speech, they were set upon by SSAC goons.

So, now we’ll never know what Obama told the sports nerds. We’ll never find out those hilarious stories the former president told about his basketball skills. Or how he once broke 90 on the golf course.

Obama fashions himself a jock, so maybe the conference was trying to shield him from any sports analytics fans who would try to embarrass him by asking questions about WHIP. (That’s walks plus hits per innings pitched, for those non-baseball nerds).

Or maybe Obama was worried someone would ask him how to pronounce “Comiskey Park” again.

Let’s face it, the speech wouldn’t have exactly made front page news if reporters had been allowed to report it. It might have managed 10 seconds of air time on local TV.

But we still should have been allowed to report how boring it was. In this country, we don’t allow politicians to issue gag orders.

Can you imagine if President Trump had tried to pull this? It would have been called a threat to the First Amendment, and another reason for impeachment.

But, this is Obama, who can do no wrong in the eyes of many in the media.

Nothing to see here. Literally.