Skip to content

fix: preserve Worker secrets on deploy - #126

Merged
penalosa merged 3 commits into
mainfrom
codex/preserve-worker-secrets
Sep 30, 2026
Merged

penalosa merged 3 commits into
mainfrom
codex/preserve-worker-secrets

Conversation

@penalosa

@penalosa penalosa commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Bump @cloudflare/deploy-helpers to 0.19.0, which enables secret inheritance on Worker deploy and version upload.
  • Refresh the direct workers-sdk packages used by cf as a set, including autoconfig, codemods, runtime types, workers-auth, workers-utils, config, build-output-utils, containers-shared, and Miniflare.
  • Align the Wrangler compatibility package and project fixtures with current Wrangler, Vite plugin beta, Miniflare, and Workers types releases.
  • Carry the existing container image cleanup patches forward to the new package versions and update the existing keep_vars test expectation.

Verification

  • pnpm test in packages/cli (122 files, 1,384 tests)
  • pnpm test in packages/wrangler-tests (622 passed, 3,329 skipped, 1,326 todo)
  • pnpm --filter cf check:type
  • pnpm check:lint
  • pnpm check:format
  • pnpm build in packages/cli
  • Vite container fixture typecheck and Vite plugin fixture build
  • pnpm install --frozen-lockfile

The secret retention fix is in the released deploy-helpers package; live API behavior is outside these local tests.
pnpm peers check reports only the existing oxlint/oxlint-tsgolint version mismatch; the workers-sdk peer requirements are satisfied.

Fixes #70

@pkg-pr-new

pkg-pr-new Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
npm i https://pkg.pr.new/cf@126

commit: 9941430

@github-actions

github-actions Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

cf --help startup

mean stddev min max
PR 228.3 ms 11.7 ms 212.3 ms 270.8 ms
base 229.5 ms 6.1 ms 219.4 ms 236.9 ms

Δ (PR vs base): ↓ -1.1 ms (-0.5%)

Measured with hyperfine on ubuntu-latest (3 warmup runs, 20 timed runs). CI numbers carry ±a few ms of runner jitter; treat small deltas as noise.

@ask-bonk

ask-bonk Bot commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

Review: 1 findings.

🤖 I've done a thorough review of your PR.

Updates deploy dependencies to preserve Worker secrets.

  • Warning: 1 inline suggestion posted.

github run

@jamesopstad jamesopstad 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.

Can we update all the workers-sdk derived dependencies to the latest published versions?

@penalosa
penalosa enabled auto-merge September 30, 2026 15:28
@ask-bonk

ask-bonk Bot commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

No new concerns since the last review

github run

@ask-bonk

ask-bonk Bot commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

LGTM

github run

@penalosa
penalosa added this pull request to the merge queue Sep 30, 2026
Merged via the queue into main with commit 146c3c1 Sep 30, 2026
10 checks passed
@penalosa
penalosa deleted the codex/preserve-worker-secrets branch September 30, 2026 16:13
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.

cf deploy drops existing Worker secrets

3 participants