__jmcantrell__ has quit [Ping timeout: 272 seconds]
blacknova has joined #ruby
grenierm has joined #ruby
<blacknova>
hi, anyone familiar with Plaid API's ruby quickstart sample app? https://github.com/plaid/quickstart/blob/master/ruby/app.rb it seems to use Sinatra which uses Rack::Protection and trying to get it to stop thinking localhost calls are "attacks". Tried changing L15 to `use Rack::Protection, except: [:json_csrf, :host_authorization]` and restarted their container to no avail :/
<blacknova>
Any help appreciated!
TomyLobo has quit [Ping timeout: 276 seconds]
<blacknova>
tried adding `use Rack::Protection::HostAuthorization, permitted_hosts: ["localhost"]` but still keep getting `quickstart-ruby-1 | W, [2025-04-28T02:24:42.942950 #1] WARN -- : attack prevented by Rack::Protection::HostAuthorization`
<mange>
If you're running in a container then the requests won't be coming from "localhost", they'll be coming from another IP address that represents the host from inside the container. 172.19.0.2 is a reserved IP, so I assume that's it.
<blacknova>
had to rebuild the container as nothing was working
<blacknova>
I don't understand why this is so hard
<blacknova>
this Debian ("Bullseye") container doesn't have `ip addr...` but `/etc/hosts` shows what the container's IP is and I assume source IP is from that message