Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDynamic ¶ added in v0.33.0
func RegisterDynamic(rules ...DynamicRule) error
RegisterDynamic registers exact-value rules on the package-level redactor (the shared pipeline agents and the relay router consume). See (*Redactor).RegisterDynamic for semantics.
func UnregisterDynamic ¶ added in v0.33.0
func UnregisterDynamic(id string)
UnregisterDynamic removes a rule group from the package-level redactor.
Types ¶
type DynamicRule ¶ added in v0.33.0
DynamicRule is an exact-value redaction rule. Unlike the static regex pipeline, the Value is matched literally (no regex metacharacter interpretation) and byte-exactly, so arbitrary key material — including non-UTF-8 bytes — can be registered as a rule. Rules are grouped by ID: RegisterDynamic replaces any existing group with the same ID, and UnregisterDynamic removes the whole group.
Consumers with exact secret material (e.g. the relay-staging provider, which is the one place the platform legitimately knows a staged key's plaintext at seal/resolve time) register rules at the moment the material is known and unregister on revocation.
type Redactor ¶
type Redactor struct {
// contains filtered or unexported fields
}
func NewRedactor ¶
func NewRedactorFromFile ¶
func (*Redactor) RegisterDynamic ¶ added in v0.33.0
func (r *Redactor) RegisterDynamic(rules ...DynamicRule) error
RegisterDynamic adds exact-value rules, grouped by ID. Registering with an ID that already exists atomically replaces that ID's rules — rotation and re-registration are idempotent. Validation failures apply no partial state.
func (*Redactor) UnregisterDynamic ¶ added in v0.33.0
UnregisterDynamic removes every rule in the named group. Unknown IDs are a no-op.