Skip to content

Add ability to exclude environment variables when initializing AbstractEnvironment #6773

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

Closed
btiernay opened this issue Aug 28, 2016 · 2 comments
Labels
status: duplicate A duplicate of another issue

Comments

@btiernay
Copy link

btiernay commented Aug 28, 2016

In some environments, common environment variables may be set that may effect application binding in undesirable ways. A common example is the MAIL environment variable in many linux systems. If this is set, it will likely cause a binding exceptions in a @ConfigurationProperties class that uses the mail namespace. To avoid such scenarios, it would be desirable to add a "black list" of environmental variables to ignore.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 28, 2016
@btiernay
Copy link
Author

btiernay commented Aug 28, 2016

Seems to be related to #3427, #3832

@philwebb
Copy link
Member

I think this is a duplicate of #3427. It's been on the list for a little while but it might be something we can't fix properly until Spring Boot 2.0.

@philwebb philwebb added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels Aug 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants