Skip to content

devcloud guard: find bare Google OAuth tokens (devcloud 0.4.2) - #274

Merged
SSFSKIM merged 1 commit into
mainfrom
devcloud-ya29
Oct 19, 2026
Merged

SSFSKIM merged 1 commit into
mainfrom
devcloud-ya29

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 19, 2026

Copy link
Copy Markdown
Owner

gcloud auth print-access-token prints the access token alone on its line. No detector rule matched that form: only the JSON-assignment and Bearer forms were caught, so the token reached the model and the transcript unmasked.

New token rules:

  • google-access-token: ya29. access tokens, including the dotted service-account form ya29.c.…. A closing sentence dot is not included in the match.
  • google-refresh-token: 1//0… refresh tokens.

Checked on a real print-access-token output (1025 characters): one span covered it whole, printing only lengths. The devcloud-mods tests pass 91/91, and the gates are GREEN (run 39277761769).

cua vendors this file, so a resync ticket follows in SSFSKIM/cua.

gcloud auth print-access-token prints the access token alone on its line,
and no rule matched it: only the JSON and Bearer forms were caught, so the
token reached the model and the transcript unmasked. A ya29. access token,
the dotted service-account form included, and a 1//0 refresh token are now
token rules. Checked on a real print-access-token output: one span covering
it whole.
@SSFSKIM
SSFSKIM merged commit 9d593f7 into main Oct 19, 2026
SSFSKIM added a commit that referenced this pull request Oct 19, 2026
…; bump to 7.189.1

Conflicts only in the version manifests: main's side taken (devcloud 0.4.2
with it), then bump-version.sh to 7.189.1, the next patch above main.

Sminos-Session: smns-erb-71#b4948247 (doperpowers on macbook)
SSFSKIM added a commit that referenced this pull request Oct 19, 2026
…e-roster; bump to 7.189.2

Conflicts resolved:
- cmd_guide: #269's guide_text(session, launch, source, session_title) call,
  with the roster's launch variable and its append around it.
- test-guide.sh: #269's fork and engine-record cases and this branch's
  roster cases both kept, the roster's first.
- The spec's Decisions: #269's, then the roster's, its follow-on.
- CLAUDE.md's hooks/ row: main's line with the roster clause.
- The version manifests: main's side, then bump-version.sh to 7.189.2.

Sminos-Session: smns-erb-71#b4948247 (doperpowers on macbook)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant