
poimenandrock
1c64d8ff0e
feat(config): add tokenUrl, clientId, clientSecret to auth config (#17)
Closes homelab#12 (P3.7)
## Changes
- `AuthConfig`: added `TokenURL`, `ClientID`, `ClientSecret` fields
- `loader.go`: reads `tokenUrl`/`clientId` from YAML, `ClientSecret` from `AUTH_CLIENT_SECRET` env
- `deployment.yaml`: `AUTH_CLIENT_SECRET` from `api-gw-client-secret` Secret (optional)
- `gateway-config-secret.enc.yaml` + `configmap.yaml`: added `tokenUrl` and `clientId`
## Secret never in YAML
`clientSecret` deliberately omitted from YAML struct. Loaded from env only.
## Tests
3 tests: full config load, env-only secret, backward compat (missing fields = zero).
Co-authored-by: poimen <[email protected]>
2026-09-08 23:43:29 +00:00
..
2026-09-06 13:45:04 +00:00
2026-09-08 23:43:29 +00:00
2026-09-08 23:08:39 +00:00
2026-08-19 20:54:34 -07:00
2026-08-26 13:47:36 -07:00
2026-08-26 13:47:36 -07:00
2026-09-08 23:08:39 +00:00
2026-08-26 13:47:36 -07:00
2026-08-26 14:05:43 -07:00
2026-09-08 23:20:31 +00:00
2026-08-30 09:45:20 -07:00
2026-08-21 20:46:45 -07:00
2026-08-31 15:01:56 -07:00
2026-08-21 16:49:44 -07:00