Skip to content

Supergraph / Subgraph header propagation not working #8489

@samuelAndalon

Description

@samuelAndalon

Describe the bug

According to the documentation response header propagation is possible with Rhai scripts, I would imagine is the same case with native plugins.

95% of traffic that is handled by our router instances are coming in batched GraphQL requests. We have a use case where we need to propagate headers from the supergraph service; lets say the send the operation id back to the client, and the subgraph service; lets say the set-cookie header.

Currently, the Context object that is created in the router service is cloned to downstream services, supergraph_service, subgraph_service, which makes impossible to "collect" data from downstream services of the router service

To Reproduce

Image

Expected behavior

I should be able to collect data from downstream services of router_service

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions