Skip to content

[web] Add option to configure allowed hosts (stable) - #5672

Merged
VaguelySerious merged 1 commit into
stablefrom
peter/web-allowed-hosts-stable
Nov 23, 2026
Merged

VaguelySerious merged 1 commit into
stablefrom
peter/web-allowed-hosts-stable

Conversation

@VaguelySerious

Copy link
Copy Markdown
Member

Backport of #5671 to stable, adapted to the Express-based server.

Adds --webAllowedHosts / WORKFLOW_WEB_ALLOWED_HOSTS to configure which host names the web UI server accepts. By default it accepts localhost, *.localhost, and IP addresses.

🤖 Generated with Claude Code

Backport of #5671 to stable, adapted to the Express-based server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@VaguelySerious
VaguelySerious requested review from a team and ijjk as code owners November 23, 2026 18:29
@vercel

vercel Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
example-nextjs-workflow-turbopack Ready Ready Preview, v0 Nov 23, 2026 6:34pm UTC
example-nextjs-workflow-webpack Ready Ready Preview, v0 Nov 23, 2026 6:34pm UTC
example-workflow Ready Ready Preview, v0 Nov 23, 2026 6:34pm UTC
workbench-astro-workflow Ready Ready Preview, v0 Nov 23, 2026 6:34pm UTC
workbench-express-workflow Ready Ready Preview, v0 Nov 23, 2026 6:34pm UTC
workbench-fastify-workflow Ready Ready Preview, v0 Nov 23, 2026 6:34pm UTC
workbench-hono-workflow Ready Ready Preview, v0 Nov 23, 2026 6:34pm UTC
workbench-nestjs-workflow Ready Ready Preview, v0 Nov 23, 2026 6:34pm UTC
workbench-nitro-workflow Ready Ready Preview, v0 Nov 23, 2026 6:34pm UTC
workbench-nuxt-workflow Ready Ready Preview, v0 Nov 23, 2026 6:34pm UTC
workbench-python-workflow Error Error v0 Nov 23, 2026 6:34pm UTC
workbench-sveltekit-workflow Ready Ready Preview, v0 Nov 23, 2026 6:34pm UTC
workbench-tanstack-start-workflow Ready Ready Preview, v0 Nov 23, 2026 6:34pm UTC
workbench-vite-workflow Ready Ready Preview, v0 Nov 23, 2026 6:34pm UTC
workflow-docs Ready Ready Preview, v0 Nov 23, 2026 6:34pm UTC
workflow-swc-playground Ready Ready Preview, v0 Nov 23, 2026 6:34pm UTC
workflow-tarballs Ready Ready Preview, v0 Nov 23, 2026 6:34pm UTC
workflow-web Ready Ready Preview, v0 Nov 23, 2026 6:34pm UTC

@changeset-bot

changeset-bot Bot commented Nov 23, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f9e2750

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

This PR includes changesets to release 16 packages
Name Type
@workflow/web Patch
@workflow/cli Patch
@workflow/nitro Patch
workflow Patch
@workflow/world-testing Patch
@workflow/nuxt Patch
@workflow/core Patch
@workflow/web-shared Patch
@workflow/builders Patch
@workflow/next Patch
@workflow/vitest Patch
@workflow/astro Patch
@workflow/nest Patch
@workflow/rollup Patch
@workflow/sveltekit Patch
@workflow/vite 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

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

❌ Some tests failed

Summary

Passed Failed Skipped Total
✅ ▲ Vercel Production 1110 0 78 1188
✅ 💻 Local Development 1210 0 86 1296
✅ 📦 Local Production 1210 0 86 1296
✅ 🐘 Local Postgres 1210 0 86 1296
✅ 🪟 Windows 108 0 0 108
❌ 🌍 Community Worlds 84 106 9 199
✅ 📋 Other 612 0 36 648
Total 5544 106 381 6031

❌ Failed Tests

🌍 Community Worlds (106 failed)

redis (20 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01M84TYT64PAPT98ZZZFZCG1E8
  • parallelStepsThenWebhookWorkflow - no hook_conflict from same-tick replay race | wrun_01M84TZ74S77EWGA2HR8Z5A6M2
  • sleepingWorkflow | wrun_01M84V0DX34Q7Y1GFVPB0YCRS5
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • error handling serialization failures step-argument serialization failure is catchable in workflow code
  • error handling serialization failures uncaught step-argument serialization failure fails the run as USER_ERROR without redelivery retries
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01M84V82FG18TBS4M0H7B6Z279
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01M84V8DG9KM58QZANXDJSKXQC
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01M84V8P50EGMKZN3E2ERWPPGT
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01M84V935H4C7S02HK5A6JY3T6
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01M84V9XKTH2C6FB85RD3J925S
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01M84VA1VNYTXXEPP6BYBGEC3C
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01M84VA6YSGE7QWB7J4P4258DC
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01M84VABM6C7MQNCMCC4GWYWCP
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01M84VAMRDQFXQ0DPFRG2HHG11
  • pages router sleepingWorkflow via pages router
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01M84VG0RE1XBSZ5BW6DBZP1DN

turso (86 failed):

  • addTenWorkflow | wrun_01M84TXN54SPQYCD4EHW8TKBC0
  • addTenWorkflow | wrun_01M84TXN54SPQYCD4EHW8TKBC0
  • deploymentId: 'latest' is a no-op in non-Vercel worlds
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01M84TZHB956YH6KZB8FS6RZRF
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01M84TXWKHPHY5V1234WMC3BGA
  • promiseRaceWorkflow | wrun_01M84TY0VRYSYVNARJR61M34VQ
  • promiseAnyWorkflow | wrun_01M84TY3Z438XACM49TMM1TQA3
  • importedStepOnlyWorkflow | wrun_01M84TZV4Z3NJDY70BBVGCF977
  • readableStreamWorkflow | wrun_01M84TY720DD2YF97CPGBEF3ZT
  • hookWorkflow | wrun_01M84TYKMF19V9CA3ZE15R2R6C
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01M84TYT64PAPT98ZZZFZCG1E8
  • webhookWorkflow | wrun_01M84TYZTFE4NB2151XVVG20H9
  • parallelStepsThenWebhookWorkflow - no hook_conflict from same-tick replay race | wrun_01M84TZ74S77EWGA2HR8Z5A6M2
  • sleepingWorkflow | wrun_01M84V0DX34Q7Y1GFVPB0YCRS5
  • parallelSleepWorkflow | wrun_01M84V0X3YBQWK3DYZSPGRS4NP
  • sleepWinsRaceWorkflow | wrun_01M84V11C2886MN2R2C289YMJ7
  • stepWinsRaceWorkflow | wrun_01M84V14RYE5FQ8X55GWBW8KQ7
  • nullByteWorkflow | wrun_01M84V17WJ9YC0N9TEBZGKG6DM
  • workflowAndStepMetadataWorkflow | wrun_01M84V19V7DBS3RSSF4WD1DDCA
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow positive startIndex (skips first chunk)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01M84V3GTK7EJQ70W8SKHNG2EH
  • writableForwardedFromWorkflowWorkflow | wrun_01M84V3X55T065N9D0MRJ9MN59
  • writableForwardedFromStepWorkflow | wrun_01M84V404MHNX2DV2FZ97VHY8B
  • fetchWorkflow | wrun_01M84V42J1NE411W9AF7JKBW50
  • promiseRaceStressTestWorkflow | wrun_01M84V45QG63J0HJCPH044V9JD
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling serialization failures step-argument serialization failure is catchable in workflow code
  • error handling serialization failures uncaught step-argument serialization failure fails the run as USER_ERROR without redelivery retries
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01M84V7QN9829W74Q9REDQMJ2Q
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01M84V82FG18TBS4M0H7B6Z279
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01M84V8DG9KM58QZANXDJSKXQC
  • 'hookGetConflictWithPriorStepWorkflow' - hook.getConflict() does not block step execution | wrun_01M84V8FNZEZ8XTH6XCSM7FH99
  • 'hookGetConflictWithParallelStepWorkfl…' - hook.getConflict() does not block step execution | wrun_01M84V8JXZN4HJ0HT1S2XZR3F1
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01M84V8P50EGMKZN3E2ERWPPGT
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01M84V935H4C7S02HK5A6JY3T6
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01M84V9XKTH2C6FB85RD3J925S
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01M84VA1VNYTXXEPP6BYBGEC3C
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01M84VA6YSGE7QWB7J4P4258DC
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01M84VABM6C7MQNCMCC4GWYWCP
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01M84VAMRDQFXQ0DPFRG2HHG11
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01M84VAVM9BDEZKV30QA97CHFN
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01M84VBBHYYJZR1D8SCV08QEXA
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01M84VBMS43MKCAMXE39JG4PMY
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01M84VBSQ8H6QY763HK28SCSHQ
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01M84VBVRGXSJEC9WN6SYWQRA6
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01M84VCAM8V0ZSNE6DK9V65BA7
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01M84VCFRF23ABJNGMQBSVAJV0
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01M84VCP8WDQH247QD42DT6HQW
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01M84VCXM12VQ3ZXMY5R3DSBE0
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01M84VD3VZMCE4B2P5TZWHHD4H
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01M84VDA0PTKMHG3RAHNRDHVQY
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01M84VDHAE0AWWQ499J77H6E30
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01M84VDWRDR44KGJYC57WCK5CZ
  • importedSerdeKeyWorkflow - classes keyed by imported WORKFLOW_SERIALIZE symbols round-trip through steps | wrun_01M84VE44AAF1VAR6AQ2DJSEHA
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01M84VE7AFJ6D3GJ7R8Z6HMWAD
  • cancelRun - cancelling a running workflow | wrun_01M84VEE4EYFDJZ1B0H44V81CE
  • cancelRun via CLI - cancelling a running workflow | wrun_01M84VEJHPNHK6GYZGGSMGZFR0
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01M84VESF142HN6SWSFVY0WZ31
  • hookWithSleepFinalStepWorkflow - step only on final payload | wrun_01M84VF44G6Y4PJ7XE5GBGCBQS
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01M84VFBRVQGJ3VQ15X3ZHFS21
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01M84VFPQ3HZ11KHVYA459FXH7
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01M84VFWRSHY79SFEKDGNW4CER
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01M84VFYPXZ01ZC7B627P93FGN
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01M84VG0RE1XBSZ5BW6DBZP1DN

Details by Category

✅ ▲ Vercel Production
App Passed Failed Skipped
✅ astro 100 0 8
✅ example 100 0 8
✅ express 100 0 8
✅ fastify 100 0 8
✅ hono 100 0 8
✅ nextjs-turbopack 105 0 3
✅ nextjs-webpack 105 0 3
✅ nitro 100 0 8
✅ nuxt 100 0 8
✅ sveltekit 100 0 8
✅ vite 100 0 8
✅ 💻 Local Development
App Passed Failed Skipped
✅ astro-stable 102 0 6
✅ express-stable 102 0 6
✅ fastify-stable 102 0 6
✅ hono-stable 102 0 6
✅ nextjs-turbopack-canary 89 0 19
✅ nextjs-turbopack-stable 108 0 0
✅ nextjs-webpack-canary 89 0 19
✅ nextjs-webpack-stable 108 0 0
✅ nitro-stable 102 0 6
✅ nuxt-stable 102 0 6
✅ sveltekit-stable 102 0 6
✅ vite-stable 102 0 6
✅ 📦 Local Production
App Passed Failed Skipped
✅ astro-stable 102 0 6
✅ express-stable 102 0 6
✅ fastify-stable 102 0 6
✅ hono-stable 102 0 6
✅ nextjs-turbopack-canary 89 0 19
✅ nextjs-turbopack-stable 108 0 0
✅ nextjs-webpack-canary 89 0 19
✅ nextjs-webpack-stable 108 0 0
✅ nitro-stable 102 0 6
✅ nuxt-stable 102 0 6
✅ sveltekit-stable 102 0 6
✅ vite-stable 102 0 6
✅ 🐘 Local Postgres
App Passed Failed Skipped
✅ astro-stable 102 0 6
✅ express-stable 102 0 6
✅ fastify-stable 102 0 6
✅ hono-stable 102 0 6
✅ nextjs-turbopack-canary 89 0 19
✅ nextjs-turbopack-stable 108 0 0
✅ nextjs-webpack-canary 89 0 19
✅ nextjs-webpack-stable 108 0 0
✅ nitro-stable 102 0 6
✅ nuxt-stable 102 0 6
✅ sveltekit-stable 102 0 6
✅ vite-stable 102 0 6
✅ 🪟 Windows
App Passed Failed Skipped
✅ nextjs-turbopack 108 0 0
❌ 🌍 Community Worlds
App Passed Failed Skipped
✅ mongodb-dev 4 0 3
✅ redis-dev 4 0 3
❌ redis 69 20 0
✅ turso-dev 4 0 3
❌ turso 3 86 0
✅ 📋 Other
App Passed Failed Skipped
✅ e2e-local-dev-nest-stable 102 0 6
✅ e2e-local-dev-tanstack-start-stable 102 0 6
✅ e2e-local-postgres-nest-stable 102 0 6
✅ e2e-local-postgres-tanstack-start-stable 102 0 6
✅ e2e-local-prod-nest-stable 102 0 6
✅ e2e-local-prod-tanstack-start-stable 102 0 6

📋 View full workflow run

@VaguelySerious
VaguelySerious merged commit 0acc0dd into stable Nov 23, 2026
95 of 99 checks passed
@VaguelySerious
VaguelySerious deleted the peter/web-allowed-hosts-stable branch November 23, 2026 18:50
@github-actions github-actions Bot mentioned this pull request Nov 23, 2026

This branch was successfully deployed

1 active deployment
Preview – workflow-docs — f9e27507 Deployed Nov 23, 2026 by vercel[bot]
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