Skip to content

fix(deploy): upload more Cloudflare bindings when keeping live secrets - #1032

Merged
cpojer merged 1 commit into
mainfrom
fix/cf-pinned-secret-bindings
Dec 4, 2026
Merged

cpojer merged 1 commit into
mainfrom
fix/cf-pinned-secret-bindings

Conversation

@hyfdev

@hyfdev hyfdev commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

When a direct Cloudflare deploy keeps the live Worker's secrets, Void builds the version upload from its own binding list, and that list has no case for Flagship and 16 other binding types.

So an app that sets cloudflare.flagship in void.config.ts and already has a production secret fails every void deploy --platform cloudflare before the upload:

Cloudflare binding FLAGS cannot be uploaded with pinned secrets.

This adds the nine types whose upload fields map directly from the build output: flagship, ai-search, ai-search-namespace, artifacts, k2, media, mtls-certificate, secrets-store-secret and vpc-service.

The other eight keep the explicit error: six are missing from Cloudflare's public version schema, pipeline differs between that schema and the pinned cf, and vpc-network takes one of two ID fields.

The tests check each uploaded binding next to the inherited secret, for staged and atomic uploads.

Found while working on #987.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Cloudflare builds and deploys previews for this pull request. Learn more about Cloudflare previews.

Worker Status Deployment Commit
void-cloud Deployed Preview d572efa

Updated: Dec 4, 2026, 08:05 UTC | Dashboard

@cpojer cpojer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok.

@cpojer
cpojer marked this pull request as ready for review December 4, 2026 08:14
@cpojer
cpojer merged commit 88e9a56 into main Dec 4, 2026
21 checks passed
@cpojer
cpojer deleted the fix/cf-pinned-secret-bindings branch December 4, 2026 08:14
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.

2 participants