ON-PREM CHOREO CLOUD BOTH

What it is

The gateway registration token Secret is a Kubernetes Secret named <release>-token. It holds the token a gateway uses to prove itself to AMS. It is created by the bootstrap job and read when the gateway is installed.

Why it exists

The gateway must hold a secret that AMS recognizes, and it should live in the cluster rather than in a values file.

How it works

  • The token has the form <uuid>-<random>.
  • AMS keeps only a salted sha256 hash of it, and compares in constant time.
  • The Secret is annotated with the gateway id, name, organization and environment.
  • If the Secret exists and AMS still lists a token for that gateway, the job reuses it.
  • On Choreo Cloud the provisioner stores the token in the secret store, not as a plain Secret created by a job.

Identity and access

Presented as the api-key header on the AMS internal port. AMS never stores the plain token, only its salted hash.

Key facts

Name
<release>-token
Format
<uuid>-<random>
Stored by AMS as
Salted sha256
Edition
On-prem
Namespace
<org>-<env>

Talks to (1)

  • depends on APIGateway CR
    APIGateway spec.controlPlane.tokenSecretRef
    secretRef

Used by (1)