Skip to content

Commit 8ed65be

Browse files
dilyevskyclaude
andcommitted
[gateway] set authority header on xDS gRPC bootstrap config
Envoy defaults the :authority header to the cluster name ("xds_cluster") on gRPC requests. Contour routes by virtual host FQDN, so it returns HTTP 421 Misdirected Request. Set authority to the xDS server address so the header matches the expected virtual host. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7eab064 commit 8ed65be

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

pkg/gateway/xds/bootstrap/bootstrap.yaml.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ dynamic_resources:
4242
grpc_services:
4343
- envoy_grpc:
4444
cluster_name: xds_cluster
45+
authority: {{ .XdsServer.Address }}
4546
set_node_on_first_message_only: true
4647
lds_config:
4748
ads: {}

pkg/gateway/xds/bootstrap/testdata/render/overload-manager-cgroup.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ dynamic_resources:
2222
grpc_services:
2323
- envoy_grpc:
2424
cluster_name: xds_cluster
25+
authority: envoy-gateway
2526
set_node_on_first_message_only: true
2627
lds_config:
2728
ads: {}

pkg/gateway/xds/bootstrap/testdata/render/overload-manager.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ dynamic_resources:
2222
grpc_services:
2323
- envoy_grpc:
2424
cluster_name: xds_cluster
25+
authority: envoy-gateway
2526
set_node_on_first_message_only: true
2627
lds_config:
2728
ads: {}

0 commit comments

Comments
 (0)