Fixed TLS secret format ( #2913 )

The Plugin handled the TLS secret format wrong: it sent chain certificate instead of requested public certificate #2913
This commit is contained in:
sirferl 2020-02-13 07:35:35 +01:00 committed by GitHub
parent 14edd1bd4f
commit 6c7bb5f9b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ def build_secret(secret_format, secret_name, body, private_key, cert_chain):
if secret_format == "TLS": if secret_format == "TLS":
secret["type"] = "kubernetes.io/tls" secret["type"] = "kubernetes.io/tls"
secret["data"] = { secret["data"] = {
"tls.crt": base64encode(cert_chain), "tls.crt": base64encode(body),
"tls.key": base64encode(private_key), "tls.key": base64encode(private_key),
} }
if secret_format == "Certificate": if secret_format == "Certificate":