Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add redactor that supports string substitution #1616

Open
manderson23 opened this issue Sep 17, 2024 · 0 comments
Open

Add redactor that supports string substitution #1616

manderson23 opened this issue Sep 17, 2024 · 0 comments

Comments

@manderson23
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant