auth
Dev Login
Changed onStub login: mints a session for a named principal by email, bypassing Google entirely. For the staging walkers (machines) only; people sign in with Google.
Three refusals, in this order, all before any database read:
- ENVIRONMENT=production: always refused, Google configured or not, because this path trusts a caller-supplied email with no identity proof at all.
- The server has no DEV_LOGIN_SECRET (Settings.dev_login_secret empty): refused, 403.
- The request's X-Dev-Login-Secret header is missing or differs (constant-time compare): refused, 403.
WHY 2 AND 3 (finding T11-auth-safety-01, 2026-11-21; lead decision under Frederick's cleanup order of 2026-11-20): staging is on a public address and holds a nightly copy of production, so an email alone let anyone on the internet sign in there as any employee. The callers that use this route send the header (ops/late-pack-and-ship-walk/walk.py); the Mac standby's sign-in is open item STANDBY-DEVLOGIN-1.
post/api/auth/dev/login
Request
- Base URLhttps://api.pigeonly.com (the document declares no server; this is the origin it was published from)
- Authnone declared
Headers
X-Dev-Login-Secret, string nullable
Request body
Dev Login Request required
email, string required
Response
Successful Response
object required
Changes
- info
added the new optional
headerrequest parameterX-Dev-Login-Secret
- info