[Ch 7] Services wiring — Keycloak realm and OIDC client #17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Feature
Lineage
Standalone — scoped from platform-playbook chapter 7 for the full-stack mdview vision.
Repo
ldraney/pal-e-services,ldraney/pal-e-deploymentsUser Story
As a developer
I want a Keycloak realm and OIDC client for mdview
So that users can authenticate via SSO and generate API tokens
Context
mdview has no auth. The full-stack vision requires Keycloak SSO so users can log in and generate API tokens for CLI access. This ticket creates the realm and client in Terraform. The app-side auth wiring comes in Ch 11 (integration).
File Targets
pal-e-services/terraform/keycloak.tf— addmdviewtokeycloak_realmsvariablepal-e-deployments/overlays/mdview/prod/secrets.enc.yaml— add KEYCLOAK_* env varsFiles the agent should NOT touch:
ldraney/mdview/app/— app-side auth is Ch 11Feature Flag
none
Acceptance Criteria
mdviewexists with registration enabledmdviewwith PKCE (S256) + standard flowhttps://mdview.tail5b443a.ts.net/auth/keycloak/callbackTest Expectations
tofu planin pal-e-services shows Keycloak resourcesConstraints
Checklist
Related
project-mdview— project this affectsScope Review: NEEDS_REFINEMENT
Review note:
review-1948-2026-08-01File targets and repo placement need correction before this ticket is agent-ready.
arch-mdview-infranote does not exist in pal-e-docs (404) — needs creation (affects 5 board items)keycloak.tfis the resource definitions, not where values are set — should reference the tfvars file forkeycloak_realmsandkeycloak_clientsentriessecrets.enc.yamldoes not exist yet — should say "create" not "add"overlays/mdview/prod/kustomization.yamlneeds update to reference secretskeycloak_clientsvariable entry (AC requires OIDC client)