/** * secret-bearing-config-keys.ts, the config keys whose VALUE is a credential. * * Distinct from `credential-scope-registry.ts`, and the two answer different * questions. That one asks "does the daemon need this SECRET", and routes it to * the right store. This one asks "does this CONFIG KEY hold credential material * rather than a setting", and the answer decides three things a config key * cannot decide for itself: * * - a write goes into the encrypted secret store, with only a * `goodvibes://secrets/…` reference left in the config file; * - a render masks it, at rest AND while it is being typed; * - a diagnostic dump redacts it. * * ── Why it is here and not in each product ────────────────────────────────── * * It was in each product. goodvibes-tui and goodvibes-agent each carried a * hand-maintained `SECRET_CONFIG_KEYS`, the web UI carried a third list for * masking only, and the three had already drifted from each other and from the * schema. `surfaces.email.password` and `surfaces.calendar.caldavPassword` were * missing from the set that routes a write, so their own schema descriptions, * which read "Stored in the daemon secret tier, never in config", were * aspirational: the settings modal wrote both as plain strings into a config * JSON file, and the generic `/config set` had no detection at all. * * A product can still add to this, a surface may have a credential the SDK * knows nothing about, but the platform's own set lives in one place, next to * the ownership rules that decide where the value it points at is filed. * * ── Why it is a list rather than a name pattern ───────────────────────────── * * Because a name pattern is a habit, not a rule. Every redactor in this * platform matched by trailing word, `…password`, `…token`, `…secret`, and * every one of them was blind to a key that did not fit the habit: * `surfaces.msteams.appPassword` ends in `Password` and matched; * `cardNumber`, `cardExpiry` and `cardholderName` end in none of them and * matched nothing at all. A declared list is checkable, reviewable, and wrong * only in ways someone can see. */ /** * Every platform config key whose value is credential material. * * Grouped by the surface that owns the setting, so a channel added without its * credential is visible as a gap in the group rather than invisible in a sorted * list. */ export declare const SECRET_BEARING_CONFIG_PATHS: readonly string[]; /** True when this config key's value is credential material. */ export declare function isSecretBearingConfigKey(key: string): boolean; /** True when this key is DECLARED, rather than caught by the name pattern. */ export declare function isDeclaredSecretBearingConfigKey(key: string): boolean; /** * A stored config value that is a `goodvibes://` reference rather than a * literal. A reference is the correct at-rest shape; a literal is the defect. */ export declare function isSecretReferenceValue(value: unknown): boolean; //# sourceMappingURL=secret-bearing-config-keys.d.ts.map