Part 1 of 2 for automating Terraform bumps. This PR adds the bump script. #31461 is stacked on top and adds the weekly workflow that runs it. Today these bumps are done by hand (#30516, #31301, #31438 and their backports). ## `scripts/update_terraform_version.sh [--skip-fixtures] <version>` Run from the repo root. It updates every file that pins the bundled Terraform version. Files a branch doesn't have are skipped, so the same script works on `main` and on older release branches: - `provisioner/terraform/install.go`: `TerraformVersion`. `maxTerraformVersion` changes only on a minor/major bump (it moves to `X.Y.9`). - `provisioner/terraform/terraform_SHA256SUMS` (from #31600), when the branch has it: replaced with the verified SHA256SUMS. `scripts/Dockerfile.base` and `install.sh` read the version and checksums from that file, so neither is edited. - Otherwise (older branches): `install.sh` and `scripts/Dockerfile.base` are edited directly, as before. - `dogfood/coder/Dockerfile`, airgap docs (`docs/install/airgap.md` or `docs/install/prepare/airgap.md`), `.github/actions/setup-tf/action.yaml`, `testdata/{,resources/}version.txt` - `mise.toml`, `mise.lock` (per-platform checksums), `flake.nix` (per-platform SRI hashes, old and new layouts) - `provisioner/terraform/testdata/generation.sha1`: re-fingerprinted with `generate.sh --if-needed` using the new binary Every checksum comes from `terraform_<v>_SHA256SUMS`, and the script fails unless that file carries a valid signature from HashiCorp's release key (`C874 011F 0AB4 0511 0D02 1055 3436 5D94 72D7 468F`). It refuses downgrades and fails if a touched file still points at another release, or if a branch that pins `TERRAFORM_VERSION` in `install.sh` didn't end up on the new version. It doesn't source `lib.sh`, so CI can run `main`'s copy against a release branch checkout. ## Testing Run in a dogfood workspace: - **`main`, 1.16.7 to 1.17.1:** byte-identical to #31438, including `maxTerraformVersion` and `generation.sha1`. - **`release/2.38`, 1.16.7 to 1.17.1:** byte-identical to #31441. - **`release/2.29`** (1.16.6 to 1.16.7) **and `release/2.34`, `release/2.36`** (to 1.17.1): same file sets as the earlier manual backports (#30555, #30554, #30553). - Rerunning on an already-bumped tree makes no changes. Downgrades, unknown versions and bad flags fail with a clear error. - **Checksum-file layout** (#31600 head, 1.16.7 to 1.17.1, `--skip-fixtures`): `terraform_SHA256SUMS` is byte-identical to HashiCorp's signed file, `install.sh` and `Dockerfile.base` are untouched, the new `TestTerraformChecksumFileMatchesVersion` passes, and `mise.toml`, `mise.lock`, `flake.nix`, the airgap doc and the `install.go` versions are byte-identical to #31438. Rerunning changes nothing. - **Old layout** (`main`, 1.16.7 to 1.17.1, `--skip-fixtures`): output is byte-identical to the previous revision of this script. - `shellcheck` (v0.10.0) and `shfmt -d` (v3.12.0) are clean on the updated script. - `make lint/shellcheck fmt/shfmt lint/emdash lint/typos` pass. ## How #31600, #31463 and #31461 fit together - **#31600** makes `provisioner/terraform/terraform_SHA256SUMS` (a verbatim copy of HashiCorp's signed file) the one place the bundled Terraform checksums live. `Dockerfile.base` reads it, and `install.sh` downloads it from the Coder repo at install time. - **#31463** adds `scripts/update_terraform_version.sh`. On branches with the checksum file it just replaces that file. On older branches it edits `install.sh` and `Dockerfile.base` directly. - **#31461** (stacked on #31463) runs the script weekly for `main` and the supported release branches. It needed no changes for the checksum file. None of the three touch the same files, and merging all three onto `main` is conflict-free. On that combined tree, the bump script took 1.16.7 to 1.17.1 by replacing the checksum file, the new Go test passes, and `actionlint` and `shellcheck` pass. They can merge in any order. Merge #31461 after #31463, retargeted to `main`. Opened by Superblink on behalf of @droopy4096. --------- Co-authored-by: coder[bot] <137810501+coder[bot]@users.noreply.github.com> Co-authored-by: Dmitry Makovey <dmakovey@yahoo.com> Co-authored-by: Jakub Domeracki <jakub@coder.com>
Coder is a self-hosted platform for cloud development environments and AI coding agents. Workspaces are defined with Terraform, connected through a secure Wireguard® tunnel, and automatically shut down when not used. Coder Agents runs a native AI coding agent whose loop executes in the control plane on your infrastructure, with no API keys in workspaces.
- Define cloud development environments in Terraform
- EC2 VMs, Kubernetes Pods, Docker Containers, etc.
- Automatically shutdown idle resources to save on costs
- Onboard developers in seconds instead of days
- Delegate coding work to AI agents on your infrastructure
- Bring any model (Anthropic, OpenAI, Google, Bedrock, self-hosted)
- No LLM credentials in workspaces, user identity on every action
- Centralized model governance, cost tracking, and audit logging
Quickstart
Check out our install guides for other methods and a complete tutorial.
Try Coder with the install script on Linux and macOS, or grab the latest binary or installer from GitHub Releases on Windows:
curl -fsSL https://coder.com/install.sh | sh
Start the server and open http://localhost:3000 to create your initial user, create a Docker template, and provision your first workspace:
coder server
For a production deployment, add a PostgreSQL database (version 13 or later) and an external access URL, and see our validated architectures for sizing and infrastructure guidance:
coder server --postgres-url <url> --access-url <url>
Without these flags, Coder uses a built-in database and sets up a *.try.coder.app access URL for evaluation. Use coder --help for the full list of flags and environment variables.
Documentation
Browse the documentation or visit a specific section below:
- Workspaces: Workspaces contain the IDEs, dependencies, and configuration information needed for software development
- Templates: Templates are written in Terraform and describe the infrastructure for workspaces
- Coder Agents: Delegate coding work to AI agents running on your self-hosted infrastructure
- AI Gateway: Centralize authentication, auditing, and cost controls for AI tooling
- Administration: Learn how to operate Coder
- Premium: Learn about paid features built for large teams
- IDEs: Connect your existing editor to a workspace
Support
Open an issue for bugs and feature requests.
For community support, showcasing what you built, and feedback on in-progress features, join our Discord or GitHub Discussions.
Dedicated support is included in Coder Premium. For more information, visit coder.com/pricing.
Integrations
New integrations are always in progress. Open an issue to request one. Contributions are welcome in any official or community repository.
Official
- Coder Registry: Templates, modules, and integrations for common development environments
- Coding Agents: Run agents like Claude Code, Codex, and OpenCode isolated in Coder workspaces
- coderd Terraform Provider: Declaratively manage your Coder deployment configuration as code
- VS Code Extension: Open any Coder workspace in VS Code with a single click
- JetBrains Toolbox Plugin: Open any Coder workspace from JetBrains Toolbox with a single click
- Dev Containers: Build development environments using
devcontainer.jsonon Docker, Kubernetes, and OpenShift - Kubernetes Log Stream: Stream Kubernetes Pod events to the Coder startup logs
- Self-Hosted VS Code Extension Marketplace: A private extension marketplace that works in restricted or airgapped networks integrating with code-server.
- GitHub Actions: An action to set up the Coder CLI in GitHub workflows
Community
- Coder Discord: Chat with the community, get support, and hear about new product updates first
- Community Templates: Community-contributed workspace templates in the Coder Registry
- Community Modules: Community-contributed modules to extend Coder templates
- Coder Template GitHub Action: A GitHub Action that updates Coder templates
- Coder Agents Chat Action: A GitHub Action that starts a Coder Agents chat against a GitHub issue or pull request
Contributing
New contributors are always welcome. If you are new to the Coder codebase, see the contribution guide to get started.
Hiring
Apply on the careers page if you are interested in joining the team.
