Skip to content

Concept

Credentials

A certificate that the cluster CA signed stays valid until it expires. Only a CA rotation revokes it. So the operator gives the credentials that it publishes a short lifetime, and issues new ones before they expire.

A timeline of 24 hours. The credential is issued at 0. At 16 hours, one third of the lifetime is left, and the operator issues a new one.issued16h: issue again24h: expiresvalidlast third
Default TTL 24 hours. The operator issues a new credential when less than one third of the TTL is left.
TTL
spec.credentials.ttl. How long a published credential is valid. The default is 24 hours. The API refuses more than 720 hours (30 days).
credentialsExpireAt
status.credentialsExpireAt. When the first published credential expires. Copy credentials out again before this time.
Reader talosconfig
With spec.credentials.readerTalosconfig: true, the operator also publishes <cluster>-talosconfig-reader with the role os:reader. Use it to monitor the cluster.
Secrets bundle
The CAs and tokens of the cluster, in spec.secretsRef. The operator keeps its own copy, <cluster>-bundle-applied.
  1. If you make the TTL shorter, the operator replaces older credentials at once.
  2. If the bundle in spec.secretsRef changes, the operator continues with its copy. SecretsBundleHeld is True.
  3. The operator does not rotate CAs. Rotate them with talosctl.
  4. Delete <cluster>-bundle-applied after the rotation.

The BMC account of the operator rotates on its own schedule, see Credential rotation.