Skip to content

Add experimental local Workers OIDC identity bindings - #16455

Draft
irvinebroque wants to merge 7 commits into
mainfrom
codex/workers-oidc-local-dev
Draft

irvinebroque wants to merge 7 commits into
mainfrom
codex/workers-oidc-local-dev

Conversation

@irvinebroque

Copy link
Copy Markdown
Contributor

Add experimental local Workers OIDC through explicit identity bindings. A configured binding selects an existing approved identity and audience policy; env.IDENTITY.getToken({ audience, fresh }) requests an assertion. Configuration and Worker deployment do not create grants.

Share lazy authenticated sessions across Wrangler, Vite, and opted-in Vitest runs. Keep credentials in the host, check current authorization on every getter, and forward concurrent fresh requests separately. Carry the binding through configuration conversion, upload metadata, Previews, native Miniflare bindings, and generated types. Local Durable Objects use the local development identity profile.

Validation: all affected package type checks pass; 252 config tests, 698 workers-utils tests, 106 development authorization/API tests, 33 deploy-helper tests, and 55 Miniflare tests pass. Native Miniflare tests use the matching workerd build and cover multiple bindings, fresh calls, DOs, service/RPC targets, reloads, and failures. Vitest opt-in tests also pass.

This remains a draft behind workers_oidc. Native execution requires the matching workerd implementation and the authorization services; the pinned npm runtime predates the native callback. This PR also supplies prerelease SDK packages for the matching cf integration branch.

@changeset-bot

changeset-bot Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 40ff3ab

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

This PR includes changesets to release 15 packages
Name Type
miniflare Minor
wrangler Minor
@cloudflare/vite-plugin Minor
@cloudflare/vitest-plugin Minor
@cloudflare/workers-auth Minor
@cloudflare/workers-utils Minor
@cloudflare/remote-bindings Minor
@cloudflare/config Minor
@cloudflare/deploy-helpers Minor
@cloudflare/pages-shared Patch
@cloudflare/runtime-types Patch
@cloudflare/autoconfig Patch
@cloudflare/build-output-utils Patch
@cloudflare/cli-shared-helpers Patch
@cloudflare/containers-shared 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 Oct 23, 2026 •

Copy link
Copy Markdown
@cloudflare/autoconfig

npm i https://pkg.pr.new/@cloudflare/autoconfig@16455

@cloudflare/build-output-utils

npm i https://pkg.pr.new/@cloudflare/build-output-utils@16455

@cloudflare/codemods

npm i https://pkg.pr.new/@cloudflare/codemods@16455

@cloudflare/config

npm i https://pkg.pr.new/@cloudflare/config@16455

@cloudflare/containers-shared

npm i https://pkg.pr.new/@cloudflare/containers-shared@16455

create-cloudflare

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

@cloudflare/deploy-helpers

npm i https://pkg.pr.new/@cloudflare/deploy-helpers@16455

@cloudflare/kv-asset-handler

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

miniflare

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

@cloudflare/pages-functions

npm i https://pkg.pr.new/@cloudflare/pages-functions@16455

@cloudflare/pages-shared

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

@cloudflare/runtime-types

npm i https://pkg.pr.new/@cloudflare/runtime-types@16455

@cloudflare/unenv-preset

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

@cloudflare/vite-plugin

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

@cloudflare/vitest-plugin

npm i https://pkg.pr.new/@cloudflare/vitest-plugin@16455

@cloudflare/workers-auth

npm i https://pkg.pr.new/@cloudflare/workers-auth@16455

@cloudflare/workers-editor-shared

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

@cloudflare/workers-utils

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

wrangler

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

commit: 40ff3ab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant