Skip to content

Internal address metadata transfer from upstream #19189

Closed

Description

@kyessenov

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.

Activity

  1. added
    enhancement
    triage
    on Dec 3, 2021
  2. kyessenov commented on Dec 8, 2021

    @kyessenov
    ContributorAuthor

    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.

  3. wrowe commented on Dec 14, 2021

    @wrowe
    Contributor

    Tagging as enhancement, let me know if you wanted other labels

  4. removed
    triage
    on Dec 14, 2021
  5. github-actions commented on Jan 13, 2022

    @github-actions

    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.

  6. added
    stale
    on Jan 13, 2022
  7. kyessenov commented on Jan 13, 2022

    @kyessenov
    ContributorAuthor
  8. removed
    stale
    on Jan 14, 2022
  9. github-actions commented on Feb 13, 2022

    @github-actions

    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.

  10. added
    stale
    on Feb 13, 2022
  11. github-actions commented on Feb 20, 2022

    @github-actions

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementstale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions