Skip to content

v1.0.0

Latest

Choose a tag to compare

@ondbeh ondbeh released this 01 Dec 09:23
0916988

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

  1. Cluster-wide Secret RBAC removed by default (stackitSaAuthentication.secretAccessScope: webhook):
    • The Helm chart now creates a namespace-scoped Role in the webhook namespace instead of a cluster-wide ClusterRole.
    • If you use namespaced Issuer resources in other namespaces with serviceAccountSecretRef, upgrade with --set stackitSaAuthentication.secretAccessScope=issuer.
    • If you use Workload Identity Federation, DefaultAuth environment variables, or a mounted static Service Account key (stackitSaAuthentication.enabled=true), you can disable Secret-reader RBAC with --set stackitSaAuthentication.secretAccessScope=none.
  2. Cross-namespace Secret references blocked:
    • Namespaced Issuer resources can only read Secrets in their own namespace. Move referenced Secrets into the Issuer's namespace, or use a ClusterIssuer with its Secret in cert-manager.
  3. Legacy static Bearer Token authentication removed:
    • authTokenSecretRef, authTokenSecretKey, authTokenSecretNamespace, and STACKIT_AUTH_TOKEN have been removed. Migrate to STACKIT Service Account keys (serviceAccountSecretRef or DefaultAuth) or Workload Identity Federation.
  4. serviceAccountBaseUrl removed from solver config:
    • Remove serviceAccountBaseUrl from Issuer/ClusterIssuer manifests. If a custom token endpoint is needed, configure STACKIT_SERVICE_ACCOUNT_BASE_URL on the webhook Deployment via Helm extraEnv.
  5. Strict validation on apiBasePath and serviceAccountKeyPath:
    • apiBasePath only accepts official STACKIT DNS endpoints (https://dns.api.stackit.cloud or https://dns.api.<region>.stackit.cloud).
    • serviceAccountKeyPath must reside under /var/run/secrets/stackit/.
  6. Webhook PKI private key rotation policy defaults to Always:
    • pki.caCertificate.privateKey.rotationPolicy and pki.servingCertificate.privateKey.rotationPolicy now default to Always (previously Never).

What's New

  • Configurable Secret Access Scope (stackitSaAuthentication.secretAccessScope): Choose between webhook (default, namespace-scoped), issuer (multi-tenant, issuer-namespace isolated), and none (no Secret RBAC).
  • Refactored Authentication Flows:
    • Dynamic per-issuer Service Account keys (serviceAccountSecretRef) with strict multi-tenant namespace isolation.
    • Automatic STACKIT SDK DefaultAuth fallback when no explicit solver auth field is configured.
    • Explicit static mounted key path (serviceAccountKeyPath).
    • Workload Identity Federation (useWorkloadIdentityFederation) for keyless authentication on SKE clusters.
  • Configurable Webhook PKI (pki.*): Expose duration, renewBefore, and privateKey.rotationPolicy for both the internal CA and serving certificates in Helm values.yaml, and include the full .svc.cluster.local DNS name on the serving certificate.
  • Performance & Reliability:
    • Cache STACKIT DNS APIClient instances per auth configuration to reuse OAuth2 tokens across challenges.
    • Bounded HTTP connection pooling and per-request HTTP client isolation.
  • Security Hardening: Updated container base image to static-debian13, eager validation of secretAccessScope, 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