solo-io / gloo

The Feature-rich, Kubernetes-native, Next-Generation API Gateway Built on Envoy
https://docs.solo.io/
Apache License 2.0
4.08k stars 437 forks source link

Envoy attributes as a source for Transformations #8489

Open jmunozro opened 1 year ago

jmunozro commented 1 year ago

Version

1.14.x (latest stable)

Is your feature request related to a problem? Please describe.

I want to expose the value of an envoy attribute to dynamic metadata with a transformation. The intention is to be able to add logic in a later filter, using that information.

As an example, i'd like to read xds.route_name in a transformation, then save it to dynamic metadata, and be able to print it in the logs as %DYNAMIC_METADATA(com.test.my_filter:test_key)%

Describe the solution you'd like

Envoy attributes can be read in a transformation and saved to dynamic metadata

Describe alternatives you've considered

Lua filter

I would like to have an identification of the route, in order to refer to it as part of the dynamic metadata, the attribute xds.route_name contains the desired information. Other source for this value would work as a workaround for this particular use case, but we will probably hit this again eventually in the future.

Additional Context

No response

github-actions[bot] commented 3 months ago

This issue has been marked as stale because of no activity in the last 180 days. It will be closed in the next 180 days unless it is tagged "no stalebot" or other activity occurs.