Repository navigation
feat(use-cases): add a cert-manager example for Kubernetes - #41
Merged
Merged
Conversation
…espace, and delete the CA key on clean up
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
A runnable example of cert-manager on Kubernetes with the Synapse operator's
SynapseProxy(operator 0.2.0, on therelease/v0.2.0branch, not released yet). cert-manager issues the certificate for an Ingress; the operator copies the TLS Secret into the proxy; Synapse loads a renewed certificate with no restart. The repo had no Kubernetes example.use-cases/kubernetes-cert-manager/: numbered manifests (namespace with Pod Securityprivileged, a self-signed -> CA issuer chain,SynapseProxyandIngressClass, whoami, an Ingress with the cert-manager annotations, a client pod) and anissuer-acme-http01.yamlmarked not run. There is noconfig.yaml, because the operator renders Synapse's config, soscripts/check.shdoes not count the directory as a set. Index rows in both READMEs.Run
k3s v1.31.4 (single node, in Docker), cert-manager v1.21.3, the operator built from
release/v0.2.0at 93f76b1, Synapseghcr.io/gen0sec/synapse:0.8.8:IngressClassrun insynapse-demo(Pod Securityprivileged); whoami, the Ingress and the client run in a second, unlabelled namespace. The operator served the Ingress across namespaces with no extra RBAC orhostOwnershipsetting.SynapseProxyReady.app.example.comgets the operator's_defaultcertificate and a 404.demo-cacertificate; curl with the CA verifies it and gets the backend's answer.kubectl apply --dry-run=serveraccepted every manifest.make lintandmake testpass.Not run
issuer-acme-http01.yaml).ADDRESSstayed empty in the run although the proxy served the host; the README says so and does not explain it.Code-reviewed: 7d005ac — 6 findings
delete secret demo-caadded and run<(...)in anshcode block: not fixed, nitNot re-reviewed: 6519ecf — should-fix batch, manifests and docs only