Skip to content

Google sign-in for pm.security.cab: create the OAuth client (hands: interactive login) #12417

Closed

Description

@dezren39

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)

  1. In the Google Cloud console, under APIs & Services, Credentials, create an OAuth client ID of type Web application.
  2. Authorised redirect URI: https://snowy-sun-58a9.cloudflareaccess.com/cdn-cgi/access/callback
  3. 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.


Generated by Claude Code

Activity

  1. added
    area/infraInfrastructure, deployment, and operations
    user/escalatedRequires a Drew decision or access
    on Nov 22, 2026
  2. developing-today commented on Nov 22, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    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:

    • Authorized JavaScript origin: https://snowy-sun-58a9.cloudflareaccess.com
    • Authorized redirect URI: https://snowy-sun-58a9.cloudflareaccess.com/cdn-cgi/access/callback

    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.


    Generated by Claude Code

  4. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    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-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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/infraInfrastructure, deployment, and operationsstatus:doneuser/escalatedRequires a Drew decision or access

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions