Name resolution and certificates

Publish a base DNS domain for the cloud service endpoints, and choose a certificate mode, either Route 53 or a customer-provided certificate authority.

Base domain

Every cloud service endpoint is published under one base domain, so the domain must exist and resolve from the life-cycle manager host before the deployment reaches the cloud services. Create or delegate the base zone, then publish records, either as a wildcard or one per service, that point at the site address.

Certificate modes

The life-cycle manager issues the endpoint certificates in one of two modes:

Table 1. Certificate modes
Mode Description Requirement
Route 53 Certificates are issued automatically through a DNS challenge against a public certificate authority A public domain hosted in Route 53, plus an access key, a secret key and the hosted zone identifier
Customer-provided authority Certificates are signed by a certificate authority that you supply, and the private key is encrypted before it is stored A certificate and private key in PEM format, placed in the data directory

Choose the customer-provided authority mode for an air-gapped site, because the Route 53 mode needs to reach a public certificate authority. If you need a self-signed authority for testing, generate one with the following command. The key usage extension is required, because omitting it causes certificate verification to fail with current clients:

openssl req -new -x509 -days 3650 -newkey rsa:4096 -nodes \
  -keyout ca.key -out ca.crt \
  -subj "/CN=example-ca" \
  -addext "basicConstraints=critical,CA:TRUE" \
  -addext "keyUsage=critical,keyCertSign,cRLSign" \
  -addext "subjectKeyIdentifier=hash"

Private certificate authority for the registry

When the OCI registry presents a certificate signed by a private authority that is not publicly trusted, install the authority chain on the life-cycle manager host and on every cluster host. On Ubuntu hosts, run the following commands:

sudo cp ca-chain.pem /usr/local/share/ca-certificates/example-ca-chain.crt
sudo update-ca-certificates
sudo systemctl restart containerd

On RHEL hosts, run the following commands:

sudo cp ca-chain.pem /etc/pki/ca-trust/source/anchors/example-ca-chain.crt
sudo update-ca-trust
sudo systemctl restart containerd

Then add the host trust store as a read-only mount when you run the life-cycle manager, so that the tools inside the container also trust the registry:

-v /etc/ssl/certs:/etc/ssl/certs:ro

The life-cycle manager configures the Flux source controller to trust the registry from the authority chain already installed on the cluster hosts, so no further configuration is needed.