mirror of
https://github.com/ansible/awx.git
synced 2026-04-11 04:59:22 -02:30
properly quote conjur URLs that contain spaces
see: https://github.com/ansible/awx/issues/7191
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
from .plugin import CredentialPlugin, CertFiles
|
from .plugin import CredentialPlugin, CertFiles
|
||||||
|
|
||||||
import base64
|
import base64
|
||||||
from urllib.parse import urljoin, quote_plus
|
from urllib.parse import urljoin, quote
|
||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
import requests
|
import requests
|
||||||
@@ -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_plus(kwargs['account'])
|
account = quote(kwargs['account'])
|
||||||
username = quote_plus(kwargs['username'])
|
username = quote(kwargs['username'])
|
||||||
secret_path = quote_plus(kwargs['secret_path'])
|
secret_path = quote(kwargs['secret_path'])
|
||||||
version = kwargs.get('secret_version')
|
version = kwargs.get('secret_version')
|
||||||
cacert = kwargs.get('cacert', None)
|
cacert = kwargs.get('cacert', None)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user