Liking cljdoc? Tell your friends :D

wagoe.core.utils.secret-keys

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.
raw docstring

min-secret-lengthclj

A key shorter than this materially weakens what it signs or encrypts.

A key shorter than this materially weakens what it signs or encrypts.
sourceraw docstring

normalizeclj

(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".
sourceraw docstring

placeholder-secret?clj

(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).
sourceraw docstring

secret-key?clj

(secret-key? k)

True when key k names a secret.

True when key `k` names a secret.
sourceraw docstring

secret-name?clj

(secret-name? kname)

True when kname, already normalized, names a secret.

True when `kname`, already `normalize`d, names a secret.
sourceraw docstring

weak-secretclj

(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).
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close