Skip to content

ext_proc: Add support for processing_mode and processing mode override#14822

Merged
htuch merged 7 commits intoenvoyproxy:mainfrom
gbrail:ext-proc-6
Feb 3, 2021
Merged

ext_proc: Add support for processing_mode and processing mode override#14822
htuch merged 7 commits intoenvoyproxy:mainfrom
gbrail:ext-proc-6

Conversation

@gbrail
Copy link
Copy Markdown
Contributor

@gbrail gbrail commented Jan 25, 2021

Commit Message: ext_proc: Add support for processing_mode and processing mode override. In this PR, only supported for request_headers and response_headers.
Additional Description:
Risk Level: Low
Testing: unit test and integration tests, with new tests added to this PR to support the feature
Docs Changes: Removed "not-implemented-hide" from the "processing_mode" configuration parameter

This lets the configuration control which calls are made to
the external processor, and also lets the processor temporarily
change the mode for a single request.

Signed-off-by: Gregory Brail <gregbrail@google.com>
@repokitteh-read-only
Copy link
Copy Markdown

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to api/envoy/.
API shepherd assignee is @lizan
CC @envoyproxy/api-watchers: FYI only for changes made to api/envoy/.

🐱

Caused by: #14822 was synchronize by gbrail.

see: more, trace.

@gbrail gbrail marked this pull request as ready for review January 26, 2021 01:17
@gbrail gbrail requested a review from htuch as a code owner January 26, 2021 01:17
@lizan
Copy link
Copy Markdown
Member

lizan commented Jan 26, 2021

/lgtm api

Copy link
Copy Markdown
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

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

LGTM. I'm thinking it might be good to get a non-Google reviewer for this series of reviewers for two reasons:

  1. Increase pool of ext_proc reviewers.
  2. Follow policy of having cross-company review. Since the original design/protos were already reviewed by Lyft (@mattklein123) I'm not super worried about accidentally over-fitting to Google, but it would be nice to have.

@envoyproxy/maintainers any interested folks?

Signed-off-by: Gregory Brail <gregbrail@google.com>
@gbrail
Copy link
Copy Markdown
Contributor Author

gbrail commented Jan 27, 2021

To Harvey's point, next PR will add body handling, so we'll start getting into the nuances of the filter chain and the Buffer classes so experienced reviewers will be essential.

@htuch
Copy link
Copy Markdown
Member

htuch commented Jan 27, 2021

@snowp has kindly volunteered (thanks a bunch).

@htuch htuch assigned snowp and htuch and unassigned lizan Jan 27, 2021
@htuch
Copy link
Copy Markdown
Member

htuch commented Jan 27, 2021

.. and @lizan. Exciting to have more review coverage on this key piece of the Envoy extensibility story.

Copy link
Copy Markdown
Contributor

@snowp snowp left a comment

Choose a reason for hiding this comment

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

Thanks this all looks sensible to me, just a few minor comments

ProcessingResponse resp2;
auto* headers2 = resp2.mutable_response_headers();
auto* response_mutation = headers2->mutable_response()->mutable_header_mutation();
auto* add1 = response_mutation->add_set_headers();
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.

I think in general we advocate for a bit more descriptive variable names, but this being test code I'm not too bothered

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.

I'll keep that in mind as I write more tests.

Signed-off-by: Gregory Brail <gregbrail@google.com>
Signed-off-by: Gregory Brail <gregbrail@google.com>
@gbrail
Copy link
Copy Markdown
Contributor Author

gbrail commented Jan 29, 2021

It looks like maybe the tests are stuck. Can someone kick them?

@htuch
Copy link
Copy Markdown
Member

htuch commented Jan 31, 2021

@gbrail can you merge master and push? Thanks.

Signed-off-by: Gregory Brail <gregbrail@google.com>
Signed-off-by: Gregory Brail <gregbrail@google.com>
Signed-off-by: Gregory Brail <gregbrail@google.com>
@htuch htuch merged commit 9976ba9 into envoyproxy:main Feb 3, 2021
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