Repository navigation
wrangler: fix: support the deletion of secrets with complex names - #10668
petebacondarwin merged 1 commit into
Conversation
🦋 Changeset detectedLatest commit: 22f2347 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
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 |
create-cloudflare
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-editor-shared
wrangler
commit: |
e59d663 to
243f9ab
Compare
|
should we do this for the other 3 secret endpoints as well? |
|
Wrangler does not do |
243f9ab to
29b912e
Compare
dario-piotrowicz
left a comment
There was a problem hiding this comment.
lgtm 🙂 (with a couple of small suggestions)
1ddccc9 to
ca2e23d
Compare
URL encode the secret names before being sent to the API, should allow users to delete secrets with complex names. Change is still compatible with older Wrangler versions thanks to the optional query param flag `url_encoded`.
ca2e23d to
22f2347
Compare
|
Interestingly the |
|
Since this is a patch (bug-fix) then it should indeed be backported to V3. |
|
The reason why the CI job to autocreate that backport failed is because this PR is from a fork. |
URL encode the secret names before being sent to the API, should allow users to delete secrets with complex names. Change is still compatible with older Wrangler versions thanks to the optional query param flag
url_encoded.Tracking internally: https://jira.cfdata.org/browse/WC-3991
Describe your change...
URL encode all secret names in the
DELETE .../secrets/:secretcall, should allow the deletion of secrets with complex names.Docs have new query param

url_encoded:https://developers.cloudflare.com/api/resources/workers/subresources/scripts/subresources/secrets/methods/delete/