Commit a2c0fc9
fix(auth): accept ea_* prefix in isApiKey — staleness bug from edge-auth migration (#31)
The isApiKey() prefix sniffer only matched sb_live_*/sb_test_*, the legacy
stackbilt-auth key format. When edge-auth took over as the ecosystem auth
SoT and started minting ea_* keys, this check was never updated — so any
ea_* bearer would fall through to the validateJwt path and fail, leaving
ea_* API keys effectively unreachable through the gateway.
Aligns with edge-auth's own resolvePrincipal at src/security/identity.ts:44,
which already accepts all three prefixes. No functional change for existing
sb_* keys; purely additive.
Closes #28 partially — OAuth default-scope
fix still pending as Option A in that issue.
Co-authored-by: Kurt Overmier <kurt@stackbilt.dev>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 9fd96f8 commit a2c0fc9
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
9 | 17 | | |
10 | 18 | | |
11 | 19 | | |
| |||
0 commit comments