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

Proxy Protocol: Pass through V2 TLVs to upstream #24944

Merged
merged 11 commits into from
Feb 2, 2023

Conversation

botengyao
Copy link
Member

@botengyao botengyao commented Jan 13, 2023

Signed-off-by: Boteng Yao boteng@google.com
Co-authored-by: Siyuan Zhou siyuan.zhou@mongodb.com

This PR will store Proxy Protocol V2 TLVs to filter state based on the API config. And upstream can send these TLVs in transport socket based on the pass through config as well.

Some discussion already happened here: #18940
And thanks @siyuan.zhou@mongodb.com for the initial work.

Commit Message:
Additional Description:
Risk Level: Low
Testing: unit & integration test
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

Signed-off-by: Boteng Yao <boteng@google.com>
@repokitteh-read-only
Copy link

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #24944 was opened by botengyao.

see: more, trace.

Signed-off-by: Boteng Yao <boteng@google.com>
@repokitteh-read-only
Copy link

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to (api/envoy/|docs/root/api-docs/).
envoyproxy/api-shepherds assignee is @markdroth
CC @envoyproxy/api-watchers: FYI only for changes made to (api/envoy/|docs/root/api-docs/).

🐱

Caused by: #24944 was synchronize by botengyao.

see: more, trace.

@botengyao botengyao changed the title [WIP] Pass TLVs to upstream Pass through TLVs to upstream Jan 20, 2023
@botengyao botengyao changed the title Pass through TLVs to upstream Pass through Proxy Protocol V2 TLVs to upstream Jan 20, 2023
Signed-off-by: Boteng Yao <boteng@google.com>
@botengyao
Copy link
Member Author

Pending release note.

@botengyao
Copy link
Member Author

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #24944 (comment) was created by @botengyao.

see: more, trace.

Signed-off-by: Boteng Yao <boteng@google.com>
Signed-off-by: Boteng Yao <boteng@google.com>
@botengyao botengyao marked this pull request as ready for review January 20, 2023 19:59
@repokitteh-read-only
Copy link

🙀 Error while processing event:

evaluation error
error: function _rk_error error: path contains forbidden characters:
 Traceback (most recent call last):
  bootstrap:143: in <toplevel>
  bootstrap:135: in _main
  bootstrap:62: in _call
  bootstrap:15: in _call1
  github.com/repokitteh/modules/assign.star:18: in _assign
  github:395: in issue_check_assignee
  github:131: in call
Error: function _rk_error error: path contains forbidden characters
🐱

Caused by: a #24944 (comment) was created by @botengyao.

see: more, trace.

@repokitteh-read-only
Copy link

neither of as, well,, thanks! can be assigned to this issue.

🐱

Caused by: a #24944 (comment) was created by @botengyao.

see: more, trace.

@botengyao
Copy link
Member Author

/assign @yanavlasov
Thanks!

@botengyao botengyao changed the title Pass through Proxy Protocol V2 TLVs to upstream Proxy Protocol: Pass through V2 TLVs to upstream Jan 20, 2023
Copy link
Contributor

@yanavlasov yanavlasov left a comment

Choose a reason for hiding this comment

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

/wait

Signed-off-by: Boteng Yao <boteng@google.com>
Signed-off-by: Boteng Yao <boteng@google.com>
Signed-off-by: Boteng Yao <boteng@google.com>
Signed-off-by: Boteng Yao <boteng@google.com>
@botengyao
Copy link
Member Author

Hi @envoyproxy/api-shepherds, and @markdroth, can we get this API reviewed? Thanks!

@yanavlasov
Copy link
Contributor

@yanavlasov
Copy link
Contributor

/wait

Signed-off-by: Boteng Yao <boteng@google.com>
Signed-off-by: Boteng Yao <boteng@google.com>
@botengyao
Copy link
Member Author

botengyao commented Jan 31, 2023

Hi @yanavlasov, @markdroth, and @envoyproxy/api-shepherds, cc @alyssawilk, PTAL, thanks!

@botengyao botengyao requested review from yanavlasov and removed request for ggreenway and alyssawilk January 31, 2023 16:25
Copy link
Contributor

@yanavlasov yanavlasov left a comment

Choose a reason for hiding this comment

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

LGTM

initialize();

IntegrationTcpClientPtr tcp_client = makeTcpConnection(lookupPort("listener_0"));
;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: extra ;

@markdroth
Copy link
Contributor

/lgtm api

@repokitteh-read-only repokitteh-read-only bot removed the api label Feb 2, 2023
@yanavlasov yanavlasov merged commit 74508c8 into envoyproxy:main Feb 2, 2023
Copy link
Contributor

@suniltheta suniltheta left a comment

Choose a reason for hiding this comment

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

Just 1 clarifying question

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.

4 participants