Skip to content

Commit

Permalink
Removed auto-suffixing /v1/cert.pem
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan0x44 committed Mar 8, 2023
1 parent d8cc111 commit 0d261cb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions cert.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 0d261cb

Please sign in to comment.