Expand description
Secret redaction for connector and config values surfaced to operators
(the ctx sources / GET /tools/sources listing, the workspaces
discovery tool, and any future config-introspection surface).
Policy is deny-by-default: when emitting an arbitrary connector config
map — for example a script connector’s extra table, whose ${VAR} values
are env-expanded and may be credentials — only an allowlist of known-safe
structural keys is shown verbatim; URL-bearing keys have their embedded
credentials stripped; every other value is replaced with REDACTED.
This satisfies SPEC-0014 R48/R49: redact credentials, tokens, and
env-expanded values, not only fields whose names literally contain
secret/token.
Constants§
- REDACTED
- Marker substituted for any redacted value.
- SAFE_
KEYS 🔒 - Structural, non-secret connector keys that are safe to show verbatim.
- URL_
KEYS 🔒 - Keys whose values are URLs: shown with embedded credentials stripped.
Functions§
- redact_
connector_ map - Redact an arbitrary connector-config table, deny-by-default.
- redact_
url - Strip credentials (userinfo) from a URL.
- redact_
value 🔒