Commit 347083a
Arron Atchison
feat(tb-dev): add the tbpro OIDC clients for Send
Send on EKS tb-dev needs two tbpro clients (platform-infrastructure#712, part of
the Send migration #695). Neither exists today -- verified: no send* client in
the thunderbird/accounts realm import (11 clients, appointment pair present) and
none codified here.
Two clients, mirroring the thunderbird-appointment pair, because Send has two
distinct OIDC roles (verified in tbpro-add-on packages/send):
- thunderbird-send-frontend PUBLIC: the SPA does auth-code + PKCE via
oidc-client-ts (reads APP_OIDC_CLIENT_ID)
- thunderbird-send-backend CONFIDENTIAL: validates bearer tokens by RFC 7662
introspection (reads OIDC_CLIENT_ID + OIDC_CLIENT_SECRET)
A public client cannot introspect, so one shared client would not work.
Under Pattern C the SPA and API share one origin
(https://send.tb-dev.thunderbird.dev), so both clients use that single
redirect/web-origin host -- there is no separate send-backend host on EKS.
Wiring (the file alone would be inert):
- apply-client-config.sh: CONFIG_FILE -> CONFIG_FILES, now passing both imports
to config-cli's comma-separated IMPORT_FILES_LOCATIONS. Unchanged otherwise:
still no-delete (never touches other tbpro clients), cache disabled so it
reconciles on every start, same retry loop.
- kustomization.yaml: ship tbpro-send-clients.yaml in the keycloak-realm-config
ConfigMap. Verified the rendered ConfigMap has both keys and /config is mounted
as a whole directory, so the new path resolves.
Because this reconciles on every Keycloak start, a Neon branch reset self-repairs
these clients with no manual kcadm step.
The backend client's SECRET is deliberately not set here (config-cli would need
it in plaintext). Keycloak generates one on creation; it must be copied into the
mzla/tb-dev/send bundle as OIDC_CLIENT_SECRET (platform-infrastructure#711).
Refs platform-infrastructure#712, #6951 parent 0ed19af commit 347083a
3 files changed
Lines changed: 69 additions & 2 deletions
File tree
- overlays/tb-dev
- keycloak/realm-config
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
20 | 25 | | |
21 | 26 | | |
22 | 27 | | |
| |||
55 | 60 | | |
56 | 61 | | |
57 | 62 | | |
58 | | - | |
| 63 | + | |
59 | 64 | | |
60 | 65 | | |
61 | 66 | | |
| |||
Lines changed: 61 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
0 commit comments