mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 16:30:17 +02:00
Set ExtAuthz Cluster name to URL Host (#1132)
This commit is contained in:
parent
1867feb5b9
commit
90d95b8c10
3 changed files with 3 additions and 3 deletions
|
@ -38,7 +38,7 @@ func (srv *Server) buildClusters(options *config.Options) []*envoy_config_cluste
|
|||
buildInternalCluster(options, "pomerium-control-plane-http", httpURL, false),
|
||||
}
|
||||
|
||||
clusters = append(clusters, buildInternalCluster(options, "pomerium-authz", authzURL, true))
|
||||
clusters = append(clusters, buildInternalCluster(options, authzURL.Host, authzURL, true))
|
||||
|
||||
if config.IsProxy(options.Services) {
|
||||
for _, policy := range options.Policies {
|
||||
|
|
|
@ -166,7 +166,7 @@ func buildMainHTTPConnectionManagerFilter(options *config.Options, domains []str
|
|||
Timeout: grpcClientTimeout,
|
||||
TargetSpecifier: &envoy_config_core_v3.GrpcService_EnvoyGrpc_{
|
||||
EnvoyGrpc: &envoy_config_core_v3.GrpcService_EnvoyGrpc{
|
||||
ClusterName: "pomerium-authz",
|
||||
ClusterName: options.GetAuthorizeURL().Host,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -50,7 +50,7 @@ func Test_buildMainHTTPConnectionManagerFilter(t *testing.T) {
|
|||
"@type": "type.googleapis.com/envoy.extensions.filters.http.ext_authz.v3.ExtAuthz",
|
||||
"grpcService": {
|
||||
"envoyGrpc": {
|
||||
"clusterName": "pomerium-authz"
|
||||
"clusterName": "127.0.0.1:5443"
|
||||
},
|
||||
"timeout": "10s"
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue