decoding a not safe url in load_kube_config

for issue #1911 fixing load_kube_config for decoding unsafe url token
This commit is contained in:
ram vikram singh 2022-10-11 00:07:09 +05:30 committed by GitHub
parent 8cc9f981eb
commit 9152c48f0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -398,7 +398,7 @@ class KubeConfigLoader(object):
if PY3:
jwt_attributes = json.loads(
base64.b64decode(parts[1] + padding).decode('utf-8')
base64.urlsafe_b64decode(parts[1] + padding).decode('utf-8')
)
else:
jwt_attributes = json.loads(