cloudflare-docs icon indicating copy to clipboard operation
cloudflare-docs copied to clipboard

[KV] Added KV bindings documentation for preview_id

Open thomasgauvin opened this issue 1 year ago • 4 comments

Addresses https://discord.com/channels/595317990191398933/874727019479437372/1269012391937445910

thomasgauvin avatar Aug 05 '24 14:08 thomasgauvin

Deploying cloudflare-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: c7bffeb
Status: ✅  Deploy successful!
Preview URL: https://bcf0f95c.cloudflare-docs-7ou.pages.dev
Branch Preview URL: https://thomasgauvin-update-kv-bindi.cloudflare-docs-7ou.pages.dev

View logs

Resolved merge conflicts

thomasgauvin avatar Aug 05 '24 20:08 thomasgauvin

small suggestion:

How about adding a note about the --preview and --local flags for wrangler kv cli commands?

I found it a bit surprising that touching a kv namespace from worker code withwranger dev writes to the local (dev) version of the namespace, but that wrangler kv cli commands appear to require both --local and --preview to see those changes.

The screenshot below shows wrangler commands after writing 2 different kv values with wrangler dev and just one with wrangler dev --remote

Screenshot 2024-08-06 at 19 40 19

jldec avatar Aug 06 '24 18:08 jldec

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secret in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
11021221 Triggered Generic High Entropy Secret baadb77cce32bf338806c90b8af6f37d5356c9db astro.config.mjs View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

gitguardian[bot] avatar Aug 27 '24 18:08 gitguardian[bot]