GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Default config still sends client IPs in CF-Connecting-IP, True-Client-IP, Forwarded and X-Client-IP headers · Issue #8097 · getsentry/sentry-python Open DescriptionHow do you use Sentry?Sentry Saas (sentry.io) Version2.72.0 (also on master) Steps to ReproduceDefault config, no import sentry_sdk from flask import Flask seen = [] sentry_sdk.init(dsn="http://k@localhost/1", transport=lambda event: seen.append(event)) app = Flask(__name__) app.logger.disabled = True @app.route("/") def index(): raise ValueError("boom") ips = { "X-Forwarded-For": "203.0.113.1", "X-Real-IP": "203.0.113.2", "CF-Connecting-IP": "203.0.113.3", "True-Client-IP": "203.0.113.4", "Forwarded": "for=203.0.113.5", "X-Client-IP": "203.0.113.6", } app.test_client().get("/", headers=ips) sentry_sdk.flush() sent = {k.lower(): v for k, v in seen[0]["request"]["headers"].items()} for name in ips: print(f"{name:18} {sent.get(name.lower(), '(not sent)') or '(blanked)'}") Expected ResultNo client IP in the event. The docs say "By default, the Sentry SDK doesn't send the user's IP address" (https://docs.sentry.io/platforms/python/data-management/data-collected/). Actual ResultThe default only blanks ActivityMetadataMetadataAssigneesLabelsNo labels Projects
MilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |