Skip to content

ecds: add network filter dynamic config provider - #28407

Merged
htuch merged 11 commits into
envoyproxy:mainfrom
ohadvano:ecds_network
Jul 19, 2023
Merged

htuch merged 11 commits into
envoyproxy:mainfrom
ohadvano:ecds_network

Conversation

@ohadvano

@ohadvano ohadvano commented Jul 14, 2023 •

Copy link
Copy Markdown
Contributor

Additional Description: Continuing the templatization work that has been done in order to support network filters for ECDS, as a similar feature to listener and HTTP filters. Linked issue: #14696. This PR adds dynamic config providers for network filters without listener consuming.
Risk Level: low
Testing: Unit tests
Docs Changes: none
Release Notes: none
Platform Specific Features: none

cc @kyessenov, @htuch

@ohadvano

Copy link
Copy Markdown
Contributor Author

/assign @kyessenov

As you're familiar with the ECDS for HTTP and were involved reviewing the templatization work, will appreciate your first pass on this one.

@kyessenov kyessenov 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.

LG, did you want to finish the integration with the listener manager first? It might reveal some issues with interfaces.

Comment thread envoy/server/filter_config.h Resolved
@ohadvano

Copy link
Copy Markdown
Contributor Author

/assign @htuch
Will appreciate your second pass review

@ohadvano

Copy link
Copy Markdown
Contributor Author

@kyessenov I hoped to split this to multiple PRs so it doesn't get too many lines of change. Do you think it should be all in a single PR?
I guess that if there would be issues with the interfaces I could adjust the deltas in the following one, as this PR doesn't really change any behavior.
Please lmk what you think

@kyessenov

Copy link
Copy Markdown
Contributor

I think it's fine to have separate PRs provided the changes needed subsequently are not major.

@ohadvano
ohadvano requested a review from kyessenov July 14, 2023 21:44
Signed-off-by: ohadvano <[email protected]>
@ohadvano
ohadvano requested a review from adisuissa as a code owner July 16, 2023 09:36
@ohadvano ohadvano changed the title ecds: add network filter dynamic config provider ecds: add network filter dynamic config provider and apply to static config Jul 16, 2023
@ohadvano ohadvano changed the title ecds: add network filter dynamic config provider and apply to static config ecds: add network filter dynamic config provider Jul 16, 2023
@ohadvano

Copy link
Copy Markdown
Contributor Author

@kyessenov I followed your suggestion to add the interface integration, and indeed there was a small change needed. However it added some boilerplate changes. This PR only uses the network config provider interface for static config, therefore no real behavior change. Will appreciate if you can take another look. Next PR will be adding the dynamic config part along with integration tests. Thanks

@htuch

htuch commented Jul 17, 2023

Copy link
Copy Markdown
Member

@kyessenov let me know when LGTM on changes and I'll do a pass.

@kyessenov kyessenov 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.

Yes, this looks fine to me. It's mostly reusing the existing infrastructure but there is a rename (vector to alias), so it touches a lot of places. Left a comment to spell out auto so that we don't accidentally copy.

Comment thread source/common/upstream/upstream_impl.cc Resolved
Comment thread source/server/configuration_impl.cc Resolved
@ohadvano

Copy link
Copy Markdown
Contributor Author

Done. Thanks for reviewing @kyessenov

@ohadvano
ohadvano requested a review from kyessenov July 17, 2023 20:35

@htuch htuch 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.

LGTM, thanks. I'd suggest for future PRs to separate out the noisy renames into a separate trivial PR to make reviews a bit easier.

@htuch
htuch merged commit 480765e into envoyproxy:main Jul 19, 2023
@ohadvano
ohadvano deleted the ecds_network branch July 19, 2023 07:07
michaelfinch added a commit to michaelfinch/envoy that referenced this pull request Jul 19, 2023
* main: (46 commits)
  buffer: Disable second flaky test on windows. (envoyproxy#28483)
  ci/github: Fix repo contexts (envoyproxy#28482)
  ci/github: Minor fix for untrusted code (envoyproxy#28480)
  ci/github: Fixes/cleanups for env and workflows (envoyproxy#28473)
  examples: Warn on `golang-network` flake (envoyproxy#28478)
  build(deps): bump node from 20.3-bullseye-slim to 20.4-bullseye-slim in /examples/shared/node (envoyproxy#28321)
  ecds: add network filter dynamic config provider (envoyproxy#28407)
  deps: bump gRPC to 1.56.2 (envoyproxy#28449)
  Adding disallowed_headers in the ext_proc header forwarding rule. (envoyproxy#28468)
  golang filter: add VirtualClusterName getter (envoyproxy#28406)
  ci/github: Further fixes/cleanups for verify (envoyproxy#28467)
  coverage: Lower `source/common/quic` to fix permafail (93.3) (envoyproxy#28471)
  deps: Bump `rules_python` -> 0.24.0 (envoyproxy#28347)
  ci/github: Fix/improve CI env (envoyproxy#28465)
  improve header matcher output (envoyproxy#28389)
  grpc-patch: fix for oss-fuzz build (envoyproxy#28409)
  ext_proc: Refactor startStream logic and fix crash issue (envoyproxy#28424)
  add switch for setting round trip time to connection info (envoyproxy#28159)
  accesslog: disable resource labels (envoyproxy#28046)
  Remove unused header (envoyproxy#28447)
  ...
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.

3 participants