Nick Vigilante 2e0f97e5de feat: add type and secret status to the configuration reference (DOCS-896) (#29310)
## Summary

The generated configuration reference told a reader how to set each
deployment option but not what the option accepts. Every entry carried
the environment variable, CLI flag, YAML key, and default, while
serpent's value type stayed in the source. A reader could not tell a
`duration` from an `int`, or discover an enum's accepted values, without
following the flag link into the CLI reference.

- **Type** is now rendered for all 200 options from the serpent value.
Enums expand into their choices (`- Type: `enum`, one of `password`,
`awsiamrds``) rather than printing serpent's escaped `enum[a\|b]`
spelling, which is meant for its own table output.
- **Secrets** are now marked. The nine options carrying the `secret`
annotation that `codersdk.IsSecretDeploymentOption` reads are
deliberately excluded from YAML, so the page now says where to set them
instead of leaving the omission unexplained.

## Correction to the issue

DOCS-896 claimed the page showed a YAML key for secret options. It does
not: all nine secret options have an empty `YAML` field, so the
generator already omitted that bullet. The real gap was that nothing
explained *why* the YAML key is missing. The page header and the
per-option marker now cover it.

## Verification

- `go test ./scripts/configdocgen` passes, with new cases for the
enum-choice parsing, plain and nil value types, and the secret marker
rendering exactly once for the annotated option.
- Regenerated page has 200 `- Type:` lines for 200 rendered options and
9 secret markers.
- `make lint/emdash`, markdownlint, `markdown-table-formatter`, and Vale
are clean on the regenerated page. `golangci-lint` clean on the package.
Full `make pre-commit` passed.

<details>
<summary>Local pre-push note</summary>

The repository pre-push hook runs the full Go suite locally. In this
workspace it segfaults the `make` process outright, and an isolated
`make test` run produces ~1,000 failures unrelated to this change
(embedded NATS servers failing to start within 10s, chatd state-machine
tests), which reproduce independently of this diff. I verified the
change with `go build ./...`, the package tests above, and the full
pre-commit suite instead, and disabled the hook for this worktree only
using its documented `git config coder.pre-push` knob, restoring the
setting immediately after the push. No `--no-verify`. CI is the
authority on the full suite here.

</details>

---

Generated with Coder Agents on behalf of @nickvigilante. Linear:
[DOCS-896](https://linear.app/codercom/issue/DOCS-896/configdocgen-render-option-type-and-secret-status)
2026-10-01 16:50:42 -04:00
2026-09-30 09:34:09 +01:00
…
…
…

Coder Logo Light Coder Logo Dark

Self-Hosted Cloud Development Environments and AI Agents

Coder Banner Light Coder Banner Dark

Quickstart | Docs | Why Coder | Premium

discord release godoc OpenSSF Best Practices OpenSSF Scorecard license Ask DeepWiki

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

Coder platform showing templates and a running workspace

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

Community

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.

S
Description
No description provided
Readme AGPL-3.0
2.3 GiB
0 Stars 1 Watchers 0 Forks
Languages
Go 73.5%
TypeScript 24.3%
Shell 0.9%
PLpgSQL 0.3%
Go Template 0.2%
Other 0.5%