Using Secrets

Managing and Using Secrets

Secrets are currently limited to experiments run on private clusters

Set a Secret

Web UI
CLI
Web UI

Navigate to the project, cluster, or team page and click the Secrets tab. Click the Create Secret button, enter the secret name and value, and click the Create Secret button to save.

CLI

Set team secret

gradient secrets set team --name=<name> --value=<secret>

Set project secret

gradient secrets set project --id=<project_id> --name=<name> --value=<secret>

Set cluster secret

gradient secrets set cluster --id=<cluster_id> --name=<name> --value=<secret>

List Secrets

Web UI
CLI
Web UI

Navigate to the project, cluster, or team page and click the Secrets tab.

CLI

List team secrets

gradient secrets list team

List project secrets

gradient secrets list project --id=<project_id>

List cluster secrets

gradient secrets list cluster --id=<cluster_id>

Delete a Secret

Web UI
CLI
Web UI

Navigate to the project, cluster, or team page and click the Secrets tab. Click the Delete button and confirm the dialog.

CLI

Delete team secret

gradient secrets delete team --name=<name>

Delete project secret

gradient secrets delete project --id=<project_id> --name=<name>

Delete cluster secrets

gradient secrets delete cluster --id=<cluster_id> --name=<name>

Secret scoping

If the same secret name is created for more than one scope only one will be applied. Secrets have the following precedence: Project > Cluster > Team.

Using Secrets

See Experiment Variables for using Secrets with Experiments.