From 0d261cb8efc1983346f14906d8a9e6d7ff6706a2 Mon Sep 17 00:00:00 2001 From: Ryan D Date: Wed, 8 Mar 2023 21:36:44 +1100 Subject: [PATCH] Removed auto-suffixing /v1/cert.pem --- README.md | 5 +---- cert.go | 3 --- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/README.md b/README.md index f1ef972..5836b22 100644 --- a/README.md +++ b/README.md @@ -72,12 +72,9 @@ Configure the Sealed Secret public key/cert URL for the `production` environment: ``` -kubesealplus config production cert https://production.example.com +kubesealplus config production cert https://sealed-secrets-controller.production.example.com/v1/cert.pem ``` -Note that we will automatically append `/v1/cert.pem` as a suffix to this if it -is not present. - ## Sharing your Public Cert/Key Per the `config ... cert ...` usage instructions above, this tool can fetch the diff --git a/cert.go b/cert.go index 7d46368..f6131fb 100644 --- a/cert.go +++ b/cert.go @@ -18,9 +18,6 @@ func normalizeCertURL(inURL string) (outURL *url.URL, err error) { return } outURL.Scheme = "https" - if !strings.HasSuffix(outURL.Path, "/v1/cert.pem") { - outURL.Path = outURL.Path + "/v1/cert.pem" - } return }