Skip to content

chore(loop): switch off the retired claude-loop Access service token #267

Closed

Description

@Ardnived

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

  1. Access policy. In Cloudflare Zero Trust → Access → Applications, open the application covering pr-*.cloud-preview.sydevelopers.com and remove the policy or include rule that names the claude-loop service token. Leave the github-ci token's rule alone: SahajCloud CI's smoke step still sends it (SahajCloud/.github/workflows/ci.yml:132).
  2. The token. Access → Service credentials → Service Tokens: delete claude-loop.
  3. The routine environment. Signed in to claude.ai/code as the loop's Claude account, remove PREVIEW_ACCESS_CLIENT_ID and PREVIEW_ACCESS_CLIENT_SECRET from the loop routines' environment.
  4. The stale doc row. docs/routine-setup.md:290 still says the github-ci pair 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-loop service 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-ci token.
  • docs/routine-setup.md names 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_ID or PREVIEW_ACCESS_CLIENT_SECRET.
  • Open https://pr-<n>.cloud-preview.sydevelopers.com/admin/login for 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.md returns 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).

Activity

  1. added theissue type on Nov 17, 2026
  2. Ardnived commented on Nov 23, 2026

    @Ardnived
    ContributorAuthor

    Done.

    • Access policy and token: the claude routines policy is removed from *.cloud-preview, and the claude-loop service token is deleted. Only sydevs members and github actions remain (checked via the Access API).
    • Routine environment: PREVIEW_ACCESS_CLIENT_ID and PREVIEW_ACCESS_CLIENT_SECRET removed by the owner.
    • Previews: pr-1243 and pr-1225 /admin/login redirect 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 the github-ci token was seen at the same moment.
    • Docs: docs(routine-setup): the github-ci Access pair serves the smoke step alone #307 reworded the CF_ACCESS_* row, so git grep -nE "preview seed|its own pair" docs/routine-setup.md returns nothing.
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

    No labels
    No labels

    Type

    Fields

    Priority

    Medium

    Hold Until

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions