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

docs: ext-proc #3608

Merged
merged 5 commits into from
Jun 20, 2024
Merged

docs: ext-proc #3608

merged 5 commits into from
Jun 20, 2024

Conversation

guydc
Copy link
Contributor

@guydc guydc commented Jun 14, 2024

What this PR does / why we need it:
docs for the ext-proc feature
Which issue(s) this PR fixes:
Fixes #3456

@guydc guydc requested a review from a team as a code owner June 14, 2024 19:43
Copy link

codecov bot commented Jun 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.32%. Comparing base (88fc0bf) to head (df0e343).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3608      +/-   ##
==========================================
- Coverage   68.34%   68.32%   -0.02%     
==========================================
  Files         170      170              
  Lines       20707    20707              
==========================================
- Hits        14152    14148       -4     
- Misses       5532     5535       +3     
- Partials     1023     1024       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Guy Daich <[email protected]>
@guydc
Copy link
Contributor Author

guydc commented Jun 14, 2024

/retest


Create a new EnvoyExtensionPolicy resource to configure the external processing service. This EnvoyExtensionPolicy targets the HTTPRoute
"myApp" created in the previous step. It calls the GRPC external processing service "grpc-ext-proc" on port 9002 for
processing. The `processingMode` struct defines that headers of requests and responses will be sent to the external processing server.
Copy link
Contributor

Choose a reason for hiding this comment

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

may a line in here saying, by default all request headers are sent, but in this example we are sending none would be helpful

processing. The `processingMode` struct defines that headers of requests and responses will be sent to the external processing server.
processing.

By default, requests and responses are not sent to the external processor. The `processingMode` struct is used to define what should be sent to the external processor.
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe we should explicitly mention body so readers like me dont confuse it with headers

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, but not in EG. We wanted to simplify the API (avoid explicitly mentioning header processing modes) while still supporting opt-out for request and/or response processing and explicit body processing mode configuration.

To accomodate this, the API currently behaves like this:

  1. if request/response is set to an empty struct - headers are sent.
  2. if request/response is configured with a body - headers and body are sent.
  3. is request/response is not configured at all - opt-out of calling the processor.

I can extend the example to also include body forwarding in one of the flows to help explain how this works.

Copy link
Contributor

Choose a reason for hiding this comment

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

thanks for explaining this, in that case, can we update above text mentioning that request headers will be sent ?

Copy link
Contributor

@arkodg arkodg left a comment

Choose a reason for hiding this comment

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

LGTM thanks !

@arkodg arkodg requested review from a team June 18, 2024 21:30
@zirain zirain merged commit f2c9ec9 into envoyproxy:main Jun 20, 2024
26 checks passed
bjlhlin pushed a commit to bjlhlin/gateway that referenced this pull request Jun 25, 2024
* docs: ext-proc

Signed-off-by: Guy Daich <[email protected]>

* elaborate on processing mode

Signed-off-by: Guy Daich <[email protected]>

* explain processing modes

Signed-off-by: Guy Daich <[email protected]>

---------

Signed-off-by: Guy Daich <[email protected]>
Signed-off-by: bjlhlin <[email protected]>
bjlhlin pushed a commit to bjlhlin/gateway that referenced this pull request Jun 26, 2024
* docs: ext-proc

Signed-off-by: Guy Daich <[email protected]>

* elaborate on processing mode

Signed-off-by: Guy Daich <[email protected]>

* explain processing modes

Signed-off-by: Guy Daich <[email protected]>

---------

Signed-off-by: Guy Daich <[email protected]>
Signed-off-by: bjlhlin <[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.

docs: Ext Proc
3 participants