Comments (1)
Hi,
It is possible to manually renew the certificates by generating a new public-cert/private-key pair via openssl
, then apply it as a secret in K8s and finally label it with the sealedsecrets.bitnami.com/sealed-secrets-key=active
label so that it gets picked up by the controller upon re-deployment.
After that, the "v1/cert.pem" endpoint exposed by the controller will point to the most recent certificate and kubeseal
can consume it to seal new secrets
- Generate a new certificate
SECRET_NAME="sealed-secrets-pub-key-$(date +'%s')"
SEAL_PUB="${SECRET_NAME}-cert.pem"
SEAL_PRIV="${SECRET_NAME}-priv.key"
openssl req -x509 -nodes \
-days 3650 \
-newkey rsa:4096 \
-keyout "$SEAL_PRIV" \
-out "$SEAL_PUB" \
-subj "/CN=Sealed Secrets Controller/O=Team"
- Create a TLS secret in k8s with the content of the certificate
kubectl create secret tls $SECRET_NAME --cert=$SEAL_PUB --key=$SEAL_PRIV
- Label it appropriately
kubectl label secret $SECRET_NAME "sealedsecrets.bitnami.com/sealed-secrets-key=active" --overwrite
Finally, you can confirm that the new secret was picked up by the controller after re-deploying it
$ k logs sealed-secrets-ctr-any-infra-example-nhn2h | head -n30
controller version: 0.22.0
2023/07/18 22:51:34 Starting sealed-secrets controller version: 0.22.0
Searching for existing private keys
----- sealed-secrets-pub-keys8flw
----- sealed-secrets-pub-keygqqk7
----- sealed-secrets-pub-keykhpr2
----- sealed-secrets-pub-key-1689639195
from sealed-secrets.
Related Issues (20)
- `kubeseal --help` writes to stderr instead of stdout HOT 2
- After sealing secrets and fresh installation getting this message no key could decrypt secret" HOT 5
- Expose controller metrics in an isolated port
- `commonAnnotations` are not implemented for all resources
- Implement a mechanism for adding labels to all resources
- Able to access pulbic key when using own key pair HOT 4
- --re-encrypt together with --cert HOT 5
- Cannot list secrets in namespace when created using kubeseal HOT 5
- FIPS support with boringcrypto HOT 4
- Sealed Secret controller panic: index out of range HOT 2
- Recreation of secret object after sync in ArgoCD HOT 7
- Consolidation of Sealed Secrets images in DockerHub HOT 3
- Incomplete and broken move of metrics to isolated port
- kubeseal with Secret input from -f fails silently HOT 6
- Sealed Secrets plugin for Helm HOT 1
- Helm chart 2.14.0 error if dashboard enabled after commonLabels added
- Sealed secret is not working when you have the kubernetes secret parse the data using the stringData using the yml file HOT 3
- Incorrect selector matchLabels on Helm chart ServiceMonitor HOT 1
- Correct way to validate the kubeseal tarball with Ansible HOT 4
- (question) sealed-secrets ingress, what use is it? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sealed-secrets.