Skip to content
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

feat: Support obtaining client IP from CloudFront-Viewer-Address header #28

Merged
merged 3 commits into from
Apr 9, 2024

Conversation

jreppnow
Copy link
Contributor

@jreppnow jreppnow commented Apr 8, 2024

Hi! Thanks for the crate!

This PR adds support for the CloudFront-Viewer-Address header supported by AWS CloudFront.

I put the feature behind a feature flag, since it could hardly be called a standard, but this could also be omitted if you prefer the simpler version without the feature flag.

Thanks!

@imbolc
Copy link
Owner

imbolc commented Apr 9, 2024

Hey :) Yes, I'd prefer removing the feature flag to keep it simple ;)

@jreppnow
Copy link
Contributor Author

jreppnow commented Apr 9, 2024

@imbolc Hi, thanks for the feedback. I have removed the feature flag. Technically, this is now a breaking change since the SecureClientIpSource enum is pub and people could potentially be matching exhaustively on it, but it's probably fine..

@imbolc imbolc merged commit 7c77d41 into imbolc:main Apr 9, 2024
4 checks passed
@imbolc
Copy link
Owner

imbolc commented Apr 9, 2024

Published, thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants