Add CLAUDE.md with security and deployment guidance - #11
Merged
Conversation
Give agents working in this library the trust model and intentional deployment constraints without bundling that docs change into the prod-promotion gate PR.
gpmayorga
added a commit
that referenced
this pull request
Aug 18, 2026
Keep the prod-promotion gate focused on workflows, CODEOWNERS, and README; docs land separately in #11.
Collaborator
Author
gpmayorga
added a commit
that referenced
this pull request
Aug 18, 2026
…list (#5) * Gate production promotion behind manual Slack notification On a `released` event the release pipeline no longer runs `wrangler versions deploy`; it posts a Slack message asking a Cloudflare admin to promote the already-staged version by hand, with the release link, dashboard link, and exact CLI commands. Production promotion cannot be gated by GitHub environment protection (unavailable on private non-Enterprise repos) and the Cloudflare token cannot be scoped to forbid version deploys, so removing the automated path is the available control. Documented as a process control, not a hard one: app-rollback.yml's prod path still carries the same deploy capability by design (emergency traffic shift). Also adds a security-focused CLAUDE.md and a CODEOWNERS assigning the deployment/secret-sensitive paths to a designated reviewer. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017jj24BNHVr8gQX2mhgHWLT * Gate promotion and rollback behind a GitHub-identity allowlist Adopts centrifuge/backend's activate-production model. On `released` the pipeline still only notifies, but the Slack message now carries a `gh workflow run promote-production.yml -f tag=...` command instead of raw wrangler instructions: promotion happens through the new app-promote-production.yml reusable workflow, dispatched by an actor in the caller repo's AUTHORIZED_DEPLOYERS variable (empty fails closed), from main only, with the tag verified to be on main, and both failed attempts and successful promotions announced to Slack. app-rollback.yml gains the same allowlist gate — previously any repo write user could shift production traffic by dispatching a rollback. Its authorized-deployers input is optional only for parse-compat with callers already on main; empty refuses to roll back at runtime, so rollback fails closed until the app callers pass the variable. This ties promotion to a GitHub identity with a native audit trail and removes the need for humans to hold Cloudflare prod tokens for routine releases. Still a process control: token holders can promote out-of-band and repo admins can edit the allowlist — documented in the workflow headers, README, and CLAUDE.md. * Expand production pipeline CODEOWNERS * add gregory-kf as codeowner * Move CLAUDE.md out to a dedicated docs PR. Keep the prod-promotion gate focused on workflows, CODEOWNERS, and README; docs land separately in #11. --------- Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CLAUDE.mddescribing this library's trust model, supply-chain constraints, and intentional deployment behavior (including the allowlist-gated promote/rollback model).Test plan
CLAUDE.mdfor accuracy against current/intendedmain+ Gate production promotion and rollback behind a GitHub-identity allowlist #5 behaviorCLAUDE.mdafter the follow-up commit