ShtukbaseStandard
package file→ .shtukbase/packages/std-owasp-secrets/judges/secrets-hygiene.md

judges/secrets-hygiene.md

18 lines, 1.1 KB.

  1. # Judge: secrets hygiene
  2. Norm SCR-R04. The package's checks see only repository files. A judge sees the rest of the OWASP Secrets Management Cheat Sheet.
  3. **Who judges.** The owner or a reviewer agent, not the author of the change.
  4. **When.** Before a release, when a new external service is connected, and after any SCR-R01 finding.
  5. **What to look at.**
  6. 1. Where each secret of the project lives: the environment, a secret store, a password manager. Not in files, not in notes, not in chats.
  7. 2. A secret has an owner, and it is clear how to revoke it and issue it again.
  8. 3. A key's rights are the least possible: a read-only key where write is not needed; a separate key for CI and for people.
  9. 4. Secrets in CI are set by its own means (CI secrets), not in build files; build logs do not print them.
  10. 5. Agents get secrets from the environment and do not write them into project files and logs.
  11. 6. A leaked secret (an SCR-R01 finding, `shtuk run std-owasp-secrets history`) is revoked, not only deleted from a file.
  12. **Result.** The answers are recorded in the project (a decisions page or a release note). A gap found is a task or a bug with an owner and a deadline.