forked from Kong/kong
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(conf_loader) escape '#' characters in 'KONG_*' environment variables
Automatically escape any unescaped `#` characters in parsed `KONG_*` environment variables. The configuration parser normally strips `#` and all text after to remove comments from `kong.conf` specified values. However, environment variables should never include comments, so this stripping is unnecessary for them, and mangles intended configuration values (e.g. an issue with passwords specified via env variables). Add test helper functions to set and unset environment variables. Fix Kong#4525 From Kong#5062 Signed-off-by: Thibault Charbonnier <[email protected]>
- Loading branch information
Showing
3 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters