Merge pull request #7249 from AndrewCopeland/conjur-url-encoding

URL encode '/' to '%2F' for conjur credential plugin

Reviewed-by: Ryan Petrello
             https://github.com/ryanpetrello
This commit is contained in:
softwarefactory-project-zuul[bot]
2020-06-04 19:22:40 +00:00
committed by GitHub

View File

@@ -50,9 +50,9 @@ conjur_inputs = {
def conjur_backend(**kwargs): def conjur_backend(**kwargs):
url = kwargs['url'] url = kwargs['url']
api_key = kwargs['api_key'] api_key = kwargs['api_key']
account = quote(kwargs['account']) account = quote(kwargs['account'], safe='')
username = quote(kwargs['username']) username = quote(kwargs['username'], safe='')
secret_path = quote(kwargs['secret_path']) secret_path = quote(kwargs['secret_path'], safe='')
version = kwargs.get('secret_version') version = kwargs.get('secret_version')
cacert = kwargs.get('cacert', None) cacert = kwargs.get('cacert', None)