I'm here on behalf of the federal government and won't be able to speak to provinces and municipalities. But I can tell you that for CETA it's article 19.3 that has a security and general exception clause:
Nothing in this Chapter shall be construed to prevent a Party from taking any action or from not disclosing any information that it considers necessary for the protection of its essential security interests....
It's similar to the other trade agreements.