Repository navigation
Closed
Description
Summary
Since #265 merged, the loop opens no PR preview, so the claude-loop Cloudflare Access service token is unused. It still opens every SahajCloud PR preview, and its pair still sits in the loop routines' environment, which has no secret store. A person switches it off: the loop holds no Cloudflare write credential and cannot edit its own routine environment.
Approach
- Access policy. In Cloudflare Zero Trust → Access → Applications, open the application covering
pr-*.cloud-preview.sydevelopers.comand remove the policy or include rule that names theclaude-loopservice token. Leave thegithub-citoken's rule alone: SahajCloud CI's smoke step still sends it (SahajCloud/.github/workflows/ci.yml:132). - The token. Access → Service credentials → Service Tokens: delete
claude-loop. - The routine environment. Signed in to claude.ai/code as the loop's Claude account, remove
PREVIEW_ACCESS_CLIENT_IDandPREVIEW_ACCESS_CLIENT_SECRETfrom the loop routines' environment. - The stale doc row.
docs/routine-setup.md:290still says thegithub-cipair is read by CI's "preview seed and smoke steps" and that "the loop holds its own pair in §4". The seed step is gone (feat(preview): load a typed fixture at boot that covers every surface SahajCloud#1181) and so is the loop's pair. Reword the row to the smoke step alone.
Acceptance criteria
- No Access policy names the
claude-loopservice token, and the token is deleted. - The loop routines' environment holds no
PREVIEW_ACCESS_*variable. - A sydevs member can still open a preview, and SahajCloud CI still reaches it with the
github-citoken. -
docs/routine-setup.mdnames no preview seed step and no loop-held Access pair.
Verification checklist
- Cloudflare Zero Trust → Service Tokens lists no
claude-loop. - The routine environment's variable list shows no
PREVIEW_ACCESS_CLIENT_IDorPREVIEW_ACCESS_CLIENT_SECRET. - Open
https://pr-<n>.cloud-preview.sydevelopers.com/admin/loginfor any open SahajCloud PR and sign in with GitHub. - The next SahajCloud PR's Lint, Test & Smoke check passes its smoke step.
-
git grep -nE "preview seed|its own pair" docs/routine-setup.mdreturns nothing.
Notes
Parts 1–3 are manual and outside the repo. Part 4 is a docs edit any session can make.
docs/routine-setup.md:463 already records the token as retired. Follow-up to #258 (PR #265).
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Priority
Medium
Hold Until
None yet
Projects
- StatusShow more project fieldsDone
Activity
Ardnived commentedon Nov 23, 2026
Done.
claude routinespolicy is removed from*.cloud-preview, and theclaude-loopservice token is deleted. Onlysydevs membersandgithub actionsremain (checked via the Access API).PREVIEW_ACCESS_CLIENT_IDandPREVIEW_ACCESS_CLIENT_SECRETremoved by the owner.pr-1243andpr-1225/admin/loginredirect to the Access GitHub sign-in. A re-run of SahajCloud#1243's Lint, Test & Smoke passed its smoke specs at 00:23 UTC on 2026-11-23, and thegithub-citoken was seen at the same moment.CF_ACCESS_*row, sogit grep -nE "preview seed|its own pair" docs/routine-setup.mdreturns nothing.