Skip to content

api: adds request/response attributes ExtProc options#4496

Closed
mathetake wants to merge 1 commit intoenvoyproxy:mainfrom
mathetake:attributesextproc
Closed

api: adds request/response attributes ExtProc options#4496
mathetake wants to merge 1 commit intoenvoyproxy:mainfrom
mathetake:attributesextproc

Conversation

@mathetake
Copy link
Copy Markdown
Member

What type of PR is this?

This PR adds obvious config options for the extproc: requestAttributes and responseAttributes.

What this PR does / why we need it:

While I am developing a custom WAF external processing, I want to be able to
access attributes information while processing the requests listed below:
https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/advanced/attributes#arch-overview-attributes

Which issue(s) this PR fixes:
ref: #3170

Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
@mathetake mathetake requested a review from a team as a code owner October 22, 2024 20:26
Comment on lines +296 to +297
RequestAttributes: []string{"request.path"},
ResponseAttributes: []string{"response.code"},
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

not sure if this is the enough testing 😉

@mathetake
Copy link
Copy Markdown
Member Author

sorry I won't need one after I had an offline chat

@mathetake mathetake closed this Oct 22, 2024
@mathetake mathetake deleted the attributesextproc branch October 22, 2024 20:32
@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 22, 2024

Codecov Report

Attention: Patch coverage is 0% with 12 lines in your changes missing coverage. Please review.

Project coverage is 65.95%. Comparing base (544bd9c) to head (9e7790f).

Files with missing lines Patch % Lines
internal/gatewayapi/envoyextensionpolicy.go 0.00% 4 Missing and 2 partials ⚠️
internal/xds/translator/extproc.go 0.00% 4 Missing and 2 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4496   +/-   ##
=======================================
  Coverage   65.95%   65.95%           
=======================================
  Files         203      203           
  Lines       31154    31166   +12     
=======================================
+ Hits        20547    20557   +10     
- Misses       9420     9421    +1     
- Partials     1187     1188    +1     

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

This was referenced Nov 26, 2024
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.

1 participant