-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consent Reporting Client IP #4440
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Passing run #5340 ↗︎
Details:
Review all test suite changes for PR #4440 ↗︎ |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #4440 +/- ##
==========================================
- Coverage 87.10% 86.77% -0.33%
==========================================
Files 329 329
Lines 20366 20377 +11
Branches 2623 2625 +2
==========================================
- Hits 17739 17682 -57
- Misses 2163 2238 +75
+ Partials 464 457 -7 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me! relatively straightforward in terms of app code changes, i think.
tentative approval but seems like we need to resolve your more deployment/config related question re: the uvicorn settings...
Closes #PROD-1412
Description Of Changes
For legal purposes, sometimes a truncated version of the client ip is needed to prove what actions were taken after consent was saved. Here we are running fides in such a way that the ip of the load balancer is being recorded, not the client ip.
Code Changes
x-forwarded-for
ip if it exists, otherwise, drop back to request.client.hostSteps to Confirm
Make a request to get historical privacy preferences: GET http://localhost:8080/api/v1/historical-privacy-preferences?page=1&size=50
In this case ,the truncated IP address is:
35.226.242.0
If IP address is invalid it is not saved
You can also test directly with served notices in Fides (not Plus) with x-forwarded-for header, but to validate the IP address involves inspecting the db directly
Pre-Merge Checklist
CHANGELOG.md