Add token exchange config to gateway ConfigMap + SOPS Secret.
Both repos: ConfigMap/Secret in rock/homelab-frontend/k8s/, config struct in rock/homelab-frontend/internal/config/
rock/homelab-frontend/k8s/
rock/homelab-frontend/internal/config/
api-gw provider exists with:
api-gw
client_id
client_secret
token_url
https://authentik.riotpiao.com/application/o/token/
jwks_url
authorization_code
refresh_token
client_credentials
password
device_code
openid
email
profile
groups
permissions
roles
memory
Password grant configured but returning invalid_grant for user rock — needs debugging (flow stage issue suspected).
invalid_grant
rock
gateway-config-secret.enc.yaml
auth: tokenUrl: "http://authentik-server.iam.svc.cluster.local/application/o/token/" clientId: "api-gw" # clientSecret from env var AUTH_CLIENT_SECRET
deployment.yaml
env: - name: AUTH_CLIENT_SECRET valueFrom: secretKeyRef: name: api-gw-client-secret key: client-secret
internal/config/config.go
Add TokenURL, ClientID, ClientSecret fields to AuthConfig
TokenURL
ClientID
ClientSecret
AuthConfig
Closed by homelab-frontend PR #17: riotpiao-poimen/homelab-frontend#17
No dependencies set.
The note is not visible to the blocked user.
Summary
Add token exchange config to gateway ConfigMap + SOPS Secret.
Both repos: ConfigMap/Secret in
rock/homelab-frontend/k8s/, config struct inrock/homelab-frontend/internal/config/Current state (verified 2026-09-08)
api-gwprovider exists with:client_id:api-gwclient_secret: exists in Authentik (query via API)token_url:https://authentik.riotpiao.com/application/o/token/jwks_url: already configured in gateway configauthorization_code,refresh_token,client_credentials,password,device_codeopenid,email,profile,groups,permissions,roles,memoryPassword grant configured but returning
invalid_grantfor userrock— needs debugging (flow stage issue suspected).Changes needed
gateway-config-secret.enc.yamldeployment.yamlinternal/config/config.goAdd
TokenURL,ClientID,ClientSecretfields toAuthConfigAcceptance Criteria
Closed by homelab-frontend PR #17: riotpiao-poimen/homelab-frontend#17