You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deploying FastAPI in AWS behind an AWS Load Balancer I hit a roadblack to trust the proxy (the Load Balancer): I know its network but not its IPs. Using ProxyHeadersMiddleware as it is, I'd have to know those IPs beforehand to trust them.
What would you think of having ProxyHeadersMiddleware trusts some networks in addition to individuel IPs (as it's doing right now with trusted_hosts)?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Deploying FastAPI in AWS behind an AWS Load Balancer I hit a roadblack to trust the proxy (the Load Balancer): I know its network but not its IPs. Using
ProxyHeadersMiddleware
as it is, I'd have to know those IPs beforehand to trust them.What would you think of having
ProxyHeadersMiddleware
trusts some networks in addition to individuel IPs (as it's doing right now withtrusted_hosts
)?I put some code of how it could work in #2387.
Beta Was this translation helpful? Give feedback.
All reactions