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

feat: implement finer granularity to LUMIGO_SECRET_MASKING_REGEX #164

Merged
merged 7 commits into from
May 8, 2023

Conversation

mmanciop
Copy link
Contributor

Introduce environment variables to specify Lumigo secret masking at finer granularity:

  • LUMIGO_SECRET_MASKING_REGEX_HTTP_REQUEST_BODIES applies secret redaction to HTTP request bodies
  • LUMIGO_SECRET_MASKING_REGEX_HTTP_REQUEST_HEADERS applies secret redaction to HTTP request headers
  • LUMIGO_SECRET_MASKING_REGEX_HTTP_QUERY_PARAMS applies secret redaction to HTTP query parameters
  • LUMIGO_SECRET_MASKING_REGEX_HTTP_RESPONSE_BODIES applies secret redaction to HTTP response bodies
  • LUMIGO_SECRET_MASKING_REGEX_HTTP_RESPONSE_HEADERS applies secret redaction to HTTP response bodies
  • LUMIGO_SECRET_MASKING_REGEX_ENVIRONMENT applies secret redaction to process environment variables (that is, the content of process.env)

Also, add support to LUMIGO_SECRET_MASKING_REGEX and all the env vars listed above for the special all value, which will redact every value.

@mmanciop mmanciop requested review from GuyMoses and shanishiri April 10, 2023 15:18
@mmanciop mmanciop marked this pull request as draft May 6, 2023 08:56
@mmanciop
Copy link
Contributor Author

mmanciop commented May 6, 2023

To be rebased after #172 is merged

Michele Mancioppi added 5 commits May 7, 2023 12:25
Support finer-grained secret scrubbing via the following env vars:

* LUMIGO_SECRET_MASKING_REGEX_HTTP_REQUEST_BODIES
* LUMIGO_SECRET_MASKING_REGEX_HTTP_REQUEST_HEADERS
* LUMIGO_SECRET_MASKING_REGEX_HTTP_QUERY_PARAMS
* LUMIGO_SECRET_MASKING_REGEX_HTTP_RESPONSE_BODIES
* LUMIGO_SECRET_MASKING_REGEX_HTTP_RESPONSE_HEADERS
* LUMIGO_SECRET_MASKING_REGEX_ENVIRONMENT

The environment variables above, as well as the already-supported
LUMIGO_SECRET_MASKING_REGEX, accept the special value `all`, which
makes the entire applicable payload to be scrubbed.
@mmanciop mmanciop marked this pull request as ready for review May 7, 2023 10:26
@mmanciop mmanciop merged commit 0a34d7c into main May 8, 2023
@mmanciop mmanciop deleted the RD-10355 branch May 8, 2023 13:55
doriaviram pushed a commit that referenced this pull request May 8, 2023
# [1.21.0](v1.20.0...v1.21.0) (2023-05-08)

### Features

* implement finer granularity to LUMIGO_SECRET_MASKING_REGEX ([#164](#164)) ([0a34d7c](0a34d7c))
@doriaviram
Copy link
Contributor

🎉 This PR is included in version 1.21.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants