-
|
Scenario: One of the services that we're running as part of our stack, Ory oathkeeper, has defined an "allow-list" of IP address ranges to which it can make requests (see https://github.com/ory/x/blob/8f55c13831d0ff51ffdb8c9211d3a987c13bad2c/httpx/ssrf.go#L91). Since Orbstack assigns If interested, this repo contains details on how to reproduce the issue: https://github.com/muya/oathkeeper-ip-restrictions-demo Basically, the scenarios fail when using Orbstack, and pass when not using Orbstack. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
You can try |
Beta Was this translation helpful? Give feedback.
-
|
For anyone hitting this specifically with Ory (Hydra / Oathkeeper) — the SSRF guard in A deterministic workaround that needs no host-IP hardcoding: drop a tiny TCP relay ( services:
host-relay:
image: alpine/socat
command: TCP-LISTEN:8080,fork,reuseaddr TCP:host.docker.internal:8080
extra_hosts: ["host.docker.internal:host-gateway"]
networks: [your-network]Then set the Ory upstream to the relay's service name, e.g. Hydra Why it works: Ory resolves Verified under OrbStack on Ory Hydra v2.3.0 (client-credentials grant, Would still love a first-party knob to map |
Beta Was this translation helpful? Give feedback.
You can try
host.orb.internalinstead, which has IPv6. The IPv6 address falls under the allowlist.