Skip to content

Automation Platform > Agent configuration

Legacy cloud agent secrets

Open in ChatGPT ↗
Ask ChatGPT about this page
Open in Claude ↗
Ask Claude about this page
Copied!

Manage team and personal secrets with the legacy Oz CLI for standalone workflows.

Use the Oz CLI to create, list, rotate, and delete managed secrets for standalone cloud-agent workflows. The commands remain supported.

Secret ownership determines which credentials a run is eligible to use; its configuration determines which eligible secrets are injected.

Team secrets belong to the team. Use narrowly scoped service-account credentials rather than credentials tied to an individual person. Attach secrets by name to a cloud agent or its execution configuration.

Personal secrets belong to your user account. Runs without your user context cannot use them. They aren’t listed in the factory secret picker; use team secrets for factories.

In the Oz CLI, use the oz secret commands. Log in first as described in the CLI quickstart.

Create a team secret interactively:

Terminal window
oz secret create --team METABASE_API_KEY

The CLI prompts for the credential without displaying it. For a personal secret, replace --team with --personal.

To read a credential from a file, replace SECRET_FILE below with its path. Protect the file and exclude it from version control.

Terminal window
oz secret create --personal --value-file SECRET_FILE METABASE_API_KEY

Use a description to record ownership and rotation requirements without including the credential:

Terminal window
oz secret create --team \
--description "Rotate every 2 weeks; owned by platform team" \
METABASE_API_KEY

Replace the value while keeping the same name and scope:

Terminal window
oz secret update --team --value METABASE_API_KEY

The CLI prompts for the replacement credential. To read it from a file instead, replace NEW_SECRET_FILE with the file’s path:

Terminal window
oz secret update --team --value-file NEW_SECRET_FILE METABASE_API_KEY

Update only the description:

Terminal window
oz secret update --team \
--description "Owned by platform team; rotated monthly" \
METABASE_API_KEY

List metadata for secrets you can access:

Terminal window
oz secret list

Stored values aren’t displayed.

Delete a team secret:

Terminal window
oz secret delete --team METABASE_API_KEY

The CLI asks for confirmation. Add --force to skip confirmation, or replace --team with --personal for a personal secret.

How secrets are made available to cloud agents

Section titled “How secrets are made available to cloud agents”

Raw-value secrets are injected as environment variables using the secret name. Avoid printing credentials in commands or agent outputs; secret redaction is a backstop, not a replacement for restricted access.

See the shared secret size limit and guidance for large payloads.

Runs associated with your user can resolve eligible personal secrets as well as team secrets. Runs without a user context, such as unattended automations, cannot use personal secrets. Ownership alone doesn’t attach a secret to a run; check its configured secret list rather than assuming every team secret is injected.

An environment or cloud agent account can supply secret references. Run configuration can override the inherited list. Use an explicit list to select the execution secrets needed for a task.

Attach the credentials an environment needs through its secret configuration. References use names, not stored values, so rotating a secret doesn’t require changing its references.

A run’s explicit secrets list selects its execution secrets. An empty list selects no generic execution secrets; harness authentication and credentials required by attached MCP servers are handled separately. See the Warp Platform API reference for the request shape.

For the current web-app workflow, follow creating a factory secret. The legacy Oz web app is a separate surface for standalone workflows.

The image-pull setup now lives under Configuring AWS ECR credentials.

See IAM role troubleshooting.

Warp assumed the role, but could not get an ECR token

Section titled “Warp assumed the role, but could not get an ECR token”

See ECR token troubleshooting.

See image-pull troubleshooting.