Skip to main content

SECRET_KEY_EXEMPTIONS

Constant SECRET_KEY_EXEMPTIONS 

Source
pub const SECRET_KEY_EXEMPTIONS: &[&str];
Expand description

Whole keys that name a COUNT rather than a credential.

Why: de-pluralising makes tokens a hit, and max_tokens is an LLM sampling parameter this crate’s own code_harness settings carry — refusing to import the very file the feature exists to migrate is a worse outcome than the leak risk of a key that holds an integer (code-critic round 2, PR #6980). The exemption is deliberately a short, closed list rather than a heuristic. What: normalised whole-key forms. The comparison is against the ENTIRE key, not a window of it, so appending a credential to an exempt name (max_tokens_api_key) does not inherit the exemption. Test: paths::tests::max_tokens_stays_benign_as_a_count_not_a_credential.