2023-10-24 16:23:27 +00:00
|
|
|
{
|
2024-01-29 20:08:31 +00:00
|
|
|
"versionInfo": "00000001",
|
|
|
|
"resources": [
|
2023-10-24 16:23:27 +00:00
|
|
|
{
|
2024-01-29 20:08:31 +00:00
|
|
|
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster",
|
|
|
|
"name": "null_route_cluster",
|
|
|
|
"type": "STATIC",
|
|
|
|
"connectTimeout": "10s"
|
2023-10-24 16:23:27 +00:00
|
|
|
},
|
|
|
|
{
|
2024-01-29 20:08:31 +00:00
|
|
|
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster",
|
|
|
|
"name": "tcp.api-1.default.dc1.internal.foo.consul",
|
|
|
|
"type": "EDS",
|
|
|
|
"edsClusterConfig": {
|
|
|
|
"edsConfig": {
|
|
|
|
"ads": {},
|
|
|
|
"resourceApiVersion": "V3"
|
2023-10-24 16:23:27 +00:00
|
|
|
}
|
|
|
|
},
|
2024-01-29 20:08:31 +00:00
|
|
|
"connectTimeout": "5s",
|
|
|
|
"commonLbConfig": {
|
|
|
|
"healthyPanicThreshold": {}
|
2023-10-24 16:23:27 +00:00
|
|
|
},
|
2024-01-29 20:08:31 +00:00
|
|
|
"transportSocket": {
|
|
|
|
"name": "tls",
|
|
|
|
"typedConfig": {
|
|
|
|
"@type": "type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext",
|
|
|
|
"commonTlsContext": {
|
|
|
|
"tlsParams": {},
|
|
|
|
"tlsCertificates": [
|
2023-10-24 16:23:27 +00:00
|
|
|
{
|
2024-01-29 20:08:31 +00:00
|
|
|
"certificateChain": {
|
|
|
|
"inlineString": "-----BEGIN CERTIFICATE-----\nMIICDjCCAbWgAwIBAgIBAjAKBggqhkjOPQQDAjAUMRIwEAYDVQQDEwlUZXN0IENB\nIDEwHhcNMjMxMDE2MTYxMzI5WhcNMjMxMDE2MTYyMzI5WjAAMFkwEwYHKoZIzj0C\nAQYIKoZIzj0DAQcDQgAErErAIosDPheZQGbxFQ4hYC/e9Fi4MG9z/zjfCnCq/oK9\nta/bGT+5orZqTmdN/ICsKQDhykxZ2u/Xr6845zhcJaOCAQowggEGMA4GA1UdDwEB\n/wQEAwIDuDAdBgNVHSUEFjAUBggrBgEFBQcDAgYIKwYBBQUHAwEwDAYDVR0TAQH/\nBAIwADApBgNVHQ4EIgQg3ogXVz9cqaK2B6xdiJYMa5NtT0KkYv7BA2dR7h9EcwUw\nKwYDVR0jBCQwIoAgq+C1mPlPoGa4lt7sSft1goN5qPGyBIB/3mUHJZKSFY8wbwYD\nVR0RAQH/BGUwY4Zhc3BpZmZlOi8vMTExMTExMTEtMjIyMi0zMzMzLTQ0NDQtNTU1\nNTU1NTU1NTU1LmNvbnN1bC9hcC9kZWZhdWx0L25zL2RlZmF1bHQvaWRlbnRpdHkv\ndGVzdC1pZGVudGl0eTAKBggqhkjOPQQDAgNHADBEAiB6L+t5bzRrBPhiQYNeA7fF\nUCuLWrdjW4Xbv3SLg0IKMgIgfRC5hEx+DqzQxTCP4sexX3hVWMjKoWmHdwiUcg+K\n/IE=\n-----END CERTIFICATE-----\n"
|
2023-10-24 16:23:27 +00:00
|
|
|
},
|
2024-01-29 20:08:31 +00:00
|
|
|
"privateKey": {
|
|
|
|
"inlineString": "-----BEGIN EC PRIVATE KEY-----\nMHcCAQEEIFIFkTIL1iUV4O/RpveVHzHs7ZzhSkvYIzbdXDttz9EooAoGCCqGSM49\nAwEHoUQDQgAErErAIosDPheZQGbxFQ4hYC/e9Fi4MG9z/zjfCnCq/oK9ta/bGT+5\norZqTmdN/ICsKQDhykxZ2u/Xr6845zhcJQ==\n-----END EC PRIVATE KEY-----\n"
|
2023-10-24 16:23:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2024-01-29 20:08:31 +00:00
|
|
|
"validationContext": {
|
|
|
|
"trustedCa": {
|
|
|
|
"inlineString": "some-root\nsome-other-root\n"
|
2023-10-24 16:23:27 +00:00
|
|
|
},
|
2024-01-29 20:08:31 +00:00
|
|
|
"matchTypedSubjectAltNames": [
|
2023-10-24 16:23:27 +00:00
|
|
|
{
|
2024-01-29 20:08:31 +00:00
|
|
|
"sanType": "URI",
|
|
|
|
"matcher": {
|
|
|
|
"exact": "spiffe://foo.consul/ap/default/ns/default/identity/api1-identity"
|
2023-12-22 18:34:44 +00:00
|
|
|
}
|
2023-10-24 16:23:27 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2024-01-29 20:08:31 +00:00
|
|
|
"alpnProtocols": [
|
2023-10-24 16:23:27 +00:00
|
|
|
"consul~tcp"
|
|
|
|
]
|
|
|
|
},
|
2024-01-29 20:08:31 +00:00
|
|
|
"sni": "api-1.default.dc1.internal.foo.consul"
|
2023-10-24 16:23:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2024-01-29 20:08:31 +00:00
|
|
|
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster",
|
|
|
|
"name": "tcp.api-2.default.dc1.internal.foo.consul",
|
|
|
|
"type": "EDS",
|
|
|
|
"edsClusterConfig": {
|
|
|
|
"edsConfig": {
|
|
|
|
"ads": {},
|
|
|
|
"resourceApiVersion": "V3"
|
2023-10-24 16:23:27 +00:00
|
|
|
}
|
|
|
|
},
|
2024-01-29 20:08:31 +00:00
|
|
|
"connectTimeout": "5s",
|
|
|
|
"commonLbConfig": {
|
|
|
|
"healthyPanicThreshold": {}
|
2023-10-24 16:23:27 +00:00
|
|
|
},
|
2024-01-29 20:08:31 +00:00
|
|
|
"transportSocket": {
|
|
|
|
"name": "tls",
|
|
|
|
"typedConfig": {
|
|
|
|
"@type": "type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext",
|
|
|
|
"commonTlsContext": {
|
|
|
|
"tlsParams": {},
|
|
|
|
"tlsCertificates": [
|
2023-10-24 16:23:27 +00:00
|
|
|
{
|
2024-01-29 20:08:31 +00:00
|
|
|
"certificateChain": {
|
|
|
|
"inlineString": "-----BEGIN CERTIFICATE-----\nMIICDjCCAbWgAwIBAgIBAjAKBggqhkjOPQQDAjAUMRIwEAYDVQQDEwlUZXN0IENB\nIDEwHhcNMjMxMDE2MTYxMzI5WhcNMjMxMDE2MTYyMzI5WjAAMFkwEwYHKoZIzj0C\nAQYIKoZIzj0DAQcDQgAErErAIosDPheZQGbxFQ4hYC/e9Fi4MG9z/zjfCnCq/oK9\nta/bGT+5orZqTmdN/ICsKQDhykxZ2u/Xr6845zhcJaOCAQowggEGMA4GA1UdDwEB\n/wQEAwIDuDAdBgNVHSUEFjAUBggrBgEFBQcDAgYIKwYBBQUHAwEwDAYDVR0TAQH/\nBAIwADApBgNVHQ4EIgQg3ogXVz9cqaK2B6xdiJYMa5NtT0KkYv7BA2dR7h9EcwUw\nKwYDVR0jBCQwIoAgq+C1mPlPoGa4lt7sSft1goN5qPGyBIB/3mUHJZKSFY8wbwYD\nVR0RAQH/BGUwY4Zhc3BpZmZlOi8vMTExMTExMTEtMjIyMi0zMzMzLTQ0NDQtNTU1\nNTU1NTU1NTU1LmNvbnN1bC9hcC9kZWZhdWx0L25zL2RlZmF1bHQvaWRlbnRpdHkv\ndGVzdC1pZGVudGl0eTAKBggqhkjOPQQDAgNHADBEAiB6L+t5bzRrBPhiQYNeA7fF\nUCuLWrdjW4Xbv3SLg0IKMgIgfRC5hEx+DqzQxTCP4sexX3hVWMjKoWmHdwiUcg+K\n/IE=\n-----END CERTIFICATE-----\n"
|
2023-10-24 16:23:27 +00:00
|
|
|
},
|
2024-01-29 20:08:31 +00:00
|
|
|
"privateKey": {
|
|
|
|
"inlineString": "-----BEGIN EC PRIVATE KEY-----\nMHcCAQEEIFIFkTIL1iUV4O/RpveVHzHs7ZzhSkvYIzbdXDttz9EooAoGCCqGSM49\nAwEHoUQDQgAErErAIosDPheZQGbxFQ4hYC/e9Fi4MG9z/zjfCnCq/oK9ta/bGT+5\norZqTmdN/ICsKQDhykxZ2u/Xr6845zhcJQ==\n-----END EC PRIVATE KEY-----\n"
|
2023-10-24 16:23:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2024-01-29 20:08:31 +00:00
|
|
|
"validationContext": {
|
|
|
|
"trustedCa": {
|
|
|
|
"inlineString": "some-root\nsome-other-root\n"
|
2023-10-24 16:23:27 +00:00
|
|
|
},
|
2024-01-29 20:08:31 +00:00
|
|
|
"matchTypedSubjectAltNames": [
|
2023-10-24 16:23:27 +00:00
|
|
|
{
|
2024-01-29 20:08:31 +00:00
|
|
|
"sanType": "URI",
|
|
|
|
"matcher": {
|
|
|
|
"exact": "spiffe://foo.consul/ap/default/ns/default/identity/api2-identity"
|
2023-12-22 18:34:44 +00:00
|
|
|
}
|
2023-10-24 16:23:27 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2024-01-29 20:08:31 +00:00
|
|
|
"alpnProtocols": [
|
2023-10-24 16:23:27 +00:00
|
|
|
"consul~tcp"
|
|
|
|
]
|
|
|
|
},
|
2024-01-29 20:08:31 +00:00
|
|
|
"sni": "api-2.default.dc1.internal.foo.consul"
|
2023-10-24 16:23:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2024-01-29 20:08:31 +00:00
|
|
|
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster",
|
|
|
|
"name": "tcp2.api-1.default.dc1.internal.foo.consul",
|
|
|
|
"type": "EDS",
|
|
|
|
"edsClusterConfig": {
|
|
|
|
"edsConfig": {
|
|
|
|
"ads": {},
|
|
|
|
"resourceApiVersion": "V3"
|
2023-10-24 16:23:27 +00:00
|
|
|
}
|
|
|
|
},
|
2024-01-29 20:08:31 +00:00
|
|
|
"connectTimeout": "5s",
|
|
|
|
"commonLbConfig": {
|
|
|
|
"healthyPanicThreshold": {}
|
2023-10-24 16:23:27 +00:00
|
|
|
},
|
2024-01-29 20:08:31 +00:00
|
|
|
"transportSocket": {
|
|
|
|
"name": "tls",
|
|
|
|
"typedConfig": {
|
|
|
|
"@type": "type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext",
|
|
|
|
"commonTlsContext": {
|
|
|
|
"tlsParams": {},
|
|
|
|
"tlsCertificates": [
|
2023-10-24 16:23:27 +00:00
|
|
|
{
|
2024-01-29 20:08:31 +00:00
|
|
|
"certificateChain": {
|
|
|
|
"inlineString": "-----BEGIN CERTIFICATE-----\nMIICDjCCAbWgAwIBAgIBAjAKBggqhkjOPQQDAjAUMRIwEAYDVQQDEwlUZXN0IENB\nIDEwHhcNMjMxMDE2MTYxMzI5WhcNMjMxMDE2MTYyMzI5WjAAMFkwEwYHKoZIzj0C\nAQYIKoZIzj0DAQcDQgAErErAIosDPheZQGbxFQ4hYC/e9Fi4MG9z/zjfCnCq/oK9\nta/bGT+5orZqTmdN/ICsKQDhykxZ2u/Xr6845zhcJaOCAQowggEGMA4GA1UdDwEB\n/wQEAwIDuDAdBgNVHSUEFjAUBggrBgEFBQcDAgYIKwYBBQUHAwEwDAYDVR0TAQH/\nBAIwADApBgNVHQ4EIgQg3ogXVz9cqaK2B6xdiJYMa5NtT0KkYv7BA2dR7h9EcwUw\nKwYDVR0jBCQwIoAgq+C1mPlPoGa4lt7sSft1goN5qPGyBIB/3mUHJZKSFY8wbwYD\nVR0RAQH/BGUwY4Zhc3BpZmZlOi8vMTExMTExMTEtMjIyMi0zMzMzLTQ0NDQtNTU1\nNTU1NTU1NTU1LmNvbnN1bC9hcC9kZWZhdWx0L25zL2RlZmF1bHQvaWRlbnRpdHkv\ndGVzdC1pZGVudGl0eTAKBggqhkjOPQQDAgNHADBEAiB6L+t5bzRrBPhiQYNeA7fF\nUCuLWrdjW4Xbv3SLg0IKMgIgfRC5hEx+DqzQxTCP4sexX3hVWMjKoWmHdwiUcg+K\n/IE=\n-----END CERTIFICATE-----\n"
|
2023-10-24 16:23:27 +00:00
|
|
|
},
|
2024-01-29 20:08:31 +00:00
|
|
|
"privateKey": {
|
|
|
|
"inlineString": "-----BEGIN EC PRIVATE KEY-----\nMHcCAQEEIFIFkTIL1iUV4O/RpveVHzHs7ZzhSkvYIzbdXDttz9EooAoGCCqGSM49\nAwEHoUQDQgAErErAIosDPheZQGbxFQ4hYC/e9Fi4MG9z/zjfCnCq/oK9ta/bGT+5\norZqTmdN/ICsKQDhykxZ2u/Xr6845zhcJQ==\n-----END EC PRIVATE KEY-----\n"
|
2023-10-24 16:23:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2024-01-29 20:08:31 +00:00
|
|
|
"validationContext": {
|
|
|
|
"trustedCa": {
|
|
|
|
"inlineString": "some-root\nsome-other-root\n"
|
2023-10-24 16:23:27 +00:00
|
|
|
},
|
2024-01-29 20:08:31 +00:00
|
|
|
"matchTypedSubjectAltNames": [
|
2023-10-24 16:23:27 +00:00
|
|
|
{
|
2024-01-29 20:08:31 +00:00
|
|
|
"sanType": "URI",
|
|
|
|
"matcher": {
|
|
|
|
"exact": "spiffe://foo.consul/ap/default/ns/default/identity/api1-identity"
|
2023-12-22 18:34:44 +00:00
|
|
|
}
|
2023-10-24 16:23:27 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2024-01-29 20:08:31 +00:00
|
|
|
"alpnProtocols": [
|
2023-10-24 16:23:27 +00:00
|
|
|
"consul~tcp2"
|
|
|
|
]
|
|
|
|
},
|
2024-01-29 20:08:31 +00:00
|
|
|
"sni": "api-1.default.dc1.internal.foo.consul"
|
2023-10-24 16:23:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2024-01-29 20:08:31 +00:00
|
|
|
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster",
|
|
|
|
"name": "tcp2.api-2.default.dc1.internal.foo.consul",
|
|
|
|
"type": "EDS",
|
|
|
|
"edsClusterConfig": {
|
|
|
|
"edsConfig": {
|
|
|
|
"ads": {},
|
|
|
|
"resourceApiVersion": "V3"
|
2023-10-24 16:23:27 +00:00
|
|
|
}
|
|
|
|
},
|
2024-01-29 20:08:31 +00:00
|
|
|
"connectTimeout": "5s",
|
|
|
|
"commonLbConfig": {
|
|
|
|
"healthyPanicThreshold": {}
|
2023-10-24 16:23:27 +00:00
|
|
|
},
|
2024-01-29 20:08:31 +00:00
|
|
|
"transportSocket": {
|
|
|
|
"name": "tls",
|
|
|
|
"typedConfig": {
|
|
|
|
"@type": "type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext",
|
|
|
|
"commonTlsContext": {
|
|
|
|
"tlsParams": {},
|
|
|
|
"tlsCertificates": [
|
2023-10-24 16:23:27 +00:00
|
|
|
{
|
2024-01-29 20:08:31 +00:00
|
|
|
"certificateChain": {
|
|
|
|
"inlineString": "-----BEGIN CERTIFICATE-----\nMIICDjCCAbWgAwIBAgIBAjAKBggqhkjOPQQDAjAUMRIwEAYDVQQDEwlUZXN0IENB\nIDEwHhcNMjMxMDE2MTYxMzI5WhcNMjMxMDE2MTYyMzI5WjAAMFkwEwYHKoZIzj0C\nAQYIKoZIzj0DAQcDQgAErErAIosDPheZQGbxFQ4hYC/e9Fi4MG9z/zjfCnCq/oK9\nta/bGT+5orZqTmdN/ICsKQDhykxZ2u/Xr6845zhcJaOCAQowggEGMA4GA1UdDwEB\n/wQEAwIDuDAdBgNVHSUEFjAUBggrBgEFBQcDAgYIKwYBBQUHAwEwDAYDVR0TAQH/\nBAIwADApBgNVHQ4EIgQg3ogXVz9cqaK2B6xdiJYMa5NtT0KkYv7BA2dR7h9EcwUw\nKwYDVR0jBCQwIoAgq+C1mPlPoGa4lt7sSft1goN5qPGyBIB/3mUHJZKSFY8wbwYD\nVR0RAQH/BGUwY4Zhc3BpZmZlOi8vMTExMTExMTEtMjIyMi0zMzMzLTQ0NDQtNTU1\nNTU1NTU1NTU1LmNvbnN1bC9hcC9kZWZhdWx0L25zL2RlZmF1bHQvaWRlbnRpdHkv\ndGVzdC1pZGVudGl0eTAKBggqhkjOPQQDAgNHADBEAiB6L+t5bzRrBPhiQYNeA7fF\nUCuLWrdjW4Xbv3SLg0IKMgIgfRC5hEx+DqzQxTCP4sexX3hVWMjKoWmHdwiUcg+K\n/IE=\n-----END CERTIFICATE-----\n"
|
2023-10-24 16:23:27 +00:00
|
|
|
},
|
2024-01-29 20:08:31 +00:00
|
|
|
"privateKey": {
|
|
|
|
"inlineString": "-----BEGIN EC PRIVATE KEY-----\nMHcCAQEEIFIFkTIL1iUV4O/RpveVHzHs7ZzhSkvYIzbdXDttz9EooAoGCCqGSM49\nAwEHoUQDQgAErErAIosDPheZQGbxFQ4hYC/e9Fi4MG9z/zjfCnCq/oK9ta/bGT+5\norZqTmdN/ICsKQDhykxZ2u/Xr6845zhcJQ==\n-----END EC PRIVATE KEY-----\n"
|
2023-10-24 16:23:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2024-01-29 20:08:31 +00:00
|
|
|
"validationContext": {
|
|
|
|
"trustedCa": {
|
|
|
|
"inlineString": "some-root\nsome-other-root\n"
|
2023-10-24 16:23:27 +00:00
|
|
|
},
|
2024-01-29 20:08:31 +00:00
|
|
|
"matchTypedSubjectAltNames": [
|
2023-10-24 16:23:27 +00:00
|
|
|
{
|
2024-01-29 20:08:31 +00:00
|
|
|
"sanType": "URI",
|
|
|
|
"matcher": {
|
|
|
|
"exact": "spiffe://foo.consul/ap/default/ns/default/identity/api2-identity"
|
2023-12-22 18:34:44 +00:00
|
|
|
}
|
2023-10-24 16:23:27 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2024-01-29 20:08:31 +00:00
|
|
|
"alpnProtocols": [
|
2023-10-24 16:23:27 +00:00
|
|
|
"consul~tcp2"
|
|
|
|
]
|
|
|
|
},
|
2024-01-29 20:08:31 +00:00
|
|
|
"sni": "api-2.default.dc1.internal.foo.consul"
|
2023-10-24 16:23:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2024-01-29 20:08:31 +00:00
|
|
|
"typeUrl": "type.googleapis.com/envoy.config.cluster.v3.Cluster",
|
|
|
|
"nonce": "00000001"
|
2023-10-24 16:23:27 +00:00
|
|
|
}
|