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

Added support for capturing Environment Variables #523

Merged
merged 5 commits into from
Mar 18, 2024

Conversation

phillip-haydon
Copy link
Contributor

New settings to enable capturing environment variables.

builder.Services.AddRaygun(builder.Configuration, settings =>
{
  settings.EnvironmentVariables.Add("USER*");
  settings.EnvironmentVariables.Add("POSH_*");
});

Can do:

  • Exact Match: PATH
  • Starts With: POSH_*
  • Ends With: *_VALUE
  • Contains: *_banana_*

If you enter * only it will return nothing as we don't want to capture everything, variables should be opt-in and explicit, not capture everything and potentially leak sensitive data by mistake.

image

Copy link
Contributor

@Deacon-McIntyre Deacon-McIntyre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice, a good quick win!

@phillip-haydon phillip-haydon merged commit 7d26339 into master Mar 18, 2024
1 check passed
@phillip-haydon phillip-haydon deleted the ph/env-variable-support branch March 18, 2024 22:30
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

Successfully merging this pull request may close these issues.

2 participants