Go theorytheory 0/50 · 0%
Operations · medium

35. Configuration and Secrets

Flags, env and safe defaults.

The flag package handles CLI options; environment variables suit container deployments. Validate configuration at startup and fail fast with a clear message. Never log secrets or commit them — read keys from the environment or a secret manager.

Check your understanding

  1. 1. Invalid configuration should…

  2. 2. Secrets belong in…