Skip to navigation

Infrastructure workspaces

Coming soon

Infrastructure workspaces give you a governed way to run OpenTofu configurations through Gateway 5. Each workspace brings together your configuration, state, and execution settings, and it requires plan review and approval before any change reaches your infrastructure. This page explains what a workspace is, where its state lives, and how a run moves from plan to apply.

Infrastructure workspaces aren’t generally available yet. To learn more, contact your Customer Success Manager.

Why use infrastructure workspaces

Today, an OpenTofu plan service runs tofu init and tofu apply in a single step, with no opportunity to review changes first. State lives on the Gateway 5 server or in backend settings stored on each service. That approach works for simple automation, but it makes it harder to control changes, share state across teams, and trace what changed and why.

Infrastructure workspaces address these gaps. Changes don’t apply until someone reviews and approves them. State lives in shared storage that your team controls, and every run is recorded.

What a workspace is

A workspace is a named, persistent execution context for one OpenTofu configuration. It connects:

  • Source: The Git provider and repository path that contain your OpenTofu configuration.
  • State backend: The storage location for the workspace’s state.
  • Gateway cluster: The Gateway 5 cluster that runs the workspace.
  • Labels: Tags that help you organize and find workspaces.

You typically create one workspace for each environment or distinct set of infrastructure.

How workspaces connect to Git

Each workspace reads its OpenTofu configuration from a Git repository through a Git provider. A Git provider is a connection to a Git service that an administrator configures once in Itential Platform. After it’s configured, workspaces and other Itential features that work with Git repositories can use it.

A Git provider defines:

  • Provider type: The type of Git service, such as GitHub Enterprise Server, GitLab, Bitbucket, or Azure DevOps.
  • Gateway cluster: The Gateway 5 cluster that has network access to the Git service and routes Git operations to it.
  • Endpoint: The URL of the Git service, for self-hosted providers.
  • Credential: A personal access token for a service account. Administrators can enter the token directly or reference a secret managed by Gateway 5 or Itential Platform.
  • Group access: The groups that can use the provider.

Because the Git provider manages the credential and routes Git operations, people who create and run workspaces don’t need to handle tokens or know which cluster can reach the repository. Workspaces use the provider’s credential to read configuration during plan and apply. When an administrator rotates the token, workspaces use the new token on their next run without any changes to the workspace.

Where state lives

Workspaces store state in S3-compatible object storage that you own, such as Amazon S3 or MinIO. State locking prevents two runs from changing the same state at the same time. Because the storage keeps state versions, you can retrieve earlier versions when you need to audit or recover.

How a run works

Each run separates the plan and apply stages, so you always see what will change before it happens.

1

Plan

Gateway runs an OpenTofu plan and saves the result as a plan artifact that can’t be changed.

2

Review

A reviewer examines the proposed changes, including which resources will be added, changed, or destroyed.

3

Approve or reject

If the reviewer approves the plan, the run continues. If they reject it, no changes are applied.

4

Apply

Gateway applies the approved plan artifact exactly as it was reviewed.