Skip to content

Add redactor that supports string substitution #1616

@manderson23

Description

@manderson23

Describe the rationale for the suggested feature.

Add a redactor that supports string substitution. This could be useful where we want to anonymize but not hide data.

For example, I'd like to anonymize the hostnames of customer servers but would still like the traceability of consistent hostnames. A redactor that supports string substitution would allow replacing customer.host.com with a.b.com.

Describe the feature

Add a new substitute redactor option with a configuration like

redactors:
  - name: substitute hostnames
    removals:
      substitute:
      - target: server1.customer.com
        replacement: a.c.com
      - target: server2.customer.com
        replacement: b.c.com

Describe alternatives you've considered

Regex might be possible but would be cumbersome and error prone to configure for every environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions