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

Add proxy protocol support for vtgate. #5563

Merged
merged 2 commits into from Dec 19, 2019

Conversation

aquarapid
Copy link
Contributor

As requested in #5554 . Still thinking of how to automate testing for this, but I have confirmed functionality by using haproxy as the proxy sending the PROXY protocol headers.

Use --proxy_protocol flag to vtgate to activate. Default is old (no proxy support) behavior.

Signed-off-by: Jacques Grove aquarapid@gmail.com

Copy link
Contributor

@sougou sougou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change looks good. It would be nice if we could test this, but I can't think of an easy way. I'll need to check with @morgo about what to do about the failing tests.

@morgo
Copy link
Contributor

morgo commented Dec 17, 2019

This change looks good. It would be nice if we could test this, but I can't think of an easy way. I'll need to check with @morgo about what to do about the failing tests.

The test-breakage was due to a GitHub actions issue, which has now been fixed. I just had to restart the test, and it got passed the 'get dependencies' step.

@morgo
Copy link
Contributor

morgo commented Dec 17, 2019

@aquarapid It looks like legit failures in the unit test. Can you take a look?

@morgo morgo self-requested a review December 19, 2019 15:21
aquarapid and others added 2 commits December 19, 2019 12:25
Signed-off-by: Jacques Grove <aquarapid@gmail.com>
Signed-off-by: deepthi <deepthi@planetscale.com>
@deepthi deepthi merged commit d774709 into vitessio:master Dec 19, 2019
@deepthi deepthi deleted the jacques_proxy_protocol branch December 19, 2019 22:44
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.

None yet

4 participants