configmap.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. # Non-secret server settings (task 46).
  2. #
  3. # Every key maps to a `D_OAUTH_*` environment variable read by
  4. # `Config::load` (prefix `D_OAUTH`, nested separator `__`). Secret material
  5. # (database/redis URLs, token pepper, TOTP key) lives in `secret.yaml` and
  6. # is NEVER added here: the pepper and TOTP key are file-mounted by the
  7. # Deployment, and their `*_FILE` paths are declared in `deployment.yaml`,
  8. # not in this ConfigMap (`scripts/check_manifests.py` rejects a
  9. # secret-shaped key here).
  10. apiVersion: v1
  11. kind: ConfigMap
  12. metadata:
  13. name: d-oauth-config
  14. namespace: d-oauth
  15. labels:
  16. app.kubernetes.io/name: d-oauth-server
  17. app.kubernetes.io/part-of: d-oauth
  18. data:
  19. D_OAUTH_ISSUER: "https://auth.example.com"
  20. D_OAUTH_ENVIRONMENT: "production"
  21. D_OAUTH_BIND_ADDR: "0.0.0.0:8080"
  22. D_OAUTH_HEALTH_ADDR: "0.0.0.0:8081"
  23. D_OAUTH_TLS__CERT_PATH: "/certs/tls.crt"
  24. D_OAUTH_TLS__KEY_PATH: "/certs/tls.key"
  25. # Client-CA enables in-process mTLS verification. While set, the cluster
  26. # MUST use L4/TCP passthrough (NLB gateway / TLSRoute); an L7 ingress that
  27. # terminates TLS strips the client certificate. See docs/DEPLOYMENT.md and
  28. # scripts/check_manifests.py, which rejects the forbidden pairing.
  29. D_OAUTH_TLS__CLIENT_CA_PATH: "/certs/client-ca.crt"
  30. # Single-Redis topology takes a plain URL; the contract the server asserts
  31. # at startup is noeviction + AOF, configured on the Redis side.
  32. D_OAUTH_REDIS__DURABILITY: "waitaof"