Skip to content

Manage environments and variables

Settings → Environment manages reusable environment definitions and Terraform values at organization, project, or workspace scope. Secret-backed values are write only: ScrinCloud does not return them to the browser after save.

Typical time
10–20 minutes
You need
Environment-management permission for the selected scope
Outcome
A scoped environment with reviewed variables

Open Settings → Environment and choose:

  • Organization for the shared baseline;
  • Project for one selected project; or
  • Workspace for one workspace inside a selected project.

Choose the project before a workspace. Organization environments are always shared; workspace environments are always isolated. Project environments can use the available shared or isolated choice. Effective runner values resolve from organization to project to workspace, with the more specific matching key taking precedence.

Environment Settings page showing Organization, Project, and Workspace scope controls with documentation-only environment variables
Environment 1 of 6 · Select organization, project, or workspace scopeShow all three scope controls with synthetic project and workspace choices.

Use the Environments tab, search, page size, Previous, and Next to find a row. To create one:

  1. choose Create environment;
  2. enter Environment Name;
  3. review or edit the lowercase Environment Key;
  4. add an optional description;
  5. choose the permitted isolation and display color; and
  6. choose Create Environment.

The key must be unique inside the selected scope.

Create Environment drawer with Documentation environment name, documentation key, description, isolation, and color options
Environment 2 of 6 · Create an environment in the selected scopeShow the environment drawer with name, normalized key, description, isolation, and color.

Select an environment and choose Edit Environment to update its supported fields. Choose Delete Environment only after reviewing the confirmation.

Deleting an environment can remove its environment record and associated variable configuration from ScrinCloud. If it contains sensitive variables, the backend requires protected verification before completing the deletion. It does not delete cloud resources or Terraform state.

Delete environment confirmation for the documentation-only environment
Environment 3 of 6 · Edit or delete an environmentShow the environment detail actions and a synthetic delete confirmation.

Open Variables, select the environment, and choose Add Variable.

  1. use Form or JSON mode;
  2. enter an uppercase Terraform-style key such as TF_VAR_REGION;
  3. leave Sensitive variable off;
  4. enter the non-secret value and optional description; and
  5. choose Add Variable.

The JSON editor accepts only key, sensitive, value or secret_value, and description. Duplicate keys and invalid JSON are rejected.

Add Variable drawer with Form and JSON tabs and the safe TF_VAR_REGION documentation-region value
Environment 4 of 6 · Add a non-secret Terraform variableShow Form and JSON tabs with a synthetic non-secret region value.

Step 5: Add or update a sensitive variable

Section titled “Step 5: Add or update a sensitive variable”

Turn on Sensitive variable for a credential-like or otherwise secret value. Enter the value once and save. The table shows Hidden after save, not the plaintext value.

Protected secret changes require:

  1. your current password;
  2. an active eligible second factor; and
  3. completion of the protected verification dialog.

When editing an existing sensitive value, leave the secret field blank to keep the current value. Secret-like keys must be marked sensitive.

Empty protected verification dialog for deleting a sensitive environment variable, with no password or authenticator code entered
Environment 5 of 6 · Protect a sensitive variableShow the sensitive toggle, empty secret field, Hidden after save state, and empty verification dialog.

Open the variable row menu:

  • Edit changes the supported metadata or value.
  • Delete removes the variable after confirmation.

Sensitive edits and deletions require protected verification. Use page size, Previous, and Next to review every backend page. Refresh after a concurrent change before retrying.

Environment variables table showing safe values, hidden sensitive value status, row actions, and cursor pagination controls
Environment 6 of 6 · Manage variable lifecycle and pagesShow variable row actions, sensitive status, and cursor-based Previous and Next controls.

Reload the same scope and confirm the environment key, isolation, variable key, sensitive status, and page totals. For runner behavior, verify the effective variables for the intended project, workspace, and environment through an authorized workflow. Source or deployment wiring without live runtime evidence does not prove a runner received the value.

Select a project. Workspace scope also requires an existing selected workspace.

Environment and variable keys must be unique inside their selected scope. Edit the existing record or choose a different key.

Enable two-factor authentication on your own account, then complete the protected verification. Never work around it by saving a secret-like value as plain text.