Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a trailling slash / to a domain name in allow_outbound_hosts fails #2545

Closed
mikkelhegn opened this issue Jun 6, 2024 · 1 comment · Fixed by #2548
Closed

Adding a trailling slash / to a domain name in allow_outbound_hosts fails #2545

mikkelhegn opened this issue Jun 6, 2024 · 1 comment · Fixed by #2548

Comments

@mikkelhegn
Copy link
Contributor

  • Spin version (spin --version)
    spin 2.5.1 (cba6773 2024-05-14)

  • Installed plugin versions (spin plugins list --installed)
    check-for-update 0.1.0 [installed]
    cloud 0.8.0 [installed]
    cloud-gpu 0.1.0 [installed]
    js2wasm 0.6.1 [installed]
    kube 0.1.1 [installed]
    pluginify 0.7.0 [installed]
    py2wasm 0.3.2 [installed]
    trigger-command 0.1 [installed]
    trigger-message 0.0.1 [installed]
    trigger-mqtt 0.2.0 [installed]

If I want to make an http call to https://myapi.com, the destination will be allowed using this configuration:

allowed_outbound_hosts = ["https://myapi.com"]

But will be denied with this configuration:

allowed_outbound_hosts = ["https://myapi.com/"]

@lann
Copy link
Collaborator

lann commented Jun 6, 2024

@rylev

rylev added a commit that referenced this issue Jun 7, 2024
Fixes #2545

Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
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 a pull request may close this issue.

2 participants