You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Internal address metadata transfer from upstream #19189
We would like to expose some metadata through the user space socket (internal listener). The metadata can originate from several sources:
endpoint metadata;
upstream cluster metadata;
stream info remote address;
downstream and upstream stream info metadata and filter state;
The right place to write appears to be the connection stream info metadata and filter state. Filter state is preferable since it supports nesting (e.g. HCM on internal listener can access it), unless dynamic metadata starts supporting nesting as well.
The point of declaration would ideally be the point of use, which is the internal listener. That helps with the duplication across upstream clusters. Listeners in general are mutually trusted.
To add some context, the internal listener is likely to utilize HTTP dynamic forward proxy or TCP original destination cluster for forwarding. Therefore, as a minimum requirement, the metadata passed from the original listener to the internal listener must be able to configure:
host header override (e.g. obtained from CONNECT method);
local address override in L4 stream info (to drive original destination cluster);
(optional) true destination descriptor in case the peer is also a tunnel endpoint (e.g. we can set an HTTP header original-dst in CONNECT so that the terminating listener can forward to the endpoint in original-dst).
The above could be done with dynamic metadata as long as both dynamic forward proxy and original destination cluster can use the dynamic metadata instead of direct HTTP/TCP stream information.
A secondary requirement is to be able to share a filter state between the original listener and the internal listener. The usage is to enable continuation of evaluation of policy between listeners, e.g. to pass a concrete state between filters in the two listeners.
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.
Activity
kyessenov commentedon Dec 8, 2021
To add some context, the internal listener is likely to utilize HTTP dynamic forward proxy or TCP original destination cluster for forwarding. Therefore, as a minimum requirement, the metadata passed from the original listener to the internal listener must be able to configure:
CONNECTmethod);original-dstinCONNECTso that the terminating listener can forward to the endpoint inoriginal-dst).The above could be done with dynamic metadata as long as both dynamic forward proxy and original destination cluster can use the dynamic metadata instead of direct HTTP/TCP stream information.
A secondary requirement is to be able to share a filter state between the original listener and the internal listener. The usage is to enable continuation of evaluation of policy between listeners, e.g. to pass a concrete state between filters in the two listeners.
wrowe commentedon Dec 14, 2021
Tagging as enhancement, let me know if you wanted other labels
github-actions commentedon Jan 13, 2022
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.
kyessenov commentedon Jan 13, 2022
#19274
github-actions commentedon Feb 13, 2022
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.
github-actions commentedon Feb 20, 2022
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.