Skip to content

Implement filtering utilities and helper functions #20926

@chargome

Description

@chargome

Build the utilities that will be used in the migration to filter key-value data according to KeyValueCollectionBehavior rules, and convenient helpers to read the resolved config from a client instance.

We need to support off/denyList/allowList filtering to a key-value record:

  • Built-in denylist terms per spec: auth, token, secret, password, passwd, pwd, key, jwt, bearer, sso, saml, csrf, xsrf, credentials, session, sid, identity
  • Matching: partial, case-insensitive (e.g. "Authorization" matches "auth")
  • Matched values replaced with "[Filtered]"; key names always preserved
  • Export all helpers from core package

Metadata

Metadata

Assignees

Labels

No labels
No labels
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions