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

This commit is contained in:
AndrewCopeland 2020-06-04 09:57:00 -04:00
parent 0615252cf7
commit 4531c418e2

View File

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