Repository navigation
[wrangler] Support temporary event accounts in R2 and Containers commands - #16036
Merged
Merged
Conversation
🦋 Changeset detectedLatest commit: 9e79880 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 |
workers-devprod
requested review from
a team and
jamesopstad
and removed request for
a team
October 2, 2026 16:19
Contributor
|
Codeowners approval required for this PR:
Show detailed file reviewers |
Contributor
|
LGTM! |
@cloudflare/autoconfig
@cloudflare/build-output-utils
@cloudflare/codemods
@cloudflare/config
@cloudflare/containers-shared
create-cloudflare
@cloudflare/deploy-helpers
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-functions
@cloudflare/pages-shared
@cloudflare/runtime-types
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-plugin
@cloudflare/workers-auth
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
2 of 5 tasks
edevil
force-pushed
the
acruz/temporary-r2-containers
branch
from
October 5, 2026 18:46
3dcec64 to
7484832
Compare
edevil
force-pushed
the
acruz/temporary-r2-containers
branch
from
October 5, 2026 18:52
7484832 to
4816724
Compare
edevil
force-pushed
the
acruz/temporary-r2-containers
branch
2 times, most recently
from
October 5, 2026 19:19
4786356 to
726c2d0
Compare
dario-piotrowicz
approved these changes
Oct 6, 2026
nikitassharma
approved these changes
Oct 6, 2026
workers-devprod
approved these changes
Oct 6, 2026
workers-devprod
left a comment
Contributor
There was a problem hiding this comment.
Codeowners reviews satisfied
…ands Opt the R2 and Containers commands covered by the event deploy token into --temporary, and accept --event-code on every --temporary command so the first command a participant runs can create the event account.
edevil
force-pushed
the
acruz/temporary-r2-containers
branch
from
October 6, 2026 16:10
726c2d0 to
9e79880
Compare
Merged
brandhaug
added a commit
to brandhaug/b2b-saas-starter
that referenced
this pull request
Oct 11, 2026
## pnpm-workspace.yaml (default) ## Dependency Updates | Package | From | To | Type | | --- | --- | --- | --- | | `wrangler` | 4.148.0 | 4.149.0 | minor | ## Release Notes <details> <summary><b>wrangler</b> (4.148.0 → 4.149.0)</summary> ### Minor Changes - [#16036](cloudflare/workers-sdk#16036) [`9a58244`](cloudflare/workers-sdk@9a58244) Thanks [@<!---->edevil](https://github.com/edevil)! - Support temporary event accounts in R2 and Containers commands `wrangler r2` and `wrangler containers` commands now accept the hidden `--temporary` flag, so accounts created for an event can manage buckets, objects and containers directly. Every command that supports `--temporary` now also accepts a hidden `--event-code` flag, so the first command a participant runs can create the event account: `wrangler r2 bucket create my-bucket --temporary --event-code <code>` R2 and Containers are only available on event accounts. R2 custom domains, Sippy, external container registries and `wrangler cloudchamber` commands still require a logged-in account. ### Patch Changes - [#16139](cloudflare/workers-sdk#16139) [`2d1d563`](cloudflare/workers-sdk@2d1d563) Thanks [@<!---->cpojer](https://github.com/cpojer)! - Update esbuild to 0.28.2 Align esbuild dependency with tooling using the latest 0.28 patch so package managers can share one installation instead of downloading a second native binary. - [#15632](cloudflare/workers-sdk#15632) [`85b14e7`](cloudflare/workers-sdk@85b14e7) Thanks [@<!---->petebacondarwin](https://github.com/petebacondarwin)! - Honor Retry-After directives during static asset uploads Static asset uploads now pause retries and pending uploads until the latest outstanding deadline requested by the API. A per-request limiter also keeps gateway retries at the reduced concurrency after the pause ends, preventing a deployment from immediately overloading a constrained asset service again. - [#16098](cloudflare/workers-sdk#16098) [`fe607f9`](http …[full notes](https://github.com/cloudflare/workers-sdk/releases/tag/wrangler%404.149.0) </details> --- *This PR was auto-generated by [catalog-update-action](https://github.com/brandhaug/catalog-update-action).* Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #15776. Event temporary accounts are now entitled to R2 and Containers, but
wrangler r2 …andwrangler containers …rejected--temporarywithUnknown argument: temporary, because no command in either namespace setbehaviour.supportTemporary. Separately,--event-codeonly existed ondeploy. A participant whose first command was an R2 or Containers command got an ordinary temporary account, and recovering from that meantwrangler logout.This PR:
--event-codeoption and its coercion fromdeployintosrc/core/temporary-commands.ts, and the "--event-coderequires--temporary" check into the shared command handler. The option is now registered for every command that setssupportTemporary. Argv redaction, telemetry sanitization and the workers-auth cache-hit rejection were already command-agnostic. The validation telemetry messages are renamed fromdeploy event code …totemporary event code ….r2 bucket domain(needs a zone),r2 bucket sippy(needs another provider's credentials),containers registries configure/list/delete(external registries and Secrets Store), and the legacycloudchambercommands.Temporary-account notices go to stderr since #16068, so
r2 object get --remote --pipe --temporaryandcontainers ssh --stdio --temporarykeep stdout limited to the transferred data. A test covers the R2 case.--temporaryand--event-codeare intentionally hidden while event support rolls out.