infra/scripts/t3-dispatch
Viktor Barzin d27df1f321 t3code: dispatch — strip @domain from X-authentik-username (Authentik injects email)
Authentik injects the full email (e.g. vbarzin@gmail.com), but /etc/ttyd-user-map
and dispatch.json key on the local part (vbarzin), so every real login hit
403 'no instance provisioned'. Strip @domain before lookup, matching the
terminal stack's tmux-attach.sh. Verified: vbarzin@gmail.com / emil.barzin@gmail.com
-> 302 (own instance); unmapped/no-header -> 403.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-02 19:24:30 +00:00
..
go.mod t3code: devvm dispatch + auto-pair service (Go) 2026-06-02 19:24:30 +00:00
main.go t3code: dispatch — strip @domain from X-authentik-username (Authentik injects email) 2026-06-02 19:24:30 +00:00