Comments (5)
ESPv2 is using x-forwarded-for
header to get client ip. But many proxy servers on the path may add this header, you need to use flag --envoy_xff_num_trusted_hops to tell which client ip to choose.
Please check this doc for detail.
from esp-v2.
Thanks, this config works for me:
--envoy_xff_num_trusted_hops=1
--envoy_use_remote_address
from esp-v2.
Ref cloudendpoints/endpoints-tools#72
from esp-v2.
Glad that works. Let's keep this issue open, we need to document this behavior.
from esp-v2.
We worked with the Cloud Run team to set defaults for the endpoints-runtime-serverless
image. We recommend the following defaults:
--envoy_xff_num_trusted_hops=0
Your config will still work if you update to the next released version of ESPv2. There shouldn't be much difference.
from esp-v2.
Related Issues (20)
- API GW trace is not being logged HOT 1
- Prevent headers overwriting. HOT 5
- StreamAggregatedResources warning logs on 2.41+ HOT 3
- CVE-2022-27664 + Go 1.18 EOL HOT 4
- 2.44.0 not latest release HOT 1
- Envoy cluster's max_requests, max_connections are not configurable and set to default of 1024 HOT 2
- x-google-audiences list ignored HOT 3
- Cloud Run Deployment Failure HOT 7
- Frontend and backend using matching Cloud Run revision tag HOT 3
- 503 or 504 error case HOT 3
- Support HTTP/3
- How to enable CORS for specific endpoints
- killing envoy process HOT 3
- Shutdown error logging behaviour
- Major Security Vulnerabilities HOT 3
- endpoints-runtime:2 containers are very large (1.34GB) HOT 3
- Build esp-v2 with GitHub Actions?
- Is it possible to use endpoints-runtime:2 with cloud run HOT 2
- Question about deprecation for gcr.io/endpoints-release/endpoints-runtime:2, Container Registry HOT 5
- HTTP endpoint with google.api.http annotation doesn't transcode locally
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp-v2.