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

[BUGFIX] Escape $ characters in configuration, support multiple substitutions #2015

Merged
merged 9 commits into from
Oct 29, 2020

Conversation

anthonyburdi
Copy link
Member

This PR reverts PR #1949 and instead adds escaping for the $ character via \ to configuration substitution. For example, you can now set password: pa\$sword if your password is pa$sword. Additionally, it adds support for multiple substitutions in the same item, e.g. database_string: ${USER}:${PASSWORD}@${HOST}:${PORT}/${DATABASE}. It also adds escaping when saving items, e.g. via the CLI.

Closes #2005

…rd-substitution' into anthony/bugfix/issue-2005-password-substitution

# Conflicts:
#	docs/changelog.rst
@anthonyburdi anthonyburdi self-assigned this Oct 28, 2020
Copy link
Contributor

@eugmandel eugmandel left a comment

Choose a reason for hiding this comment

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

@anthonyburdi anthonyburdi merged commit 6ea2924 into develop Oct 29, 2020
@anthonyburdi anthonyburdi deleted the anthony/bugfix/issue-2005-password-substitution branch October 29, 2020 17:43
alexsherstinsky pushed a commit to alexsherstinsky/great_expectations that referenced this pull request Feb 19, 2021
…itutions (great-expectations#2015)

* Escape substitution of variables, add handling of multiple substitutions in a single string and support for uppercase patterns

* Handle loading of escaped values, add tests and some documentation

* Change escape string, define escape string in BaseDataContext

* Add documentation

* changelog

* Also handle escaping dicts, OrderedDicts and lists when saving config_variables

* Add test for escaping dict when writing to config_variables.yml
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.

password skipping config substitution
2 participants