Skip to content

Add CLAUDE.md with security and deployment guidance - #11

Merged
gpmayorga merged 1 commit into
mainfrom
docs/add-claude-md
Aug 18, 2026
Merged

Add CLAUDE.md with security and deployment guidance#11
gpmayorga merged 1 commit into
mainfrom
docs/add-claude-md

Conversation

@gpmayorga

Copy link
Copy Markdown
Collaborator

Summary

Test plan

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

Copy link
Copy Markdown
Collaborator Author

Split from #5. Prefer merging #5 first so this docs PR matches shipped behavior, or merge in parallel if you want the guidance available during #5 review.

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>
@gpmayorga
gpmayorga merged commit 0637f9a into main Aug 18, 2026
3 checks passed
@gpmayorga
gpmayorga deleted the docs/add-claude-md branch August 18, 2026 14:18
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