For compliance reasons, we are not able to collect or process IP addresses in our application. With an initial look, it seems that the new(ish) Cloudfront Functions might be able to do what is needed. https://aws.amazon.com/blogs/aws/introducing-cloudfront-functions-run-your-code-at-the-edge-with-low-latency-at-any-scale/
Can the incoming IP addresses be removed entirely so that is not visible even in the X-Forwarded-For header (or any other field) to the origin? As shown in this article:
If a viewer sends a request to CloudFront and does not include an
X-Forwarded-Forrequest header, CloudFront gets the IP address of the viewer from the TCP connection, adds an X-Forwarded-For header that includes the IP address, and forwards the request to the origin.
Therefore all requests will have the IP address visible in the X-Forwarded-For header. Is there a way to disable this?