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

Add host authorization config for sinatra 4.1 #82

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

aburgel
Copy link
Contributor

@aburgel aburgel commented Nov 25, 2024

Sinatra 4.1.0 adds a new default config for permitted hosts (sinatra/sinatra#2053). In the development environment, the permitted hosts are IP addresses, .localhost, and .test. This is causing failures in webvalve because webvalve passes through the original request, including the host of the faked service.

FWIW, I think this didn't get picked up by CI because #81 updated Gemfile.lock in the root directory, but it looks like CI runs against the Gemfiles in gemfiles/* which didn't get updated (so are still running against sinatra 4.0).

@samandmoore
Copy link
Member

I was actually just debugging this locally on friday.

I need to find a way to get dependabot to pick up the gemfiles/*

FWIW, I think this didn't get picked up by CI because #81 updated Gemfile.lock in the root directory, but it looks like CI runs against the Gemfiles in gemfiles/* which didn't get updated (so are still running against sinatra 4.0).

@samandmoore
Copy link
Member

also, fun story, but i believe rails <7.1 is incompatible with sinatra >=4.1

@samandmoore
Copy link
Member

okay, i'm going to land this one and then fix the builds which should technically be broken for this version of sinatra

Copy link
Member

@samandmoore samandmoore left a comment

Choose a reason for hiding this comment

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

domainlgtm platformlgtm

@samandmoore samandmoore merged commit f31feaa into Betterment:main Nov 25, 2024
10 checks passed
@samandmoore
Copy link
Member

released https://rubygems.org/gems/webvalve/versions/2.0.3

@aburgel aburgel deleted the aburgel/fix-sinatra-41 branch November 26, 2024 15:15
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