Documentation
¶
Overview ¶
Package envoy_validate provides functions to build representative Envoy bootstrap JSON configurations derived from the aether node-agent's actual xDS proxy builders. The resulting configs are validated with "envoy --mode validate" in the test to catch structural regressions before production.
Three scenarios are modelled:
- Node proxy – per-pod inbound (mTLS) + outbound HTTP listener, ORIGINAL_DST passthrough cluster, per-pod app cluster, EDS service cluster with SPIRE mTLS.
- Capture – transparent-capture listener, HTTP + TCP service clusters, passthrough chain.
- Edge – service EDS cluster with direct-to-SPIRE SDS, spire_agent static cluster.
Custom extensions (aether_stats) that require the custom Envoy binary are stripped before serialisation so that stock Envoy can validate the structural correctness of the config.
Index ¶
- Constants
- func CaptureBootstrapJSON() ([]byte, error)
- func CapturePerPortBootstrapJSON() ([]byte, error)
- func CaptureRouteTargetBootstrapJSON() ([]byte, error)
- func CaptureTCPChainsWithoutL4AccessLog(bootstrapJSON []byte) ([]string, int, error)
- func CaptureTCPRouteBootstrapJSON() ([]byte, error)
- func CaptureTLSRouteBootstrapJSON() ([]byte, error)
- func CaptureUDPBootstrapJSON() ([]byte, error)
- func ClustersBootstrapJSON(clusters []*clusterv3.Cluster) ([]byte, error)
- func ClustersSharingServiceEDSName(bootstrapJSON []byte) ([]string, error)
- func EdgeBootstrapJSON() ([]byte, error)
- func H2MeshClusters(bootstrapJSON []byte) (map[string]string, error)
- func L4StatKeyViolations(bootstrapJSON []byte) ([]string, int, error)
- func L4TCPBackendClusterA() string
- func L4TCPBackendClusterB() string
- func L4TLSBackendClusterA() string
- func L4TLSBackendClusterB() string
- func L4TLSParentFloorCluster() string
- func L4UDPBackendClusterA() string
- func L4UDPBackendClusterB() string
- func ListenersNamingRetiredSourceKey(bootstrapJSON []byte) ([]string, int, error)
- func MeshClusterPins(bootstrapJSON []byte) (pinned, unpinned []string, err error)
- func NodeBootstrapJSON() ([]byte, error)
- func NodeCleartextBootstrapJSON() ([]byte, error)
- func NodeUDSBootstrapJSON() ([]byte, error)
- func OutboundZeroVhostRouteBootstrapJSON() ([]byte, error)
- func PerPortHTTPPorts() []uint32
- func PerPortRouteTable(port uint32) *routev3.RouteConfiguration
- func ProxyPortRouteTable() *routev3.RouteConfiguration
- func QUICChainsWithoutR4(bootstrapJSON []byte) ([]string, error)
- func QUICOutboundArms() map[string]string
- func QUICOutboundBootstrapJSON() ([]byte, error)
- func QUICOutboundUnobservedArms() map[string]string
- func QUICUpstreamsPoolingPerDownstream(bootstrapJSON []byte) ([]string, error)
- func QUICUpstreamsSharingEDSName(bootstrapJSON []byte) ([]string, error)
- func QUICUpstreamsSharingStatsKey(bootstrapJSON []byte) ([]string, error)
- func QUICUpstreamsWithPortSNI(bootstrapJSON []byte) ([]string, error)
- func QUICUpstreamsWithSessionCache(bootstrapJSON []byte) ([]string, error)
- func UnpinnedInboundChains(bootstrapJSON []byte) ([]string, error)
- func UnpinnedMeshClusters(bootstrapJSON []byte) ([]string, error)
- type AccessLogFormat
- type HCMIdleTimeout
- type PerPortService
Constants ¶
const ( // L4UDPParentClusterIPA/B are the UDPRoute parents' VIPs: the matcher keys. L4UDPParentClusterIPA = "10.96.2.40" L4UDPParentClusterIPB = "10.96.2.41" // L4TCPParentClusterIP and L4TLSParentClusterIP are the parent Services' // ClusterIPs: the /32 every chain of that leg matches on. L4TCPParentClusterIP = "10.96.2.20" L4TLSParentClusterIP = "10.96.2.30" // L4TCPWeightA and L4TCPWeightB are the TCPRoute fixture's backendRef // weights. Deliberately unequal and not co-prime with each other's sum, so // a builder that normalised or swapped them would be visible. L4TCPWeightA = 75 L4TCPWeightB = 25 // L4TCPBackendPort is a raw-TCP port backend A serves beside its floor, // giving the fixture a port-qualified tcp: cluster (aether#1023 stat keys). L4TCPBackendPort = 9000 // L4SNIAlpha and L4SNIBravo are the TLSRoute fixture's two hostnames — one // TLSRoute object each, because TLSRoute.Spec.Hostnames is route-level. L4SNIAlpha = "a.l4.test" L4SNIBravo = "b.l4.test" // L4UDPBackendPort is the backend's APPLICATION UDP port. The UDP floor has // no inbound mTLS hop, so udp_proxy dials this port directly. L4UDPBackendPort = 9001 )
const RetiredSourceIdentityKey = "aether.source.spiffe_id"
RetiredSourceIdentityKey is the pre-#842 source-identity filter-state key, retired in #1165. Production no longer names it anywhere; it is spelled here only so ListenersNamingRetiredSourceKey has something to look for.
Variables ¶
This section is empty.
Functions ¶
func CaptureBootstrapJSON ¶
CaptureBootstrapJSON builds the transparent-capture bootstrap config and returns its JSON representation.
func CapturePerPortBootstrapJSON ¶
CapturePerPortBootstrapJSON builds the per-port capture bootstrap: the real per-pod capture listener for the fixture, and one loopback listener per route table that serves that table inline, so the proxy validates the tables themselves (the capture listener's own chains fetch theirs over RDS).
func CaptureRouteTargetBootstrapJSON ¶
CaptureRouteTargetBootstrapJSON builds a bootstrap whose listener inlines the cap_http RouteConfiguration for a GAMMA route TARGET addressed on its REAL Service port (proposal 023 M2): the vhost carries "<svc>.<ns>.svc.cluster.local:<realPort>" domains and the GAMMA rules route to SA-backed backend clusters. Validating it through "envoy --mode validate" proves the M2 route table (real-port domains + path-based GAMMA action) is structurally accepted, complementing the Go-level captureVhosts unit test.
func CaptureTCPChainsWithoutL4AccessLog ¶
CaptureTCPChainsWithoutL4AccessLog returns every filter chain on a capture listener ("capture_*") whose tcp_proxy carries no access logger on the L4 stream (proxy.L4AccessLogName, aether#1023), plus how many such chains it examined. The passthrough default_filter_chain is deliberately not examined: it is all non-mesh egress and is not logged.
func CaptureTCPRouteBootstrapJSON ¶
CaptureTCPRouteBootstrapJSON builds a capture bootstrap whose per-ClusterIP floor chain is a TCPRoute-weighted tcp_proxy (proposal 018 Phase 3b) over two backends, 75/25.
The weighted form is what a TCPRoute produces and what the floor chain never carries without one, so this is the only place in the harness where Envoy parses a TcpProxy_WeightedClusters at all.
func CaptureTLSRouteBootstrapJSON ¶
CaptureTLSRouteBootstrapJSON builds a capture bootstrap carrying two TLSRoute SNI chains ALONGSIDE the parent's TCP floor chain on one listener.
The three chains all match prefix_ranges <ClusterIP>/32; two of them add server_names and one does not. Envoy resolves that by specificity — SNI match wins, no SNI match falls through to the floor — and rejects filter chains it cannot disambiguate, so `--mode validate` accepting this listener is the structural half of the fall-through behaviour #868 asks for.
func CaptureUDPBootstrapJSON ¶
CaptureUDPBootstrapJSON builds the transparent, connection-less UDP capture listener on the L4 mesh port plus the plaintext "udp:" clusters it routes to (proposal 018 Phase 3b, transparent capture per proposal 038).
SCOPE: delivery AND selection. Two UDPRoute parents, two VIPs, two backends: the listener must carry one matcher arm per parent, keyed on the dialled VIP (DestinationIPInput reads the ORIGINAL destination because the CNI divert leaves the header intact). What the generator chooses AMONG a parent's backends (drained ones skipped, then the heaviest) is covered by unit tests in agent/internal/xds/proxy; a traffic SPLIT is not expressible (#873).
func ClustersBootstrapJSON ¶
ClustersBootstrapJSON wraps clusters as the static resources of a bootstrap, in the same form the builders above produce, so clusters taken from somewhere else (a snapshot the xDS cache generated) can be put through UnpinnedMeshClusters and MeshClusterPins unchanged.
func ClustersSharingServiceEDSName ¶
ClustersSharingServiceEDSName returns the name of every EDS cluster that does not subscribe to an EDS resource of its own (aether#842 SDS, #1008 QUIC twins, #1013 port aliases and TCP floors). Envoy's delta-ADS WatchMap deduplicates subscription interest per (type_url, resource name), so a cluster that shares a name with an already-subscribed sibling and arrives in a LATER CDS update sends no subscribe and warms for the full initial_fetch_timeout.
The one cluster allowed to subscribe to a name other than its own is a service's DEFAULT cluster: <svc>.<ns>.<domain> on the bare "<ns>/<svc>" key (proxy.ServiceClusterName). Every other kind -- per-port, port alias "<fqdn>:<port>", TCP floor "tcp:<fqdn>" and its per-port/primary-alias "tcp:<fqdn>:<port>", QUIC twin "quic:..." -- must subscribe to its own cluster name, and the agent publishes the matching load assignment under it (proxy.LoadAssignmentAlias for the ones that mirror the bare membership). A name with more than one subscriber is reported for every subscriber.
func EdgeBootstrapJSON ¶
EdgeBootstrapJSON builds the edge proxy bootstrap config and returns its JSON representation.
func H2MeshClusters ¶
H2MeshClusters returns, for a generated bootstrap, the name of every h2 MESH cluster -- one whose upstream speaks explicit HTTP/2 AND carries an upstream TLS context (the mesh mTLS shape; the app, authz, xDS, collector and SPIRE clusters have none and are out of scope automatically) -- mapped to a description of what is wrong with its HTTP/2 PING liveness (aether#1104), or "" when it carries exactly config.MeshH2Keepalive.
Scope is structural, never an allow-list, like UnpinnedMeshClusters: a new h2 mesh cluster added to any builder is in scope the moment it grows TLS.
func L4StatKeyViolations ¶
L4StatKeyViolations returns every L4 cluster ("tcp:"/"udp:") whose stats key is not its own kind-prefixed key (aether#1023) -- tcp_<ns>/<svc> for a TCP floor, tcp_<ns>/<svc>_<port> for a port-qualified TCP cluster, udp_<ns>/<svc> for a UDP floor -- or is shared with any other cluster in the bootstrap, plus how many L4 clusters it examined so a caller can refuse a vacuous pass.
The expected key is derived from the cluster NAME, not from the builder that set it, so a builder that collapses a cluster back onto the bare service key (the pre-#1023 shape, which merged every L4 kind with the HTTP cluster's aether_cluster series) is reported however it got there.
func L4TCPBackendClusterA ¶
func L4TCPBackendClusterA() string
L4TCPBackendClusterA and friends are the data-plane cluster names the L4 fixtures reference, exported so the test asserts on the names the builders actually emitted rather than re-deriving them from a second copy of the naming rule.
func L4TCPBackendClusterB ¶
func L4TCPBackendClusterB() string
L4TCPBackendClusterB is the second TCPRoute backend's TCP floor cluster.
func L4TLSBackendClusterA ¶
func L4TLSBackendClusterA() string
L4TLSBackendClusterA is the a.l4.test SNI chain's backend cluster.
func L4TLSBackendClusterB ¶
func L4TLSBackendClusterB() string
L4TLSBackendClusterB is the b.l4.test SNI chain's backend cluster.
func L4TLSParentFloorCluster ¶
func L4TLSParentFloorCluster() string
L4TLSParentFloorCluster is the TLS parent's own TCP floor cluster: where a connection whose SNI matches no TLSRoute deliberately lands.
func L4UDPBackendClusterA ¶
func L4UDPBackendClusterA() string
L4UDPBackendClusterA is parent A's backend's plaintext UDP cluster.
func L4UDPBackendClusterB ¶
func L4UDPBackendClusterB() string
L4UDPBackendClusterB is parent B's backend's plaintext UDP cluster.
func ListenersNamingRetiredSourceKey ¶
ListenersNamingRetiredSourceKey returns every listener in the bootstrap whose serialised form still mentions RetiredSourceIdentityKey (issue #1165), plus how many listeners it checked.
It searches a listener's WHOLE protojson rendering rather than only its set_filter_state entries, so the three places the key used to live -- the per-chain stamp, the access-log attribute that read it, and the QUIC selection matcher's FilterStateInput on an inline route -- are covered by one check, and so is any reader added later. Envoy accepts a stamp nothing reads and a reader nothing stamps alike, so `--mode validate` passing says nothing about either.
func MeshClusterPins ¶
MeshClusterPins sorts the clusters of a generated bootstrap that carry an upstream TLS context into those whose every context is SAN-pinned and those with at least one that is not, by cluster name. A cluster with no upstream TLS context is in neither list.
It is UnpinnedMeshClusters' definition, read per cluster and with the pinned side kept: both run on one walk (walkUpstreamTLS), so they cannot disagree. The agent's runtime report (the xDS cache's pin report, #1424/#1425) is held to this answer by a test in that package, which is what keeps the build-time gate and the runtime signal from drifting apart again (#1393).
func NodeBootstrapJSON ¶
NodeBootstrapJSON builds the core node-proxy bootstrap config and returns its JSON representation (after stripping custom extensions).
func NodeCleartextBootstrapJSON ¶
NodeCleartextBootstrapJSON builds the SPIRE-off (cleartext) node-proxy bootstrap and returns its JSON. It exercises the cleartext inbound listener — a single default HCM chain with no downstream mTLS transport socket — so the offline `envoy --mode validate` gate covers the MESH-HTTP-on-kind path, not just mTLS.
func NodeUDSBootstrapJSON ¶
NodeUDSBootstrapJSON builds the UDS-delivery (proposal 034 Phase 1) node-proxy bootstrap and returns its JSON. It exercises the pipe app clusters (one per declared port, all dialing the same socket, no upstream bind config) and the HTTP/1.1 active health check over a pipe upstream, so stock Envoy proves the pipe delivery config is accepted.
func OutboundZeroVhostRouteBootstrapJSON ¶
OutboundZeroVhostRouteBootstrapJSON builds a bootstrap whose listener inlines the out_http RouteConfiguration the agent publishes when it has NOTHING to publish — zero service virtual hosts, i.e. the local-only start of issue #817.
That table used not to be emitted at all, which under delta ADS meant the egress listener's RDS subscription was answered with silence, warmed out, and went active with no routes (404 NR route_not_found on everything). It is now unconditional, so what a real Envoy has to accept is a RouteConfiguration consisting of the on-demand catch-all and nothing else: the liveness direct-response, the mesh-authority safe_regex → cluster_header ODCDS route, and the hard 404 fallthrough. Inlining it as a static route_config is the only way this offline gate can see an RDS-delivered table at all.
func PerPortHTTPPorts ¶
func PerPortHTTPPorts() []uint32
PerPortHTTPPorts is the HTTP port set of the fixture's mesh: every port a service declares as HTTP, and the two legacy numbers.
func PerPortRouteTable ¶
func PerPortRouteTable(port uint32) *routev3.RouteConfiguration
PerPortRouteTable builds the fixture's capture route table of dialled port port (0 for cap_http_other) with the agent's own virtual-host builders, in the shape cache.appendNameVhosts gives it. The proxy port's is the loopback-shaped table (ProxyPortRouteTable).
func ProxyPortRouteTable ¶
func ProxyPortRouteTable() *routev3.RouteConfiguration
ProxyPortRouteTable builds the fixture's table of the mesh's HTTP proxy port, cap_http_18081, as the agent does (proxy.BuildProxyPortCaptureRouteConfiguration over the loopback table's virtual hosts): the mesh name alone, by the port in Host (a port-less Host is port 80, or refused when the service has no port 80), with its short names and its own floor. Since chart 3.0.2 it is compiled into cap_http as one more dialled port; until then a chain of its own served it.
func QUICChainsWithoutR4 ¶
QUICChainsWithoutR4 returns "<listener>/<chain>" for every filter chain in a generated bootstrap whose QuicDownstreamTransport REQUIRES a client certificate but does not EXPLICITLY set enable_resumption: false and enable_early_data: false (proposal 038 R4).
Explicit, not merely unset: an absent field takes whatever the current default is. A resumed session never re-verifies the client certificate and 0-RTT data arrives before the certificate is validated at all -- both the #829/#831 shape, a peer identity the destination never checked, on a transport with no per-connection re-handshake to fall back on. envoyproxy/envoy#47219 made resumption off by default and the pin carries it; the gate asks for the field anyway, because defaults move and Envoy ACCEPTS the unset form. A shape assertion over the bytes.
Scope is structural: a QUIC chain is checked precisely when it requires a client certificate. The edge's HTTP/3 listener does not (external callers have no mesh identity), so it is out of scope automatically.
func QUICOutboundArms ¶
QUICOutboundArms is the (source SPIFFE ID -> quic: cluster) map the fixture route carries; exported so the test asserts on what the builder emitted.
func QUICOutboundBootstrapJSON ¶
QUICOutboundBootstrapJSON builds the outbound half of proposal 038 Phase 4b for the pinned proxy to accept or reject: one source listener whose chain stamps the source identity into filter state (BuildSourceFilterStates), an inline route whose default route selects by that identity through the matcher cluster specifier (proxy.ApplyQUICClusterSelection), the h2 mesh cluster it falls back to, and the source's `quic:` twin (proxy.QUICClusterFrom): HTTP/3 protocol options + a QuicUpstreamTransport naming the source SVID, pinning the destination SAN, MaxSessionKeys 0.
`envoy --mode validate` proves four things at once here that nothing else can: the matcher cluster specifier plugin is compiled in and loads, the envoy.matching.inputs.filter_state input is accepted for HTTP matching data, a QUIC upstream transport with explicit HTTP/3 options is accepted on an EDS cluster, and the ClusterAction names resolve.
func QUICOutboundUnobservedArms ¶
QUICOutboundUnobservedArms is the arm the fixture route carries for a local source whose (source, destination) pair has not been observed (aether#1020): it names a twin the fixture deliberately does NOT build.
func QUICUpstreamsPoolingPerDownstream ¶
QUICUpstreamsPoolingPerDownstream returns the name of every `quic:` cluster that sets connection_pool_per_downstream_connection (aether#1021). A twin carries ONE identity, so the option buys no isolation and only multiplies upstream QUIC connections by the number of downstream (app -> proxy) connections: //agent/test/mtlspool's TestQUICTwinUpstreamConnections measured 12 QUIC connections for 12 downstream connections with it on, 1 with it off.
func QUICUpstreamsSharingEDSName ¶
QUICUpstreamsSharingEDSName returns the name of every `quic:` cluster whose EDS resource name (eds_cluster_config.service_name, or the cluster name when unset) equals another cluster's in the same bootstrap (aether#1008). Envoy's delta-ADS WatchMap deduplicates subscriptions per resource name, so a twin that shares its base's EDS name and arrives after the base is subscribed never sends a subscribe and warms for the full initial_fetch_timeout. A twin must subscribe to its own name (proxy.QUICClusterFrom) and the agent publishes the base's load assignment under it (proxy.LoadAssignmentAlias).
func QUICUpstreamsSharingStatsKey ¶
QUICUpstreamsSharingStatsKey returns the name of every `quic:` cluster whose stats key (alt_stat_name, or the name when unset) equals another cluster's stats key in the same bootstrap (aether#960): a twin that reports into the h2 cluster's tree makes HTTP/3 -- and a wrong-arm selection -- invisible.
func QUICUpstreamsWithPortSNI ¶
QUICUpstreamsWithPortSNI returns the name of every cluster whose QuicUpstreamTransport carries an SNI that is not a hostname under the mesh domain (a bare port, empty, or foreign). Envoy's QUIC client verifies the leaf against the SNI as a DNS name after the SAN pin (aether#957), so a `quic:` cluster with the h2 path's "<port>" SNI can never complete a handshake: the SNI must be proxy.QUICServerName's "<port>.<authority>".
func QUICUpstreamsWithSessionCache ¶
QUICUpstreamsWithSessionCache returns the name of every cluster whose QuicUpstreamTransport does not EXPLICITLY set max_session_keys: 0 (proposal 038 R4, client side). QuicUpstreamTransport has no enable_resumption; the client-side session cache is what MaxSessionKeys disables, and Envoy accepts the unset form. Same shape assertion as QUICChainsWithoutR4.
func UnpinnedInboundChains ¶
UnpinnedInboundChains returns "<listener>/<chain>" for every filter chain in a generated bootstrap whose DownstreamTlsContext requires a client certificate but carries NO match_typed_subject_alt_names (issue #843).
require_client_certificate on its own proves only that SOME certificate this trust bundle signs was presented — any mesh workload, and anything else the bundle happens to sign. The inbound HCM then stamps that certificate's URI SAN into XFCC with SANITIZE_SET, and RBAC/ext_authz decisions key on it, so an unpinned inbound socket silently weakens every XFCC-derived rule.
`envoy --mode validate` ACCEPTS an unpinned context (the same fail-open direction #832 found on the upstream side), so this has to be a config-shape assertion over the generated bytes rather than something the validate below can catch. It runs on the exact bytes handed to Envoy.
Scope is structural, never an allow-list: a chain is checked precisely when it requires a client certificate. The edge's downstream contexts do NOT — external callers have no mesh identity — so they are out of scope automatically, and a NEW mTLS-terminating chain is in scope the moment it sets the field.
func UnpinnedMeshClusters ¶
UnpinnedMeshClusters returns the names of every upstream TLS context in a generated bootstrap that carries NO match_typed_subject_alt_names — i.e. every cluster whose handshake would prove trust-domain membership and nothing else, so any mesh workload satisfies it (issue #832).
It is the config-shape half of that issue's gate, and it runs over the exact bytes handed to `envoy --mode validate`: Envoy ACCEPTS an unpinned validation context, so this is a shape a passing validate can never catch. Nothing here is allow-listed by name — a cluster is checked precisely when it has an UpstreamTlsContext, so the passthrough, app, health, xds, spire_agent and waypoint-ingress clusters (no TLS at all) are out of scope automatically, and a NEW mesh cluster added to a builder is in scope the moment it grows one.
Each returned name is "<cluster>" for a plain transport_socket or "<cluster>/<match>" for a transport_socket_matches entry (the per-source mTLS shape, where the pin lives on every match INCLUDING the node-identity on_no_match one).
Types ¶
type AccessLogFormat ¶
type AccessLogFormat struct {
// Where names the logger: "<listener>/<chain> (<filter kind>)".
Where string
// LogName is the logger's log_name: proxy's aether_access_logs for an
// HTTP connection manager, proxy.L4AccessLogName for a tcp_proxy.
LogName string
// Attributes is the attribute key -> format string, as serialised.
Attributes map[string]string
}
AccessLogFormat is one OTel access logger found in a generated bootstrap.
func AccessLogFormats ¶
func AccessLogFormats(bootstrapJSON []byte) ([]AccessLogFormat, error)
AccessLogFormats returns every OTel access logger on every static listener of a generated bootstrap: those of the HTTP connection managers and those of the tcp_proxy filters, on filter chains and default chains alike.
It reads the bytes handed to `envoy --mode validate`, so the format strings are the ones Envoy parsed. Parsing is all that proves: Envoy accepts a %COMMON_DURATION% over a time point it has never heard of and renders "-" (aether#1333). What the strings must BE is asserted on this function's output; that the pinned Envoy renders them as numbers is //agent/test/mtlspool TestAccessLogConnectionTiming.
type HCMIdleTimeout ¶
type HCMIdleTimeout struct {
// Listener and Chain name where the HCM sits; StatPrefix is the HCM's own
// stat_prefix, which is what names its kind ("inbound", "capture_http",
// "outbound_http", an edge listener's name).
Listener, Chain, StatPrefix string
// Set is false when common_http_protocol_options.idle_timeout is absent,
// i.e. when the HCM runs on Envoy's default instead of a stated value.
Set bool
// Idle is the stated timeout; zero when !Set.
Idle time.Duration
// DrainSet is false when drain_timeout is absent (Envoy's 5s default);
// Drain is the stated drain_timeout, zero when !DrainSet.
DrainSet bool
Drain time.Duration
}
HCMIdleTimeout is one HTTP connection manager in a generated bootstrap and the downstream idle timeout it carries.
func HCMIdleTimeouts ¶
func HCMIdleTimeouts(bootstrapJSON []byte) ([]HCMIdleTimeout, error)
HCMIdleTimeouts returns every HTTP connection manager on every static listener of a generated bootstrap (filter chains and default chain) with its downstream idle timeout (aether#1350).
It reads the bytes handed to `envoy --mode validate`, so the values are the ones Envoy accepted. Envoy accepts ANY idle timeout: a peer-facing value on an app-facing listener validates, serves, and resets one HTTP/1.1 request in a few hundred thousand, so this is a property only an assertion can hold.
type PerPortService ¶
type PerPortService struct {
Name string
ClusterIP string
HTTPPorts []uint32
TCPPorts []uint32
LegacyPort uint32
}
PerPortService is one service of the per-port fixture.
func PerPortServices ¶
func PerPortServices() []PerPortService
PerPortServices returns the fixture's services.
Directories
¶
| Path | Synopsis |
|---|---|
|
Command generate-envoy-bootstrap emits representative Envoy bootstrap JSON files into --out for offline inspection or CI artifact storage.
|
Command generate-envoy-bootstrap emits representative Envoy bootstrap JSON files into --out for offline inspection or CI artifact storage. |