First major release of stackit-cert-manager-webhook, introducing least-privilege Kubernetes RBAC by default, refactored authentication flows (including Workload Identity Federation and SDK DefaultAuth), configurable webhook PKI, security hardening, performance improvements, and automated Kubernetes end-to-end testing.
Upgrading from v0.x? This release contains breaking changes. Review the breaking changes below and the v0.x to v1.0.0 Migration Guide before upgrading.
Breaking Changes
- Cluster-wide
SecretRBAC removed by default (stackitSaAuthentication.secretAccessScope: webhook):- The Helm chart now creates a namespace-scoped
Rolein the webhook namespace instead of a cluster-wideClusterRole. - If you use namespaced
Issuerresources in other namespaces withserviceAccountSecretRef, upgrade with--set stackitSaAuthentication.secretAccessScope=issuer. - If you use Workload Identity Federation,
DefaultAuthenvironment variables, or a mounted static Service Account key (stackitSaAuthentication.enabled=true), you can disable Secret-reader RBAC with--set stackitSaAuthentication.secretAccessScope=none.
- The Helm chart now creates a namespace-scoped
- Cross-namespace
Secretreferences blocked:- Namespaced
Issuerresources can only read Secrets in their own namespace. Move referenced Secrets into theIssuer's namespace, or use aClusterIssuerwith its Secret incert-manager.
- Namespaced
- Legacy static Bearer Token authentication removed:
authTokenSecretRef,authTokenSecretKey,authTokenSecretNamespace, andSTACKIT_AUTH_TOKENhave been removed. Migrate to STACKIT Service Account keys (serviceAccountSecretReforDefaultAuth) or Workload Identity Federation.
serviceAccountBaseUrlremoved from solverconfig:- Remove
serviceAccountBaseUrlfromIssuer/ClusterIssuermanifests. If a custom token endpoint is needed, configureSTACKIT_SERVICE_ACCOUNT_BASE_URLon the webhook Deployment via HelmextraEnv.
- Remove
- Strict validation on
apiBasePathandserviceAccountKeyPath:apiBasePathonly accepts official STACKIT DNS endpoints (https://dns.api.stackit.cloudorhttps://dns.api.<region>.stackit.cloud).serviceAccountKeyPathmust reside under/var/run/secrets/stackit/.
- Webhook PKI private key rotation policy defaults to
Always:pki.caCertificate.privateKey.rotationPolicyandpki.servingCertificate.privateKey.rotationPolicynow default toAlways(previouslyNever).
What's New
- Configurable Secret Access Scope (
stackitSaAuthentication.secretAccessScope): Choose betweenwebhook(default, namespace-scoped),issuer(multi-tenant, issuer-namespace isolated), andnone(no Secret RBAC). - Refactored Authentication Flows:
- Dynamic per-issuer Service Account keys (
serviceAccountSecretRef) with strict multi-tenant namespace isolation. - Automatic STACKIT SDK
DefaultAuthfallback when no explicit solver auth field is configured. - Explicit static mounted key path (
serviceAccountKeyPath). - Workload Identity Federation (
useWorkloadIdentityFederation) for keyless authentication on SKE clusters.
- Dynamic per-issuer Service Account keys (
- Configurable Webhook PKI (
pki.*): Exposeduration,renewBefore, andprivateKey.rotationPolicyfor both the internal CA and serving certificates in Helmvalues.yaml, and include the full.svc.cluster.localDNS name on the serving certificate. - Performance & Reliability:
- Cache STACKIT DNS
APIClientinstances per auth configuration to reuse OAuth2 tokens across challenges. - Bounded HTTP connection pooling and per-request HTTP client isolation.
- Cache STACKIT DNS
- Security Hardening: Updated container base image to
static-debian13, eager validation ofsecretAccessScope, and stricter solver configuration validation. - Automated End-to-End Testing: Added Kubernetes E2E integration tests covering single-tenant (
DefaultAuth), multi-tenant dynamic Service Account authentication, wildcard certificates, and cross-namespace isolation against Let's Encrypt Staging.
Pull Requests
- feat: release v1.0.0 with scoped RBAC, DefaultAuth, and security hardening by @ondbeh in #246
- chore(deps): update module golang.org/x/crypto to v0.59.0 [security] by @renovate[bot] in #241
- chore(deps): update all non-major dependencies by @renovate[bot] in #240
Full Changelog: v0.5.2...v1.0.0