Skip to content

Adding docs/release notes for listener filter. - #21646

Merged
adisuissa merged 8 commits into
envoyproxy:mainfrom
yanjunxiang-google:ecds_doc
Jun 15, 2022
Merged

adisuissa merged 8 commits into
envoyproxy:mainfrom
yanjunxiang-google:ecds_doc

Conversation

@yanjunxiang-google

Copy link
Copy Markdown
Contributor

Adding docs/release notes for listener filter for issue: #20049.

This is a follow up commit for #21133.

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:]

@yanjunxiang-google

Copy link
Copy Markdown
Contributor Author

This PR is to add release documents for listener ECDS as a follow up commits for #21133.

Originally, we thought we can add this release notes within the UDP listener ECDS implementation: #21606. However #21606 may need some time to materialize. Thus sending out this PR first. We can update the release notes in #21606 later once it is in good shape.

@yanjunxiang-google

Copy link
Copy Markdown
Contributor Author

/assign @adisuissa @soulxu @mattklein123


For Listener filters, the discovery service configuration is: :ref:`dynamic listener filter
re-configuration<envoy_v3_api_field_config.listener.v3.ListenerFilter.config_discovery>`.
Note, the dynamic listener filter config is only supported in TCP listeners.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we plan to release the TCP first? then support UDP in the future. If yes, what happened if I set the ECDS for the UDP, do we have an explicit error message to tell the user the UDP doesn't support the ECDS yet? I thought it will be better to not silently ignore ECDS for UDP and an explicit message for the user.

@yanjunxiang-google yanjunxiang-google Jun 10, 2022 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, that's what I am thinking. The UDP listener filter ECDS work may need take a while. Let's make the TCP listener ECDS work self-complete.

Just added a check and a RELEASE_ASSERT to crash Envoy for UDP listeners with ECDS listener filter configured.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

emm... I prefer to raise normal exception, not a crash, but we can see other's opinion

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.

Exception in the config-path digestion code makes sense, as Envoy will reject any config that is incorrect.

:header: Name, Type, Description
:widths: 1, 1, 2

extension_config_missing, Counter, Total connections closed due to missing listener filter extension configuration

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It will be better to describe that if the config is missing, the connection will be rejected until the valid config was updated in the above.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ACK

@repokitteh-read-only

Copy link
Copy Markdown

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

🐱

Caused by: #21646 was synchronize by yanjunxiang-google.

see: more, trace.

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

if (proto_config.config_type_case() ==
envoy::config::listener::v3::ListenerFilter::ConfigTypeCase::kConfigDiscovery) {
RELEASE_ASSERT(false, "For UDP listener, the dynamic listener filter configuration "

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Not sure we should use RELEASE_ASSERT, I would prefer raise a exception here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ACK

@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 #21646 (comment) was created by @yanjunxiang-google.

see: more, trace.

@soulxu

soulxu commented Jun 10, 2022

Copy link
Copy Markdown
Member

Thanks! This is LGTM

soulxu
soulxu previously approved these changes Jun 10, 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.

Thanks for adding this!
Left a couple of minor comments.

Discovery service
^^^^^^^^^^^^^^^^^

HTTP Filters

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.

@yanjunxiang-google yanjunxiang-google Jun 13, 2022 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

After reordering the texts, I think it's better to just remove "HTTP filters" and "Listener Filters" because those are already in the starting text in that paragraph.

for HTTP filters.

Extension config discovery service has a :ref:`statistics
HTTP filter Extension config discovery service has a :ref:`statistics

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.

Suggested change
HTTP filter Extension config discovery service has a :ref:`statistics
HTTP filter extension config discovery service has a :ref:`statistics

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ACK


HTTP Filters

Extension configuration can be supplied dynamically from an :ref:`xDS

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.

This part should be before the "HTTP Filters" sub-section, as it is generic to all discovery services.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, good catch!


For Listener filters, the discovery service configuration is: :ref:`dynamic listener filter
re-configuration<envoy_v3_api_field_config.listener.v3.ListenerFilter.config_discovery>`.
Note, the dynamic listener filter config is only supported in TCP listeners.

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.

Exception in the config-path digestion code makes sense, as Envoy will reject any config that is incorrect.

Signed-off-by: Yanjun Xiang <[email protected]>
The dynamic listener filter config is only supported in TCP listeners.
If the dynamic config is missing, the connection will be rejected until a valid config is updated.

Listener filter Extension config discovery service has a :ref:`statistics

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.

nit:

Suggested change
Listener filter Extension config discovery service has a :ref:`statistics
Listener filter extension config discovery service has a :ref:`statistics

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ACK

for HTTP filters.

Extension config discovery service has a :ref:`statistics
For HTTP filters, HTTP connection manager supports :ref:`dynamic filter

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.

Why was the subsection heading removed?

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

@mattklein123 mattklein123 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice, thanks!

@mattklein123 mattklein123 removed their assignment Jun 14, 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!

@adisuissa
adisuissa merged commit ab58c54 into envoyproxy:main Jun 15, 2022
Amila-Rukshan pushed a commit to Amila-Rukshan/envoy that referenced this pull request Jun 28, 2022
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