Cluster Secrets

8.10 Cluster secrets

When replication-manager provisions a cluster, it generates the cluster's credentials: the database users, replication, the proxy users, the sponsor and DBA users, and the database user of each app. Since the next release, the cluster's owner reads them all in one place.

Reading them never changes them. A Reveal is a read: no password is rotated, regenerated or refreshed by it, on any path. Rotating is a separate action, with its own confirmation (see Password Rotation).

8.10.1 In the dashboard

  1. Open the cluster, then Settings, then Credentials.
  2. The Secrets row has a Reveal button. Press it and the table shows, for each credential, its user and its password, each with a copy button.
  3. Hide removes them from the page. Nothing is kept in the browser.

The row is shown only to a user who holds the grant cluster-show-secrets.

8.10.2 What is shown

Only the credentials that are set are shown, and a proxy's password only when that proxy is on.

Credential Setting
Database administration user db-servers-credential
Replication user replication-credential
Heartbeat user monitoring-write-heartbeat-credential
Sponsor user, DBA user (Cloud18) cloud18-sponsor-user-credentials, cloud18-dba-user-credentials
Proxies proxysql-user / proxysql-password, haproxy-password, maxscale-pass, shardproxy-credential, myproxy-password, mysqlrouter-pass
Backup repository backup-restic-password
Each app's database user app-db-user / app-db-pass of the app
replication-manager administration login admin in api-credentials: only for a user holding cluster-server-credentials on every cluster of the instance

The instance's own secrets are never shown here. They belong to whoever runs replication-manager, not to the cluster's owner. That covers the API users other than admin, the git and registry tokens, Vault, OpenSVC, SSH, mail and alert tokens, and cloud keys.

8.10.3 Who

  • The grant cluster-show-secrets has the same holders as cluster-rotate-passwords: sysops, extsysops, and the Cloud18 owner of the instance.
  • dbops, extdbops and the sponsor do not get it by default.
  • On a Cloud18 instance, the owner signs in with their Cloud18 account. Signal18's member area reads the secrets with that same sign-in.

8.10.4 API

GET /api/clusters/{clusterName}/secrets

The answer is {cluster, secrets: [{key, label, user, password}], instanceAdmin?}, sent with Cache-Control: no-store.

8.10.5 Audit and switch

  • Audit: every read is a security event in the security log, giving who read it, which cluster and which keys. The values are never logged. A refused read is logged too.
  • Switch: the global setting api-cluster-secrets (default on). When it is off, the endpoint answers 403 and the row is hidden.