You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Google sign-in for pm.security.cab: create the OAuth client (hands: interactive login) #12417
https://pm.security.cab is live behind sign-in limited to drewrypope@gmail.com (#12360, #12412). Sign-in works today with a one-time PIN mailed to that address. Google sign-in needs one thing no agent can do: a Google OAuth client, which only a signed-in Google account can create.
The one action (about five minutes)
In the Google Cloud console, under APIs & Services, Credentials, create an OAuth client ID of type Web application.
Save the client ID and the client secret in Bitwarden Secrets Manager under the names google.access-sso.client-id and google.access-sso.client-secret.
What happens next, with no further action
pm-stack/console/scripts/expose.py reads those two secrets by name. On its next run it adds Google as a sign-in method in Cloudflare Access and allows it on the pm.security.cab application, next to the one-time PIN. The policy does not change: only drewrypope@gmail.com gets in, by either method. Any agent can run the script; it changes only what is not already so.
Done check
python3 pm-stack/console/scripts/expose.py --check prints no line about Google sign-in being off and exits 0, and the sign-in page for https://pm.security.cab/console/ offers Google.
The work around this step is now in the app (code#12517): More → Sign-in shows the steps, the two addresses to give Google with copy buttons, and a form for the client ID and secret. Submitting it turns Google sign-in on at Cloudflare Access with the emailed code kept as the fallback; nothing else is needed afterwards (no Bitwarden secrets, no command).
What is left here is only the part Google restricts to a signed-in person: creating the OAuth client (Google Cloud → Clients → Create client → Web application).
Checked live on the laptop: expose.py --status reads the account and reports {"google": false, "pin": true}. Not checked: the call that creates the Google sign-in method, which needs a real client.
Drew created the Google OAuth web client (redirect URI as specified in this issue) and handed the credentials to archer in the main chat; archer saved them in Bitwarden Secrets Manager under exactly the names this issue prescribes — google.access-sso.client-id and google.access-sso.client-secret — and verified both byte-equal on re-read. Values appear nowhere in this record.
That completes this issue's one action. Wiring the client into the Access application for pm.security.cab continues under #12412.
Activity
developing-today commentedon Nov 22, 2026
CODE-4561
dezren39 commentedon Nov 22, 2026
The work around this step is now in the app (code#12517): More → Sign-in shows the steps, the two addresses to give Google with copy buttons, and a form for the client ID and secret. Submitting it turns Google sign-in on at Cloudflare Access with the emailed code kept as the fallback; nothing else is needed afterwards (no Bitwarden secrets, no command).
What is left here is only the part Google restricts to a signed-in person: creating the OAuth client (Google Cloud → Clients → Create client → Web application).
For this account the two values are:
https://snowy-sun-58a9.cloudflareaccess.comhttps://snowy-sun-58a9.cloudflareaccess.com/cdn-cgi/access/callbackChecked live on the laptop:
expose.py --statusreads the account and reports{"google": false, "pin": true}. Not checked: the call that creates the Google sign-in method, which needs a real client.Generated by Claude Code
dezren39 commentedon Nov 23, 2026
Done — 2026-11-22
Drew created the Google OAuth web client (redirect URI as specified in this issue) and handed the credentials to archer in the main chat; archer saved them in Bitwarden Secrets Manager under exactly the names this issue prescribes —
google.access-sso.client-idandgoogle.access-sso.client-secret— and verified both byte-equal on re-read. Values appear nowhere in this record.That completes this issue's one action. Wiring the client into the Access application for pm.security.cab continues under #12412.