static_resources: listeners: - name: postgres_listener address: socket_address: address: 0.0.0.0 port_value: 5432 listener_filters: - name: "envoy.filters.listener.tls_inspector" typed_config: {} filter_chains: - filters: - name: envoy.filters.network.postgres_proxy typed_config: "@type": type.googleapis.com/envoy.extensions.filters.network.postgres_proxy.v3alpha.PostgresProxy stat_prefix: egress_postgres - name: envoy.filters.network.tcp_proxy typed_config: "@type": type.googleapis.com/envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy stat_prefix: postgres_tcp cluster: postgres_cluster transport_socket: name: envoy.transport_sockets.tls typed_config: "@type": type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.DownstreamTlsContext require_client_certificate: true common_tls_context: tls_certificates: certificate_chain: filename: certs/servercert.pem private_key: filename: certs/serverkey.pem validation_context: match_subject_alt_names: - exact: proxy-postgres-frontend.example.com trusted_ca: filename: certs/cacert.pem clusters: - name: postgres_cluster connect_timeout: 1s type: strict_dns load_assignment: cluster_name: postgres_cluster endpoints: - lb_endpoints: - endpoint: address: socket_address: address: postgres port_value: 5432