gotchas.md

Created about 12 hours ago

attributes
source_pathreferences/secrets-store/gotchas.md
source_sha256d31bdbb33f57c785d98c4e6524acde4560890dc6af0080d5046b5664775d1c09
source_urlhttps://github.com/cloudflare/skills/blob/47dfc2ce969bf62acf8bc231198ade4bb02712e0/skills/cloudflare/references/secrets-store/gotchas.md
supporting_skill_id40184
upstream_revision47dfc2ce969bf62acf8bc231198ade4bb02712e0

Secrets Store troubleshooting

Start with the failing operation and fetch its documentation before changing credentials or bindings.

Symptom or decision What to check Documentation
Deployment cannot attach a secret Selected account, caller's binding permission, and the secret's consuming-service scope; metadata read permission alone is insufficient Access control
Secret is missing or the wrong value is used Store, secret name, binding name, and selected deployment environment Workers integration, Wrangler environments
Secret works in production but fails locally Local secret provisioning and the management command's local/remote target Workers integration, Wrangler commands
CLI update, retrieval, or deletion fails The operation's required identifier and flags; a secret name is not interchangeable with its ID Wrangler commands
Binding is treated as a string or has incorrect types Asynchronous account-secret access and generated configuration types Runtime access, TypeScript
Quota or value-size validation fails Current account quota and the requested operation's schema Secrets Store REST API
Regional or integration support is unclear Current product availability and supported consumers Product overview

Do not diagnose failures by printing secret values or returning raw errors to clients. Check metadata and sanitized operation context. Validate JSON or other structured values before consuming them, and handle retrieval or parsing failures at the application's error boundary.

Before deleting a secret to fix a binding conflict or quota problem, identify all consumers. Follow secret management and the rotation decisions in patterns.md; removing a shared credential can affect multiple services.

See configuration.md for setup and api.md for API selection.

Children

No children yet.

Like how this is organised?

Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.