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

[xy] Mask env var values with stars in terminal output #2201

Merged
merged 4 commits into from
Mar 15, 2023

Conversation

wangxiaoyou1993
Copy link
Member

@wangxiaoyou1993 wangxiaoyou1993 commented Mar 14, 2023

Summary

For env var values that have length larger than 5, we mask the values with *** in the terminal and block output.

Setting HIDE_ENV_VAR_VALUES to 1 (default value) to enable this feature. Setting it to 0 to disable the feature.

Tests

tested locally
image

cc:

@wangxiaoyou1993 wangxiaoyou1993 force-pushed the xiaoyou/hide-environment-variable branch from 24adece to afc4563 Compare March 14, 2023 22:46
@wangxiaoyou1993 wangxiaoyou1993 merged commit 2bc653d into master Mar 15, 2023
@wangxiaoyou1993 wangxiaoyou1993 deleted the xiaoyou/hide-environment-variable branch March 15, 2023 06:55
@tommydangerous tommydangerous mentioned this pull request Mar 15, 2023
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.

1 participant