Environments

Create and manage deployment environments for your SecretStash applications.

Environments represent deployment targets for your application, such as local, development, staging, or production. Each environment has its own set of variables and its own unique encryption key, ensuring complete isolation between environments.

Viewing Environments

On the application detail page, environments are displayed as vertical tabs on the left side. Click on any environment tab to view its variables and management options.

Each environment tab shows:

  • Environment name
  • Environment type (local, development, production, or testing)

Creating an Environment

Open the create dialog

Click the New Environment button below the environment tabs on the application detail page.

Fill in the details

Provide the following:

  • Name — a descriptive name (e.g., "Staging", "QA").
  • Slug — a URL-friendly identifier (e.g., staging). This must match the APP_ENV value used in your deployment.
  • Type — select one of: local, development, production, or testing.

Submit

Click Create to add the environment. It will appear as a new tab in the environment list.

Editing an Environment

Click the Edit button next to the environment name to update its name, slug, or type.

Deleting an Environment

Click the Delete button to remove an environment and all of its variables.

Testing Environments

The Testing environment type is designed for CI/CD pipelines and automated testing workflows. It has the following restrictions:

This restriction ensures that CI/CD secrets remain under centralized control and cannot be accidentally overwritten by automated processes or team members using the CLI.

Next Steps

  • Add and manage Variables within your environments.
  • Learn about the security model behind environment-specific encryption.