Skip to main content

Secrets and Environments

Manage environment-specific configuration and sensitive values securely.

Environments

Environments let you run the same workflow against different targets:

EnvironmentURLPurpose
devhttps://dev.myapp.comDevelopment testing
staginghttps://staging.myapp.comPre-production validation
productionhttps://myapp.comProduction smoke tests

Variables

Variables are non-sensitive values that change per environment (URLs, feature flags, test data).

Secrets

Secrets are encrypted values (passwords, API keys, tokens) that are:

  • Encrypted at rest
  • Never displayed in logs or UI
  • Available to workflows at runtime

Best practices

  • Never hardcode credentials in workflows
  • Use separate environments for each deployment stage
  • Rotate secrets regularly