TLS certificate management
Astro Private Cloud (APC) uses TLS certificates for secure communication between components and for JWT token signing.
Self-signed certificate generation
Create Kubernetes secret
Houston JWT certificates
Houston uses auto-generated JWT certificates to sign and verify authentication tokens. These certificates are created during installation.
The regenerateCaEachUpgrade flag controls whether APC regenerates the Houston certificate authority (CA) on each platform upgrade. This flag defaults to false:
Setting regenerateCaEachUpgrade to true regenerates the CA on every upgrade, which invalidates all existing JWT tokens and forces all users and service accounts to re-authenticate.
Astronomer recommends keeping this value set to false unless you have a specific security requirement to rotate the CA regularly.
Certificate sync
Certificate syncing in APC operates at two levels:
Control plane to data plane
Control plane to data plane certificate sync occurs only during data plane install or upgrade. During this process, the platform calls the Houston endpoint to decode the certificates and annotates them with the Config Syncer label to propagate the necessary secrets to Airflow namespaces.
Within a cluster (Config Syncer)
Config Syncer is a CronJob that propagates annotated secrets from the platform namespace to Airflow Deployment namespaces within the same cluster. It runs on a configurable schedule to keep secret contents in sync across namespaces.
Ingress TLS
Use an existing certificate
Certificate renewal
Renew certificates manually
Check certificate expiry
Best practices
- Use cert-manager for automatic renewal.
- Monitor certificate expiration with alerts.
- Keep
regenerateCaEachUpgrade: falseto preserve sessions. - Use strong key sizes (4096-bit RSA).