Skip to content

Surface sensitive pattern as a configurable option #4197

Open
@kilasuit

Description

@kilasuit

Prerequisites

  • Write a descriptive title.

Description of the new feature/enhancement

we currently have this regex pattern hardcoded & this could be useful for further extensibility going forward.

private static readonly Regex s_sensitivePattern = new Regex(
"password|asplaintext|token|apikey|secret",
RegexOptions.Compiled | RegexOptions.IgnoreCase);

Therefore it would be great to surface extensibility of this via either

  1. fully configurable option with this pattern as the default setting
  2. setable property for addtional patterns to match

2 I feel is a better & more secureminded implementation going forward & would enable users to manage asks like #4077 (which we perhaps could pull into the default's as part of this enhancement

Proposed technical implementation details (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-EnhancementIt's a feature request.Needs-Triage 🔍It's a new issue that core contributor team needs to triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions