Skip to content

[wrangler] Support null values in wrangler secret bulk#14019

Merged
james-elicx merged 3 commits into
cloudflare:mainfrom
danielrs:drivas/WC-5169-wrangler-secret-bulk-api-with-delete
May 26, 2026
Merged

[wrangler] Support null values in wrangler secret bulk#14019
james-elicx merged 3 commits into
cloudflare:mainfrom
danielrs:drivas/WC-5169-wrangler-secret-bulk-api-with-delete

Conversation

@danielrs

@danielrs danielrs commented May 22, 2026

Copy link
Copy Markdown
Contributor

Follow up of: #13964

Describe your change...

Add support for setting secret values to null in bulk JSON input to delete secrets via the secrets-bulk endpoint's JSON Merge Patch (RFC 7396) semantics. The parseBulkInputToObject function now accepts an includeNull flag with overloaded signatures to preserve type safety for existing callers. Output now distinguishes between created and deleted secrets.


  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: changed internal implementation

A picture of a cute animal (not mandatory, but encouraged)

@danielrs danielrs requested a review from workers-devprod as a code owner May 22, 2026 22:35
@changeset-bot

changeset-bot Bot commented May 22, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: fd0683e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
wrangler Minor
@cloudflare/vite-plugin Patch
@cloudflare/vitest-pool-workers Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@workers-devprod workers-devprod requested review from a team and james-elicx and removed request for a team May 22, 2026 22:35
@workers-devprod

workers-devprod commented May 22, 2026

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • ✅ @cloudflare/wrangler
Show detailed file reviewers

…eletion

Add support for setting secret values to null in bulk JSON input to
delete secrets via the secrets-bulk endpoint's JSON Merge Patch (RFC
7396) semantics. The parseBulkInputToObject function now accepts an
includeNull flag with overloaded signatures to preserve type safety
for existing callers. Output now distinguishes between created and
deleted secrets.
@danielrs danielrs force-pushed the drivas/WC-5169-wrangler-secret-bulk-api-with-delete branch from bfb5b2e to 8c4d69e Compare May 22, 2026 22:42
@pkg-pr-new

pkg-pr-new Bot commented May 22, 2026

Copy link
Copy Markdown
create-cloudflare

npm i https://pkg.pr.new/cloudflare/workers-sdk/create-cloudflare@14019

@cloudflare/deploy-helpers

npm i https://pkg.pr.new/cloudflare/workers-sdk/@cloudflare/deploy-helpers@14019

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/cloudflare/workers-sdk/@cloudflare/kv-asset-handler@14019

miniflare

npm i https://pkg.pr.new/cloudflare/workers-sdk/miniflare@14019

@cloudflare/pages-shared

npm i https://pkg.pr.new/cloudflare/workers-sdk/@cloudflare/pages-shared@14019

@cloudflare/unenv-preset

npm i https://pkg.pr.new/cloudflare/workers-sdk/@cloudflare/unenv-preset@14019

@cloudflare/vite-plugin

npm i https://pkg.pr.new/cloudflare/workers-sdk/@cloudflare/vite-plugin@14019

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/cloudflare/workers-sdk/@cloudflare/vitest-pool-workers@14019

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/cloudflare/workers-sdk/@cloudflare/workers-editor-shared@14019

@cloudflare/workers-utils

npm i https://pkg.pr.new/cloudflare/workers-sdk/@cloudflare/workers-utils@14019

wrangler

npm i https://pkg.pr.new/cloudflare/workers-sdk/wrangler@14019

commit: fd0683e

Comment thread packages/wrangler/src/secret/index.ts Outdated
Comment thread packages/wrangler/src/secret/index.ts Outdated
danielrs and others added 2 commits May 26, 2026 10:19
Co-authored-by: James Anderson <james@eli.cx>
Show created and deleted counts conditionally instead of always
printing both lines. Use 💥 emoji for delete operations. Show a
no-op message when no secrets were created or deleted. Add test
for empty input case.

@workers-devprod workers-devprod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codeowners reviews satisfied

@github-project-automation github-project-automation Bot moved this from Untriaged to Approved in workers-sdk May 26, 2026
@james-elicx james-elicx enabled auto-merge (squash) May 26, 2026 15:53
@james-elicx james-elicx merged commit ee56ec0 into cloudflare:main May 26, 2026
80 of 82 checks passed
@github-project-automation github-project-automation Bot moved this from Approved to Done in workers-sdk May 26, 2026
@danielrs danielrs deleted the drivas/WC-5169-wrangler-secret-bulk-api-with-delete branch May 26, 2026 17:25
penalosa pushed a commit that referenced this pull request May 28, 2026
Co-authored-by: James Anderson <james@eli.cx>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants