Skip to content

Listener filter ECDS Support - #21133

Merged
adisuissa merged 30 commits into
envoyproxy:mainfrom
yanjunxiang-google:ecds_hook
Jun 1, 2022
Merged

adisuissa merged 30 commits into
envoyproxy:mainfrom
yanjunxiang-google:ecds_hook

Conversation

@yanjunxiang-google

@yanjunxiang-google yanjunxiang-google commented May 3, 2022 •

Copy link
Copy Markdown
Contributor

This PR support TCP listener filter ECDS functionalities.

This is the 4th PR to support TCP listener filter ECDS as in issue: #20049.

Note, the support of UDP listener ECDS will be done in a separate PR as in item 8 of issue #20049

Build:
passed

Testing:
passed

Release Notes:
N/A

Issues: ecds: add support for listener filters #20049

Signed-off-by: Yanjun Xiang [email protected]

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

This PR support both TCP and UDP listener filter ECDS functionalities.

Signed-off-by: Yanjun Xiang <[email protected]>
@yanjunxiang-google
yanjunxiang-google marked this pull request as draft May 3, 2022 20:45
@yanjunxiang-google

Copy link
Copy Markdown
Contributor Author

/wait

@yanjunxiang-google

yanjunxiang-google commented May 3, 2022 •

Copy link
Copy Markdown
Contributor Author

This PR is WIP.

Need to add integration test for UDP listener filter ECDS.

Signed-off-by: Yanjun Xiang <[email protected]>
@yanjunxiang-google
yanjunxiang-google marked this pull request as ready for review May 8, 2022 02:43
@yanjunxiang-google

Copy link
Copy Markdown
Contributor Author

/assign @adisuissa @kyessenov

Signed-off-by: Yanjun Xiang <[email protected]>
Comment thread source/server/configuration_impl.cc Resolved
Comment thread source/server/configuration_impl.cc Resolved
Comment thread source/server/configuration_impl.cc Resolved

@adisuissa adisuissa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for working on this.
Here's a first pass.

Comment thread envoy/filter/config_provider_manager.h Resolved
Comment thread source/server/configuration_impl.cc Resolved
Comment thread source/server/listener_impl.cc Resolved
Comment thread source/server/listener_impl.cc Resolved
Comment thread source/server/listener_manager_impl.cc Resolved
Comment thread source/server/listener_manager_impl.cc Resolved
Comment thread source/server/listener_manager_impl.cc Resolved
Comment thread source/server/listener_manager_impl.cc Resolved
Comment thread source/server/listener_manager_impl.cc Resolved
Comment thread source/server/listener_manager_impl.h Resolved
Signed-off-by: Yanjun Xiang <[email protected]>
Signed-off-by: Yanjun Xiang <[email protected]>
Signed-off-by: Yanjun Xiang <[email protected]>
Signed-off-by: Yanjun Xiang <[email protected]>
Signed-off-by: Yanjun Xiang <[email protected]>
Signed-off-by: Yanjun Xiang <[email protected]>
@yanjunxiang-google

Copy link
Copy Markdown
Contributor Author

/retest

@repokitteh-read-only

Copy link
Copy Markdown

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

🐱

Caused by: a #21133 (comment) was created by @yanjunxiang-google.

see: more, trace.

Signed-off-by: Yanjun Xiang <[email protected]>
@yanjunxiang-google

Copy link
Copy Markdown
Contributor Author

/assign @htuch @KBaichoo

@adisuissa

Copy link
Copy Markdown
Contributor

/retest

@repokitteh-read-only

Copy link
Copy Markdown

Retrying Azure Pipelines:
Check envoy-presubmit isn't fully completed, but will still attempt retrying.
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #21133 (comment) was created by @adisuissa.

see: more, trace.

@adisuissa adisuissa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks! Left one small comment.

@yanjunxiang-google

Copy link
Copy Markdown
Contributor Author

/retest

@repokitteh-read-only

Copy link
Copy Markdown

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

🐱

Caused by: a #21133 (comment) was created by @yanjunxiang-google.

see: more, trace.

adisuissa
adisuissa previously approved these changes May 27, 2022

@adisuissa adisuissa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, thanks!
Let's make sure CI is green.
@soulxu in case you have more comments.

@yanjunxiang-google

Copy link
Copy Markdown
Contributor Author

Created an issue to track the listener filter matcher integration test: #21484

@yanjunxiang-google

Copy link
Copy Markdown
Contributor Author

/retest

@repokitteh-read-only

Copy link
Copy Markdown

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

🐱

Caused by: a #21133 (comment) was created by @yanjunxiang-google.

see: more, trace.

@soulxu

soulxu commented May 27, 2022

Copy link
Copy Markdown
Member

LGTM, thanks! Let's make sure CI is green. @soulxu in case you have more comments.

previously one thing come to my mind, I think the current is the right way. But just put it here in case people have different thoughts. I'm thinking about whether we should enable the listener matcher for MissConfigFilter. Should we skip the connection close if the connection doesn't match the listener matcher? But I think the current code is right, since it is an invalid config case, then closing the connection directly without considering the listener matcher is right. And it is a little strange for some connection successes due to not matching the matcher, some connections are failed.

Anyway, I think this is LGTM now, thanks!

soulxu
soulxu previously approved these changes May 27, 2022
@yanjunxiang-google

yanjunxiang-google commented May 30, 2022 •

Copy link
Copy Markdown
Contributor Author

LGTM, thanks! Let's make sure CI is green. @soulxu in case you have more comments.

previously one thing come to my mind, I think the current is the right way. But just put it here in case people have different thoughts. I'm thinking about whether we should enable the listener matcher for MissConfigFilter. Should we skip the connection close if the connection doesn't match the listener matcher? But I think the current code is right, since it is an invalid config case, then closing the connection directly without considering the listener matcher is right. And it is a little strange for some connection successes due to not matching the matcher, some connections are failed.

Anyway, I think this is LGTM now, thanks!

Thanks for sharing the thoughts. What you described make sense to me, i.e, if a listener filter config is invalid, the filter chain match predicate value should be ignored.

@yanjunxiang-google

Copy link
Copy Markdown
Contributor Author

/retest

1 similar comment
@adisuissa

Copy link
Copy Markdown
Contributor

/retest

@yanjunxiang-google

Copy link
Copy Markdown
Contributor Author

Hi @mattklein123 , do you have further comments? After you took the pass last time, what we changed is adding the missing_config counter and the integration tests for listener filter matcher.
If no further comments, could you please approve?

@mattklein123

Copy link
Copy Markdown
Member

I already approved this. Please have the others doing active reviews review any new code and merge. Thank you!

@yanjunxiang-google

Copy link
Copy Markdown
Contributor Author

I already approved this. Please have the others doing active reviews review any new code and merge. Thank you!

Thanks @mattklein123

@adisuissa adisuissa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks, LGTM!

@adisuissa
adisuissa merged commit c98dc9f into envoyproxy:main Jun 1, 2022
@yanjunxiang-google
yanjunxiang-google deleted the ecds_hook branch June 2, 2022 21:36
tyxia pushed a commit to tyxia/envoy that referenced this pull request Jun 14, 2022
Amila-Rukshan pushed a commit to Amila-Rukshan/envoy that referenced this pull request Jun 28, 2022
Signed-off-by: Yanjun Xiang <[email protected]>
Signed-off-by: Amila Senadheera <[email protected]>
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.

7 participants