Contextually, action in defense alliances like NATO can be secret.
Rapp-Hooper 15 – Mira Rapp-Hooper, Political Science PhD at Columbia University (earned by submitting this paper), Political Science MPhil at Columbia University. [Absolute Alliances: Extended Deterrence in International Politics, PhD thesis at Columbia University, https://doi.org/10.7916/D85Q4TWX]//BPS
Defense pacts may be symmetric or asymmetric, both in terms of the capabilities of member states and in terms of treaty obligations. They may form between major and minor powers, or between equals, and the treaty obligations may vary between partners or may be identical. If defense pacts specify an alliance duration when they enter into force, the mean specified length is seven and one-half years. In actuality, a typical defense pact lasts for about 20 years.36 Most defense pacts are public, but occasionally states sign defensive alliances in which part or all of the treaty is kept secret.37 Moreover, many defense pacts are quite specific—approximately half of non-security guarantee defense pacts specify an adversary, theater, alliance, or particular military contingency as the target of the pact.38
Footnote 37 begins:
37 Approximately 12% of all non-security guarantee defense pacts have secret clauses or are secret in their entirety.