Whether a config or data key names a secret. One rule for log redaction,
the devtools config views and bb doctor (BOU-973). wagoe.tools.secret-keys
is its Babashka copy; a tools test holds the two to the same answers.
Whether a config or data key names a secret. One rule for log redaction, the devtools config views and `bb doctor` (BOU-973). wagoe.tools.secret-keys is its Babashka copy; a tools test holds the two to the same answers.
A key shorter than this materially weakens what it signs or encrypts.
A key shorter than this materially weakens what it signs or encrypts.
(normalize k)k as lower-case kebab: :Password, "password_hash", "passwordHash"
and "DBPassword" become "password", "password-hash", "password-hash"
and "db-password".
`k` as lower-case kebab: `:Password`, `"password_hash"`, `"passwordHash"` and `"DBPassword"` become "password", "password-hash", "password-hash" and "db-password".
(placeholder-secret? secret)True when secret is a published example value rather than a real secret:
one phrased as the examples and docs phrase theirs, or a few characters
repeated (BOU-1014).
True when `secret` is a published example value rather than a real secret: one phrased as the examples and docs phrase theirs, or a few characters repeated (BOU-1014).
(secret-key? k)True when key k names a secret.
True when key `k` names a secret.
(secret-name? kname)True when kname, already normalized, names a secret.
True when `kname`, already `normalize`d, names a secret.
(weak-secret what secret dev-like?)Why secret, named what in the message, cannot key anything, or nil:
under 32 characters, or, unless dev-like?, a published example value
(BOU-1021).
Why `secret`, named `what` in the message, cannot key anything, or nil: under 32 characters, or, unless `dev-like?`, a published example value (BOU-1021).
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |