auth: switch to Authentik OAuth for LLM API
Build & Push Portfolio Image / build-push (push) Successful in 3m28s

- Add lib/auth.ts: OAuth client with token caching
- Use client_credentials grant with portfolio-agent service account
- Mount portfolio-agent-oidc secret for credentials
- Remove static LLM_API_TOKEN dependency
This commit is contained in:
Story Crater Bot
2026-09-03 19:32:12 -07:00
parent 41faf00c9a
commit 32636832fc
3 changed files with 84 additions and 14 deletions
+14 -3
View File
@@ -26,11 +26,22 @@ spec:
secretKeyRef:
name: portfolio-secrets
key: FORGEJO_TOKEN
- name: LLM_API_TOKEN
# OAuth credentials for LLM API (client_credentials grant)
- name: AUTHENTIK_CLIENT_ID
valueFrom:
secretKeyRef:
name: portfolio-secrets
key: LLM_API_TOKEN
name: portfolio-agent-oidc
key: CLIENT_ID
- name: AUTHENTIK_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: portfolio-agent-oidc
key: CLIENT_SECRET
- name: AUTHENTIK_TOKEN_URL
valueFrom:
secretKeyRef:
name: portfolio-agent-oidc
key: TOKEN_URL
ports:
- name: http
containerPort: 3000