cluster_header not set for RequestMirrorPolicy

Open
#289 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
api, backend

Research direction

Start with the RouteConfiguration response path and the RequestMirrorPolicy handling, using the Java builder example in the issue to reproduce the missing field. Run the provided grpcurl command against the aggregated discovery service and compare the returned requestMirrorPolicies with the snapshot; done means cluster_header is preserved in the RouteConfiguration response.

Written by the indexing model from the issue text.

Description

RouteConfiguration always return empty cluster_header fields. Code for reproduce:

RouteConfiguration.newBuilder()
            .setName("local_route")
            .addVirtualHosts(
                VirtualHost.newBuilder()
                    .addRequestMirrorPolicies(RequestMirrorPolicy.newBuilder().setClusterHeader("cluster-shadow")))
            .build();

cluster_header exist in snapshot
image
but not return in RouteConfiguration

grpcurl -plaintext -d '
{
   "version_info":"1",
   "type_url":"type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
   "resource_names":[                   
   "local_route"
   ],
   "node":{
      "cluster":"cluster1",
      "id":"id1"
   }
}' localhost:8888 envoy.service.discovery.v3.AggregatedDiscoveryService/StreamAggregatedResources | jq .resources[0].virtualHosts[0].requestMirrorPolicies
[
  {}
]

Dominant language
Java
Stars
312
Forks
150
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from envoyproxy/java-control-plane

All issues in envoyproxy/java-control-plane

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.