Skip to content

Exclude all ENV variables with new configuration option#91

Merged
glensc merged 4 commits into
perftools:mainfrom
Rjiegit:feature/exclude-all-env
May 6, 2026
Merged

Exclude all ENV variables with new configuration option#91
glensc merged 4 commits into
perftools:mainfrom
Rjiegit:feature/exclude-all-env

Conversation

@Rjiegit

@Rjiegit Rjiegit commented May 31, 2025

Copy link
Copy Markdown
Contributor

This PR adds a new configuration option to exclude all $_ENV variables from the profiling data.

  • New config: 'profiler.is-exclude-all-env' => false (default: false)
  • When set to true, all environment variables will be excluded from the result.
  • Fixes Exclude all ENV #79

This helps prevent leaking a large number of secrets or sensitive information into the profiling output.

@Rjiegit Rjiegit mentioned this pull request May 31, 2025
Comment thread src/ProfilingData.php Outdated
Comment thread config/config.default.php Outdated
Comment thread src/ProfilingData.php Outdated
Comment thread tests/ProfilingDataTest.php Outdated
Comment thread tests/ProfilingDataTest.php
@glensc

glensc commented Jul 5, 2025

Copy link
Copy Markdown
Contributor

general: add this new option to example config: examples/autoload.php

@Rjiegit

Rjiegit commented Aug 2, 2025

Copy link
Copy Markdown
Contributor Author

I’ve updated the code based on all review comments

@glensc

glensc commented Aug 6, 2025

Copy link
Copy Markdown
Contributor

Hit resolve conversation for threads that have been solved. preferrably with commit in the command that did.

@glensc glensc merged commit 984c870 into perftools:main May 6, 2026
0 of 9 checks passed
@glensc

glensc commented May 6, 2026

Copy link
Copy Markdown
Contributor

Need to fix tests:

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.

Exclude all ENV

3 participants