i2goSignals

goSignals

11. Environment-variable taxonomy (I2SIG_<AREA>_*)

Date: 2026-05-14

Status

Accepted

Context

goSignals is configured entirely by environment variables (no config file). By v0.10 the names had grown organically — POLL_SRV_BEHAVIOR, TRANSMITTER_BACKFILL_INTERVAL, MONGO_*, and so on — with no common prefix, no 1:1 mapping to documentation sections, and no way to grep “every server-side knob.” PRD #64 rationalised the whole surface.

Decision

Every server-side environment variable is renamed under an I2SIG_<AREA>_* prefix taxonomy, with the area name mapping 1:1 to a section of docs/configuration_properties.md:

Every old name continues to be read through the internal/envcompat shim, which prefers the new name, falls back to the old, and emits one WARN per process when an operator is still relying on a deprecated name.

Industry-standard exemptions. Seven variables keep their bare names because external tooling and conventions expect them, and they will not be renamed: PORT, BASE_URL, LOG_LEVEL, LOG_FORMAT, POD_NAME (Kubernetes Downward API), MONGO_URL (Mongo driver convention), and SPIFFE_ENDPOINT_SOCKET (SPIFFE Workload API spec, consumed by go-spiffe).

Value translation. One rename also changes the value vocabulary: POLL_SRV_BEHAVIOR → I2SIG_POLL_RESPECT_STATUS, where the old MODE maps to true and ALWAYSON to false, inside envcompat.LookupWithTranslate, so an operator with the old name set keeps the same runtime behaviour.

Deprecation timeline. In v0.11.0 both old and new names are accepted (each old name WARNs once per process). In v0.12.0+ the deprecated names are removed; envcompat.Lookup survives as the read seam but its old-name argument goes empty for every renamed knob.

Consequences

Positive

Negative