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

Will remoteAddrPredicate work if i use Amazon ELB in front of gateway? #201

Closed
grku2opia opened this issue Feb 20, 2018 · 4 comments
Closed
Labels

Comments

@grku2opia
Copy link

No description provided.

@spencergibb
Copy link
Member

spencergibb commented Feb 20, 2018

I don't see why not. You have asked a very detailed question though, so I can't respond to specifics.

@grku2opia
Copy link
Author

I have one scenario in which i add dynamic headers based on client ip before hitting any api end point so i have sample route like this

.route(r -> r.path("/showCampaign/{campaignId}/{clickId}")
                    .and().predicate(remoteAddr("182.72.35.102", "192.72.35.102/16"))
                    .filter(((exchange, chain) -> new MyCustomFilter().filter(exchange, chain)))
                    .setPath("/campaign/{campaignId}/{clickId}")
                    .uri("http://myapiuri.com")

I am using elastic network load balancing in front of gateway so i am asking client ip predicate will match because elb will move client ip to X-Forwarded-IP

@grku2opia
Copy link
Author

@spencergibb need your help, I have mentioned my specific problem.

@spencergibb
Copy link
Member

No, see #156

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

No branches or pull requests

2 participants