Strait Docs
CLI

Manage project secrets stored in the system keychain.

secrets create

Create a new secret. If no source flag is provided, you will be prompted interactively.

FlagTypeDefaultDescription
--from-envstringName of the environment variable to read the secret from
--from-filestringPath to a file to read the secret from
--projectstringProject ID

Secrets are stored in the system keychain and are scoped per project.

strait secrets create MY_SECRET --project my-project --from-env LOCAL_VAR

secrets list

List secrets for a project.

FlagTypeDefaultDescription
--projectstringProject ID
strait secrets list --project my-project

secrets delete

Delete a secret by name.

FlagTypeDefaultDescription
--projectstringProject ID
strait secrets delete MY_SECRET --project my-project

Secret injection into jobs requires the SECRET_ENCRYPTION_KEY environment variable to be set.

Was this page helpful?

On this page