k8s/app/opensearch-deployment.yaml — Updated JWKS/issuer URLs to poimen slug
Rollout
Reloader (--auto-reload-all=true) triggers rolling restart when ConfigMap/Secret change. Merge and ArgoCD sync handles everything.
## Problem
JWT validation failing with `error decoding response body: expected value at line 6 column 1`.
Root cause: `AUTHENTIK_ISSUER` pointed to slug `poimen-memory` which returns 404 on OIDC discovery. Slug was renamed to `poimen` in Authentik.
Secondary issue: auth env vars were set via `kubectl set env` (not in git), so every ArgoCD sync reverted them.
## Changes
- **k8s/app/config.yaml** — ConfigMap for non-sensitive env (auth mode, rate limits, OpenSearch/Obsidian URLs)
- **k8s/app/auth.enc.yaml** — SOPS-encrypted Secret with `AUTHENTIK_ISSUER`, `AUTHENTIK_AUDIENCE`, `JWT_CACHE_TTL_SECS`
- **k8s/app/secret-generator.yaml** — KSOPS generator for ArgoCD decryption
- **k8s/app/deployment.yaml** — `envFrom` referencing ConfigMap + Secret
- **k8s/app/kustomization.yaml** — Added config.yaml + KSOPS generator
- **k8s/app/opensearch-deployment.yaml** — Updated JWKS/issuer URLs to `poimen` slug
## Rollout
Reloader (`--auto-reload-all=true`) triggers rolling restart when ConfigMap/Secret change. Merge and ArgoCD sync handles everything.
- Add k8s/app/config.yaml (ConfigMap) for non-sensitive env vars
- Add k8s/app/auth.enc.yaml (SOPS-encrypted) for AUTHENTIK_ISSUER, AUDIENCE
- Add k8s/app/secret-generator.yaml (KSOPS generator for ArgoCD)
- Deployment uses envFrom instead of inline env vars
- Update Authentik slug from poimen-memory to poimen (404 on OIDC discovery)
- Update OpenSearch JWKS/issuer URLs to match new slug
- Reloader (auto-reload-all=true) triggers rollout on config change
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Problem
JWT validation failing with
error decoding response body: expected value at line 6 column 1.Root cause:
AUTHENTIK_ISSUERpointed to slugpoimen-memorywhich returns 404 on OIDC discovery. Slug was renamed topoimenin Authentik.Secondary issue: auth env vars were set via
kubectl set env(not in git), so every ArgoCD sync reverted them.Changes
AUTHENTIK_ISSUER,AUTHENTIK_AUDIENCE,JWT_CACHE_TTL_SECSenvFromreferencing ConfigMap + SecretpoimenslugRollout
Reloader (
--auto-reload-all=true) triggers rolling restart when ConfigMap/Secret change. Merge and ArgoCD sync handles everything.Manual pre-apply status
ConfigMap and Secret applied manually (ahead of merge):
Issue encountered:
kubectl rollout restarttriggered Reloader, new pods crashed:Root cause: Deployment in-cluster doesn't have
envFromyet (PR not merged). Reloader detected new ConfigMap/Secret but deployment doesn't reference them, so restart exposed pre-existing image issue.Rolled back: old pods (2/2) healthy.
Next steps:
envFromto deployment)AUTHENTIK_ISSUER=.../poimen/