Chuyển tới nội dung chính

Secrets

A secret is a named, stored credential that other settings reference by name instead of holding the value themselves: the secret access key of a storage connection, the password of a JDBC catalog, the password of a database connection. Control Plane → Infrastructure → Secrets manages them. Values are never displayed after you save them.

The Secrets list: the secrets you created and the ones egret creates for engines and catalog clients

You need secret:read to open the page; creating, rotating and deleting need the matching permissions.

The secret list​

A strip counts the secrets.

The list also shows the secrets egret creates and manages itself: engine-internal-<engine id>-… (the Trino internal-communication secret), engine-monitor-… (the egret-monitor password for the native Trino monitor), engine-tls-… (the coordinator keystore) for every provisioned engine, the StarRocks root and Trino delegator passwords, and catalog-client-… (a Catalog Client credential an engine presents to egret's catalog). The page says Secrets marked System are created by egret for engines and catalogs and are managed with them.

System secrets​

A secret egret manages carries a System badge next to its name, in the list and on its page. Egret rotates and deletes it together with the engine or catalog that created it, so you cannot change it by hand:

  • Edit, Rotate value and Delete are disabled, with the reason Managed by egret: it is rotated and deleted with the engine or catalog that created it.
  • The API refuses a rename, a rotation or a delete with 409: «name» is managed by egret: it is rotated and deleted with the engine or catalog that created it, not here. The secret's system_managed field is true.
  • No secret picker offers it: the Secret fields of storage and database connections, the catalog Password secret pickers and the engine create and security forms leave it out.
ColumnMeaning
NameThe secret name, with its keys underneath (for example password, username). Select it to open the secret.
TypeThe secret type, for example Opaque or kubernetes.io/basic-auth.
DescriptionFree text, or a dash.
Used byHow many connections reference it.
CreatedThe creation date.

Add a secret​

  1. Press Add secret. The dialog is Create a global named secret that storage and database connections can reference.
  2. Type the Name, for example prod-s3-secret, and an optional Description.
  3. Choose the Type.
  4. Under Data, press Add key and fill a key and a value for each entry. The value field hides what you type.
  5. Press Add secret.

The Add secret dialog with a key and a hidden value

Types​

TypeUse it for
OpaqueAny set of keys you define, for example password or token.
kubernetes.io/basic-authA username and password pair, for example S3 access credentials.
kubernetes.io/tlsA TLS certificate and key.
kubernetes.io/dockerconfigjsonRegistry credentials.
kubernetes.io/ssh-authAn SSH private key.

The secret page​

A secret&#39;s details: name, description, type and keys; no values

The header shows the name, type and USED BY n connection(s), with Rotate value and Delete. Tabs:

TabWhat it shows
OverviewThe Details table, with metadata only: Name, Description, Type, Keys, Used by and Created. Metadata for this secret. Values are never shown — use Rotate value to replace them. Edit changes the editable metadata.
Used byStorage connections that reference this secret for their credentials. With none: No storage connections reference this secret.

Rotate a secret​

Rotate when a credential changes, or on a schedule. Everything that references the secret picks the new value up.

  1. Open the secret and press Rotate value.
  2. In Rotate «<name>», write the new values for each key. The dialog says Write new values for this <type> secret. Connections referencing it pick up the new credentials immediately.
  3. Press Rotate value.

The Rotate dialog for an opaque secret

Delete a secret​

Press Delete on the list or the secret page. A secret that is in use cannot be deleted: the Used by count must be zero. Detach it from every connection first. A System secret cannot be deleted here at all (System secrets).

cảnh báo

A secret is a platform-wide object. Rotating it changes the credential for every connection that references it.

Use a secret​

  • In a storage connection: the Secret field.
  • In a catalog (JDBC, Elasticsearch): Password secret.
  • In a database connection of a workspace: the Secret selector (see Connections).

Limits and known issues​

  • Values cannot be read back, only replaced.
  • Names are global across the platform.
  • Secrets that existed before the System flag was introduced are marked from the engines and catalogs that point at them, and from the name and description of a minted secret. A minted secret that nothing points at any more and whose name or description was changed by hand is not marked.

Further reading​