THE GITHTML FIELD GUIDE

An environment-variable catalog template with precedence and secrecy

Catalog each environment variable by exact name, purpose, type, required status, default, precedence, and when changes take effect. Mark secret-bearing values without recording the secrets themselves. Verify the application-specific parsing behavior, including empty and unset values; a name ending in TIMEOUT or ENABLED does not establish its units or accepted syntax.

Inventory variables from their consumers

Start with configuration parsing code, maintained deployment documentation, and validated example files. Search results alone can include unused or test-only names, so trace each candidate to the code that consumes it. Distinguish application settings from variables used only by a build tool or local development script. Record the owning component and supported environment. A shared variable name can have different meanings in separate processes, and a catalog should not flatten those differences. Keep a status field for deprecated or ignored settings so readers do not keep supplying values that no longer affect behavior.

Describe parsing and precedence explicitly

Use the template below for each variable rather than a two-column name-and-description table. Identify units for durations and sizes, accepted boolean spellings, case sensitivity, allowed ranges, and validation failures where those details matter. Explain which source wins when the same setting appears in a file, environment, and command-line option, based on the application's actual contract. Do not infer precedence from a framework's usual behavior if the project adds its own loader. Provide safe illustrative values and describe secret provisioning by reference to the approved process. Never copy a real token or production connection string into the catalog just to make an example concrete.

text
Variable:
Consumer and scope:
Type and units:
Required / default:
Unset versus empty:
Allowed values:
Precedence:
Reload requirement:
Secret-bearing: yes / no
Safe example:
Verified version and evidence:

Verify lifecycle and maintenance ownership

Test representative values in a safe local environment, including missing, empty, malformed, and boundary cases. Confirm whether changes require process restart, a rebuild, or another documented reload action. Record the version and evidence used for the entry. Review the catalog when parsing code changes, and keep example configuration files aligned with it. If a value is derived or automatically injected, explain who supplies it so users do not override it unnecessarily. The catalog should help someone predict configuration behavior without exposing the actual deployment's secrets. It is a technical reference, not an authorization to edit production configuration or rotate credentials. For deprecated variables, state the replacement and conflict behavior when both names are supplied. This prevents an apparently harmless compatibility alias from becoming a hidden source of configuration ambiguity.

  1. Trace each variable to an active consumer and distinguish runtime from build-only settings.
  2. Verify units, allowed values, missing-versus-empty behavior, and precedence.
  3. Use placeholders for secret-bearing values and link the approved provisioning process.
  4. Test lifecycle behavior and assign an owner for future parsing changes.

Sources and further reading

AI-assisted writing with source-linked guidance and illustrative examples. Read our editorial approach or report a correction.

All documentation templates guides →

Read as MarkdownAll guides

An environment-variable catalog template with precedence and secrecy · gitHtml