Security Baseline

Kerckhoffs’s Principle (Non-Negotiable)

All applications, libraries, documents, and configuration files must remain secure even if their design, source code, and configuration are fully public. Security derives exclusively from secrets (keys, tokens, credentials), never from obscurity of implementation. This applies to every artifact in every project without exception.

Implications — violations of any of these are blocking defects:

  • No plaintext secrets, API keys, or credentials in source code or configuration files. A value encrypted at rest with vetted, standard crypto to keys held outside the repository (a committed SOPS+age store, for example) is permitted: the ciphertext, the policy, and the tooling are fully public and security rides entirely on the private key, which is exactly the posture this baseline demands. Required consideration: git history retains every past ciphertext, so removing a recipient protects only values encrypted after the removal — rotating the value is the real revocation.

  • No "hidden" endpoints, undocumented admin paths, or obscured URLs as security controls.

  • No proprietary algorithms or custom cryptography — use vetted, standard implementations.

  • No assumptions that attackers lack access to source code, CI configuration, or infrastructure details.

  • All security-relevant behavior must be auditable from the public source tree.

Public Visibility Enforcement

The repository must be publicly accessible. This is verified before any implementation task as part of the preflight checklist and by cargo xtask validate.

Verification: glab project view or the GitLab API — check the visibility field.

If public: proceed normally.

The declaration: compliance/visibility.toml states the repository’s visibility, and validate’s visibility stage refuses a file that disagrees with GitLab (#2992). canopy’s file says visibility = "public".

If private (or internal): the file must carry a live exception, filed as an issue in the project’s policy authority:

visibility        = "private"
policy_repo       = "<group>/<policy project>"   # GitLab project path
exception_ref     = 12                             # issue IID in policy_repo
exception_expires = 2027-01-31                     # TOML date
exception_reason  = "<brief justification>"

Validation requirements, all of them enforced by the stage:

  1. policy_repo is set and non-empty. Fail-safe: without it no exception is valid — a private repo without a policy authority cannot self-authorize.

  2. exception_ref is an issue IID in policy_repo, so an issue from another repository cannot stand in.

  3. The referenced issue is still open (glab api, state == "opened").

  4. exception_expires has not passed.

  5. exception_reason is set and non-empty.

A public repository carries no exception fields.

If no valid exception: refuse to work. Explain Kerckhoffs’s principle and direct the user to file an exception request with the project’s policy authority.

Edit this page · default