Apply authorization middleware to terminal bootstrap routes
fix(terminal): apply authorization middleware to terminal bootstrap routes
Apply authorization middleware to terminal bootstrap routes847166-fix-apply-authorization-middleware-to-terminal-bootstrap-cve-2026-34048fixapply authorization middleware terminal bootstrap routes
Committed by andrasbacsai
commit message
fix(terminal): apply authorization middleware to terminal bootstrap routes
Apply the existing `can.access.terminal` middleware to `POST /terminal/auth`
and `POST /terminal/auth/ips` routes, consistent with the `GET /terminal` route.
Adds regression tests covering unauthenticated, member, admin, and owner roles.
Co-Authored-By: Claude Opus 4.6 <[email protected]>Editor assessment
This commit patches CVE-2026-34048. The subject applies authorization middleware to terminal bootstrap routes, and the body adds the specifics: the existing can.access.terminal middleware is put on POST /terminal/auth and /terminal/auth/ips, consistent with the GET route. It also records regression coverage across unauthenticated, member, admin, and owner roles, which is exactly the evidence a reviewer wants for an access-control change. What is absent is the exposure that prompted the fix, and no context beyond the terminal scope. The trailer is well formed. Direct, testable, and accurate, it is a good publishable security commit.