Overview
The kubernetes/infra-addons directory hosts reusable platform components packaged as Kustomize components (kind: Component). These components provide essential shared services:
cert-manager: Automates TLS certificate issuance and renewal.trust-manager: Distributes trust bundles (CAs) across namespaces.keycloak: Provides local OIDC authentication and user management.openziti: Integrates external identity providers via JWT signers.
Clusters opt-in to these components declaratively in their infra-addons/1-kustomize.yaml manifest.
Cert-Manager & Trust-Manager Integration
Zero-trust networking relies heavily on mutual TLS (mTLS). To establish trust between the OpenZiti Controller, Edge Routers, and cluster workloads, certificates must be issued dynamically and trusted cluster-wide.
| Component | Responsibility in Trust Infrastructure |
|---|---|
| cert-manager | Generates CA and service certificates, installs CRDs via Helm values, and manages automated renewals |
| trust-manager | Reads root CA from trust namespace, projects unified Bundle CRDs into target ConfigMaps across all nodes |
Critical Discovery: The --trust-namespace Gotcha
trust-manager reads secret sources for its Bundle resources from a single, designated trust namespace configured at startup via --trust-namespace.
- The default component configuration (
default-trust-manager.values.yaml) ships withapp.trust.namespace: cert-manager(safe baseline). - However, the OpenZiti Controller Helm chart generates its root CA secret (
edge-signer-secret) directly inside theopenzitinamespace. - If trust-manager attempts to read a Bundle source located in
openzitiwhile configured forcert-manager, bundle reconciliation fails silently.
The Solution: Clusters deploying OpenZiti must override this value in their fleet values:
# fleet/<cluster>/infra-addons/values/trust-manager.values.yaml
app:
trust:
namespace: openziti
Handling CRD Ordering with dependsOn
The ziti-controller Helm chart deploys a trust.cert-manager.io/v1alpha1 Bundle resource. On a fresh cluster bootstrap, this will fail with:
no matches for kind "Bundle" in version "trust.cert-manager.io/v1alpha1"
if trust-manager hasn’t finished registering its CRDs.
The Fix: Always declare dependsOn: trust-manager in the ziti-controller HelmRelease:
spec:
dependsOn:
- name: trust-manager
namespace: flux-system
User Identity: Keycloak & Auth0 OIDC
Workload authentication is handled cryptographically via OpenZiti identity certificates. For human operator access, OpenZiti supports External JWT Signers via OpenID Connect (OIDC).
Local Development: In-Cluster Keycloak
For local testing (e.g. in Kind or isolated testbeds), an in-cluster Keycloak deployment provides OIDC authentication:
- Deployed as a lightweight Kubernetes
Deploymentusingquay.io/keycloak/keycloak:25.0.6. - Pre-configured with a custom
zitirealm imported declaratively on boot via--import-realmand a mounted ConfigMap generated fromziti-realm.json.
Cloud & Production: Auth0 External IdP
For production environments, OpenZiti integrates directly with external enterprise identity providers like Auth0:
- An OpenZiti External JWT Signer (
ext-jwt-signer-job.yaml) registers the Auth0 domain (e.g.https://your-tenant.us.auth0.com/) with the OpenZiti controller. - The controller automatically fetches Auth0’s public signing keys via its JWKS endpoint (
/.well-known/jwks.json). - When an operator authenticates via Auth0, they present their bearer JWT to OpenZiti. OpenZiti validates the signature, maps JWT claims to Ziti roles, and grants access to cluster services without storing passwords.