Skip to content

feat(miniflare): add unsafeRegisterWorker option to restrict worker registration - #10411

Closed
edmundhung wants to merge 2 commits into
mainfrom
edmundhung/restrict-registry-registration
Closed

edmundhung wants to merge 2 commits into
mainfrom
edmundhung/restrict-registry-registration

Conversation

@edmundhung

@edmundhung edmundhung commented Aug 19, 2025 •

Copy link
Copy Markdown
Member

Fixes n/a.

We were registering all workers to the dev registry, including external workers (e.g. for the vectorize binding). This restricts it to user worker only.


  • Tests
    • Tests included
    • Tests not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: internal feature
  • Wrangler V3 Backport
    • Wrangler PR:
    • Not necessary because: miniflare dev registry is v4 only

@changeset-bot

changeset-bot Bot commented Aug 19, 2025 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 049514c

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

This PR includes changesets to release 5 packages
Name Type
miniflare Minor
@cloudflare/pages-shared Patch
@cloudflare/vite-plugin Patch
@cloudflare/vitest-pool-workers Patch
wrangler 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

@pkg-pr-new

pkg-pr-new Bot commented Aug 19, 2025 •

Copy link
Copy Markdown
create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@10411

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@10411

miniflare

npm i https://pkg.pr.new/miniflare@10411

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@10411

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@10411

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@10411

@cloudflare/vitest-pool-workers

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

@cloudflare/workers-editor-shared

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

wrangler

npm i https://pkg.pr.new/wrangler@10411

commit: 049514c

Base automatically changed from edmundhung/DEVX-2125 to main August 20, 2025 15:31
@edmundhung
edmundhung force-pushed the edmundhung/restrict-registry-registration branch 3 times, most recently from e4578b2 to 774e6ac Compare August 21, 2025 12:56
@edmundhung edmundhung changed the title feat(miniflare): add unsafeDevRegistry option to restrict worker registration feat(miniflare): add unsafeRegisterWorker option to restrict worker registration Aug 26, 2025
@edmundhung
edmundhung force-pushed the edmundhung/restrict-registry-registration branch from 774e6ac to 180f01a Compare September 1, 2025 10:55
@edmundhung edmundhung closed this Mar 26, 2026
@github-project-automation github-project-automation Bot moved this from Untriaged to Done in workers-sdk Mar 26, 2026
@petebacondarwin
petebacondarwin deleted the edmundhung/restrict-registry-registration branch November 25, 2026 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant