Skip to content

fix(templates): declare allowedHosts for http-client outbound demo#677

Merged
ricochet merged 1 commit into
wasmCloud:mainfrom
ericgregory:docs/allowedhosts-examples
Jul 15, 2026
Merged

fix(templates): declare allowedHosts for http-client outbound demo#677
ricochet merged 1 commit into
wasmCloud:mainfrom
ericgregory:docs/allowedhosts-examples

Conversation

@ericgregory

@ericgregory ericgregory commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

On wash 2.5.x, the templates/http-client demo (httpbin.org) fails with HttpRequestDenied out of the box. Updates to declare the target host and add a README note.

On wash 2.5.x, a project with no `workload:` block resolves to an
empty ResolvedWorkload and the runtime is fail-closed on empty
`allowedHosts`, so the http-client template's demo flow fails with
HttpRequestDenied out of the box. Declare `httpbin.org` (the default
target) in `workload.allowedHosts` and add a README note pointing
users at the list so they can add their own overrides.

Signed-off-by: Eric Gregory <eric@cosmonic.com>
@ericgregory
ericgregory force-pushed the docs/allowedhosts-examples branch from 7e16aca to 422181f Compare July 14, 2026 20:37
@ericgregory ericgregory changed the title docs(templates,examples): add allowedHosts for outbound HTTP demos fix(templates): declare allowedHosts for http-client outbound demo Jul 14, 2026
@ericgregory
ericgregory marked this pull request as ready for review July 14, 2026 21:17
@ericgregory
ericgregory requested review from a team as code owners July 14, 2026 21:17
@ricochet
ricochet merged commit 0217bea into wasmCloud:main Jul 15, 2026
4 checks passed
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