Skip to content

feat(cf-preview): preview_binding_allow can share one Production Secrets Store secret - #88

Merged
ClaudiaFang merged 1 commit into
mainfrom
claude/cf-preview-share-secrets-store
Oct 30, 2026
Merged

ClaudiaFang merged 1 commit into
mainfrom
claude/cf-preview-share-secrets-store

Conversation

@ClaudiaFang

Copy link
Copy Markdown
Member

Native Preview audit (auditPreviewConfig / auditProdConfig) now accepts the exact entry secrets_store_secrets:BINDING=<store_id>/<secret_name> in preview_binding_allow.

  • Waives only the Production-collision + preview_deny_resources check for that one binding and identity, and also satisfies the high-risk allow requirement for that binding.
  • Bare secrets_store_secrets:BINDING still only satisfies the high-risk check; it does not waive the collision. Mismatching store/secret/binding still fails. D1 never shareable.
  • Shared Dev (dev_binding_allow, DEV_SHAREABLE_KINDS) unchanged; new PREVIEW_SHAREABLE_KINDS is local to lib.mjs.
  • Tests in scripts/cf-preview/lib.test.mjs; docs in docs/cf-worker-v2.md.

Caller string for diet-manager: secrets_store_secrets:FATSECRET_CLIENT_ID=a2a4a60a04b142d3a0c7d482542e67fc/FATSECRET_CLIENT_ID (and the same for FATSECRET_CLIENT_SECRET).

🤖 Generated with Claude Code

…ets Store secret

An exact secrets_store_secrets:BINDING=<store_id>/<secret_name> entry waives the
Production-collision/denylist check and the high-risk allow requirement for that
one binding+identity. A bare kind:BINDING entry never waives the collision; D1 and
Shared Dev (dev_binding_allow) are unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@ClaudiaFang
ClaudiaFang merged commit def3679 into main Oct 30, 2026
1 check passed
@ClaudiaFang
ClaudiaFang deleted the claude/cf-preview-share-secrets-store branch October 30, 2026 04:50
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