Skip to content
This repository was archived by the owner on Dec 16, 2020. It is now read-only.
This repository was archived by the owner on Dec 16, 2020. It is now read-only.

Share filterstate between upstream and downstream filters #291

@gargnupur

Description

@gargnupur

Title: Share filterstate between upstream and downstream filters

Description:
Currently, upstream filters and downstream filters have their own connection objects because of which they can't share filterstate between each other. This hampers flow of metadata between filters. In our case specifically between upstream metadata_exchange filter and downstream stats filter.

[optional Relevant Links:]
I tried making a change in envoy to support this by sharing filterstate between upstream and downstream filters as follows: https://github.com/envoyproxy/envoy-wasm/compare/master...gargnupur:nup_upstream_filterstate?expand=1
But I see that in upstream filter, upstreamFilterstate is not null but when downstream filter, access it, the values set by upstream filter are not there. Is the above approach right way to do this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions