-
Notifications
You must be signed in to change notification settings - Fork 31
Add docs for updating tls certs in EC installs #2995
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| # Updating Custom TLS Certificates in Embedded Cluster Installations | ||
|
|
||
| This topic describes how to update custom TLS certificates in Replicated Embedded Cluster installations. | ||
|
|
||
| ## Update Custom TLS Certificates | ||
|
|
||
| Users can provide custom TLS certificates with Embedded Cluster installations and can update TLS certificates through the Admin Console. | ||
|
|
||
| :::important | ||
| Adding the `acceptAnonymousUploads` annotation temporarily creates a vulnerability for an attacker to maliciously upload TLS certificates. After TLS certificates have been uploaded, the vulnerability is closed again. | ||
|
|
||
| Replicated recommends that you complete this upload process quickly to minimize the vulnerability risk. | ||
| ::: | ||
|
|
||
| To upload a new custom TLS certificate in Embedded Cluster installations: | ||
|
|
||
| 1. SSH onto a controller node where Embedded Cluster is installed. Then, run the following command to start a shell so that you can access the cluster with kubectl: | ||
|
|
||
| ```bash | ||
| sudo ./APP_SLUG shell | ||
| ``` | ||
| Where `APP_SLUG` is the unique slug of the installed application. | ||
|
|
||
| 1. In the shell, run the following command to restore the ability to upload new TLS certificates by adding the `acceptAnonymousUploads` annotation: | ||
|
|
||
| ```bash | ||
| kubectl -n kotsadm annotate secret kotsadm-tls acceptAnonymousUploads=1 --overwrite | ||
| ``` | ||
paigecalvert marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| 1. Run the following command to get the name of the kurl-proxy server: | ||
|
|
||
| ```bash | ||
| kubectl get pods -A | grep kurl-proxy | awk '{print $2}' | ||
| ``` | ||
| :::note | ||
| This server is named `kurl-proxy`, but is used in both Embedded Cluster and kURL installations. | ||
| ::: | ||
paigecalvert marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| 1. Run the following command to delete the kurl-proxy pod. The pod automatically restarts after the command runs. | ||
|
|
||
| ```bash | ||
| kubectl delete pods PROXY_SERVER | ||
| ``` | ||
|
|
||
| Replace `PROXY_SERVER` with the name of the kurl-proxy server that you got in the previous step. | ||
|
|
||
| 1. After the pod has restarted, go to `http://<ip>:30000/tls` in your browser and complete the process in the Admin Console to upload a new certificate. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.