Commit b8d57ee
committed
fix(setup): validate ISSUER_URL has scheme + strip trailing slash
A scheme-less issuer URL like `broker.litentry.org` was silently accepted
and propagated into BROKER_OIDC_ISSUER. The broker then emitted JWTs with
`iss: "broker.litentry.org"` (no `https://`), which AWS rejects at
AssumeRoleWithWebIdentity time and which causes the documented smoke test
`jq '.issuer == "https://broker.litentry.org"'` to print false.
Validate up front:
• require https:// (or http:// with a warning — AWS won't accept it,
but local dev might).
• strip a trailing slash so BROKER_OIDC_ISSUER matches the JWT iss
claim byte-for-byte.
Operators hitting the bad config in the wild: edit
/etc/systemd/system/agentkeys-broker.service so
Environment=BROKER_OIDC_ISSUER=https://<host>, daemon-reload, restart.
If you've already registered the OIDC provider on AWS with the wrong URL,
delete and recreate it.1 parent fae2478 commit b8d57ee
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
| 289 | + | |
290 | 290 | | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
291 | 299 | | |
292 | 300 | | |
293 | 301 | | |
| |||
0 commit comments