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

Don't override environment variables with env file #1

Merged
merged 4 commits into from
Mar 23, 2021

Conversation

bluego-joe
Copy link
Contributor

@bluego-joe bluego-joe commented Mar 23, 2021

Environment variables should be chosen over values from .env files.
Currently, Kong reads the environment variable, but then the dotenv resolver overrides it.
This behaviour is unusual - most software prioritizes real environment variables over .env files.
This PR fixes this behaviour.

Copy link
Contributor

@golane-denis golane-denis left a comment

Choose a reason for hiding this comment

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

Super, thank you for the changes!

@bluego-joe bluego-joe merged commit ced8f16 into main Mar 23, 2021
@bluego-joe bluego-joe deleted the feature/prioritize-env-vars branch March 23, 2021 15:15
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