Join our Newsletter — 33% off our NHI Course
Home› Guides› Envoy Proxy Security Guide: Locking Down Admin, xDS…
Guide Network Security

Envoy Proxy Security Guide: Locking Down Admin, xDS Trust and the Edge

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 18 November 2026 16 min read
On this page

Envoy is secure against hostile traffic only when its operators close the gaps its own threat model leaves to them: the admin interface, the trust placed in the control plane, upstream certificate checks and the edge defaults that are tuned for a service mesh rather than the open internet. Envoy sits under most service meshes, many API gateways and a large share of Kubernetes ingress layers, so a single misconfigured listener can expose configuration, certificates and the ability to drain traffic across a whole estate.

This guide works through the documented settings that matter most for security teams: binding and filtering the admin interface, treating xDS and side services as trusted identities, turning on real certificate verification, sanitising forwarding headers, normalising paths and applying the edge best practice values the Envoy project publishes. For the wider picture of how reverse proxies fit into an architecture, read the Proxies and Forward vs Reverse Proxy Security Guide; this page stays focused on Envoy itself.

This is an independent guide from NHI Mgmt Group, based on Envoy's public documentation as of November 2026. It is not sponsored or reviewed by the Envoy project. Product features change, so confirm settings against Envoy's current documentation.

Key takeaways

  • The Envoy threat model places the admin interface out of scope: the project states it is the operator's responsibility to keep it away from untrusted actors. Bind it to localhost or a Unix socket and use allow_paths where it must be reachable.
  • Envoy does not verify upstream certificates unless a validation_context with trusted authorities is set, and even then it checks only the chain. Add subject alternative name matching for every upstream.
  • The control plane is trusted by design. Whoever can write to your xDS server can rewrite every route, listener and certificate, so the management server and its credentials are among the most privileged non-human identities you run.
  • Envoy defaults suit a mesh, not an edge. Apply the published edge values for buffers, timeouts, HTTP/2 limits, connection limits and the overload manager.
  • Set use_remote_address and xff_num_trusted_hops deliberately. Wrong values let clients spoof their source address or be treated as internal.
  • Turn on normalize_path, merge_slashes and a strict path_with_escaped_slashes_action wherever routing or RBAC depends on the path.

What the Envoy threat model trusts and what it leaves to you

The Envoy project publishes a threat model that is unusually direct about responsibilities, and it is the best starting point for a hardening plan. Its highest priority concerns are those leading to compromise of data confidentiality or integrity. The core components are described as hardened against both untrusted downstream and upstream peers, which means the router, the TLS transport socket and the HTTP connection manager are designed to face hostile traffic.

Several things sit outside that promise, and each becomes your job:

  • The control plane. The management server is generally trusted, and the project does not treat wire-level exploits against the xDS transport as a concern. Envoy should still be resilient against malicious configuration, such as a tenant supplying a regular expression, but a compromised control plane is not something Envoy defends against.
  • Side calls. External authorisation services, credential suppliers and rate limit services are generally trusted unless an extension's documentation says otherwise.
  • The admin interface. Exploits that need admin access are out of scope.
  • Unsafe defaults. The project states that it will not act on any security disclosure that relates to a lack of safe defaults. Default settings are not considered safe for availability, so watermarks, the overload manager and circuit breakers must be configured by operators.
  • Alpha, contrib and deprecated features. Alpha features are supported only in trusted deployments, contrib extensions are best effort, and deprecated features and runtime flags that default to false are out of scope.

The threat model also classifies extensions by security posture: robust to untrusted downstream and upstream, robust to untrusted downstream only, requiring trusted downstream and upstream, data plane agnostic, or unknown. Many network protocol filters, including Redis, Thrift and Mongo, require trusted peers on both sides, and many alpha features, Wasm runtimes and a large set of filters are listed as unknown. Before you expose a listener to the internet, list every filter in its chain and check its posture. A filter that assumes a trusted downstream should never sit on an edge listener. Lua and Wasm code is assumed to be trusted, so treat scripts as code that needs review, signing and change control.

Locking down the admin interface

The admin interface is the single most common Envoy exposure. The documentation warns that it allows destructive operations and can expose private information such as stats, cluster names and certificate details, and calls it critical that access is allowed only via a secure network. It also warns against attaching hosts that can reach the admin port to any other network, to avoid cross-site request forgery.

What an attacker with admin access can do is significant:

EndpointEffect if reached by an attacker
/quitquitquit (POST)Cleanly exits the server, taking down traffic through that instance.
/healthcheck/fail (POST)Fails health checks regardless of filter configuration, removing the host from rotation.
/drain_listeners (POST)Stops listeners on workers.
/runtime_modify (POST)Changes runtime values with immediate effect.
/logging (POST)Changes log levels globally or per logger, which can hide activity or flood storage.
/tap, profilers (POST)Configures tap sessions that can capture traffic, or enables CPU and heap profilers.
/config_dumpDumps loaded configuration, including routes, clusters and secret references.
/certsLists loaded certificates with serial numbers, SANs and expiry.
/clusters, /listeners, /stats, /server_infoReveal topology, upstream host addresses and runtime state.

Mutations must be sent as HTTP POST; a mutation sent with GET returns HTTP 400. That reduces drive-by risk from simple links but does nothing against a reachable port.

Hardening steps:

  1. Bind to loopback or a Unix socket. The documentation recommends allowing access to the administration listener via localhost. The published edge example binds admin.address to 127.0.0.1. In Kubernetes, never publish the admin port in a Service and confirm that NetworkPolicy blocks it between pods.
  2. Restrict paths when the port must be reachable. Use allow_paths to expose only what probes and scrapers need. The documented example permits only exact: /ready and prefix: /stats. A cleaner pattern is a separate, ordinary listener that routes only readiness and metrics to the admin socket.
  3. Remove redaction gaps. /config_dump attempts to redact private_key and password fields, but redaction depends on strongly typed protos. Replace any deprecated config (google.protobuf.Struct) fields with typed_config so sensitive values are actually redacted.
  4. Scan for it. Add the admin port to your external attack surface checks and your internal scanning. Sidecars copied between environments often carry an admin binding of 0.0.0.0 from a quick start.

xDS and the control plane as a privileged identity

Most production Envoy fleets receive listeners, routes, clusters, endpoints and secrets dynamically over xDS from a management server such as a mesh control plane or gateway controller. Because Envoy trusts that server, the server's identity and the credentials that can change its state are equivalent to root on every proxy it serves.

The xDS protocol documentation describes two delivery models. Separate streams per resource type can go to different management servers and offer an eventual consistency model, while the Aggregated Discovery Service (ADS) delivers all updates over one stream so a single server can sequence changes and avoid traffic drops. The protocol page itself does not describe transport security: the node identifier sent on the first request of a stream is an identifier, not an authentication mechanism. Authentication between Envoy and the control plane is therefore your design decision.

  • Use mutual TLS to the management server. Configure the xDS cluster in the bootstrap with a TLS transport socket, a trusted CA and subject alternative name matching for the control plane, plus a client certificate so the server can authenticate each proxy. See the mTLS Guide for issuing and rotating these workload certificates.
  • Do not trust the node ID for authorisation. If the control plane hands out different secrets per workload, it should bind that decision to the authenticated client certificate, not to a self-reported node identifier.
  • Protect the bootstrap. The bootstrap file names the control plane and holds the credentials to reach it. Mount it read-only, restrict who can change it and include it in configuration drift checks.
  • Govern who can write configuration. In a mesh, the identities that can create gateway, route or policy resources in the Kubernetes API effectively configure Envoy. Review those bindings as you would any privileged access; the Kubernetes Gateway API Security Guide covers delegation of route ownership.
  • Treat side services as trust anchors. External authorisation and rate limit services are trusted by default. Reach them over authenticated channels and alert on configuration that changes their address.

TLS: making Envoy actually verify certificates

Envoy terminates and originates TLS using BoringSSL by default, and each listener and cluster has its own TLS context. The most important fact for upstream security is that certificate verification is not enabled unless the validation context specifies one or more trusted authority certificates. A cluster with a TLS transport socket but no validation_context encrypts traffic without authenticating the server.

Even with trusted_ca set, the documentation warns that Envoy verifies the certificate chain of the presented certificate, but not its subject name. Any certificate issued by that CA would be accepted for any upstream. To close the gap:

  • Set validation_context.trusted_ca to a specific CA bundle, ideally a private CA for internal services rather than the whole public bundle.
  • Set match_typed_subject_alt_names on every upstream cluster so the server must present the expected DNS name or SPIFFE ID.
  • For SPIFFE identities with multiple trust bundles, use a custom certificate validator from the envoy.tls.cert_validator extension category.
  • Deliver certificates through the Secret Discovery Service (SDS) so they rotate without restarts. SDS can be loaded from the filesystem or pushed from an SDS server; static and SDS certificates cannot be mixed in a single DownstreamTlsContext.
  • Set TLS protocol versions and cipher suites explicitly in tls_params to match your policy rather than relying on defaults. NIST SP 800-52 Rev. 2 is a useful baseline for server configuration.

On the downstream side, certificate selection by SNI supports exact names first, then wildcards one label deep. The full_scan_certs_on_sni_mismatch option defaults to false; the documentation notes that enabling it creates a potential denial of service risk because of O(n) complexity. OCSP stapling is supported on downstream contexts only, and ocsp_staple_policy controls what happens when a response is missing or expired. Certificate expiry remains a leading cause of proxy outages; the Certificate Expiry Outages and 47-Day TLS Certificates Guide covers monitoring for shorter lifetimes.

Client address trust and header sanitising

Envoy decides which address is the real client, and whether a request is internal, from X-Forwarded-For and two settings on the HTTP connection manager. Getting these wrong lets external callers claim to be internal or impersonate another IP for rate limiting and access logs.

  • With use_remote_address: false (the default), the trusted client address is the rightmost XFF entry if one exists. A request is internal if XFF contains a single RFC1918 or RFC4193 address, which an external client can simply send.
  • With use_remote_address: true, the trusted address is the immediate downstream connection's source and XFF is ignored for this purpose. A request is internal only if it has no XFF and comes from a private address. The edge best practice page recommends true for edge proxies so Envoy does not consume headers from external clients.
  • xff_num_trusted_hops tells Envoy how many proxies in front of it to trust. Set it to the exact number of load balancers you control and no higher. Alternatively, use xff_trusted_cidrs through the original IP detection extension to trust only known balancer ranges.
  • If a load balancer in front passes client addresses with the PROXY protocol, enable the envoy.filters.listener.proxy_protocol listener filter only on listeners that are reachable solely from that balancer.

Envoy also sanitises several of its own headers on external requests. x-envoy-internal is set from the XFF analysis, x-envoy-external-address is not set or overwritten for internal requests, and x-envoy-downstream-service-cluster is cleaned from external requests. The documentation notes that this last header is only a hint and can be spoofed by internal entities, so never use it for authorisation. When forward_client_cert_details is unset, the XFCC header is sanitised by default. If you forward client certificate details to upstream services, set it explicitly and make sure upstreams accept the header only from Envoy.

Path normalisation and routing safety

Path confusion occurs, in the documentation's words, when parties participating in a request use different path representations. If Envoy routes or authorises on one form of a path and the upstream interprets another, an attacker can reach routes that RBAC was meant to block. The published edge settings address this:

  • normalize_path: true and merge_slashes: true on the HTTP connection manager.
  • path_with_escaped_slashes_action: REJECT_REQUEST for clients expected to send RFC 3986 normalised paths, such as gRPC clients; UNESCAPE_AND_REDIRECT for clients that support redirects, such as browsers. KEEP_UNCHANGED exists for servers that need encoded slashes, and the documentation warns that UNESCAPE_AND_FORWARD may increase the probability of path confusion if intermediaries do path-based access control.
  • headers_with_underscores_action: REJECT_REQUEST under common_http_protocol_options, which protects upstream services that treat underscores and hyphens in header names as interchangeable.

Test these settings with a request corpus that includes encoded slashes, dot segments and duplicate slashes before rollout, because they can break legacy clients.

Edge hardening: buffers, timeouts and overload protection

The Envoy documentation states that Envoy is a production ready edge proxy but that its defaults are tuned for service mesh use. Its edge best practice page lists values to start from. These are the project's published examples, and the page marks the heap size as something to tune for your system.

AreaSettingPublished edge value
Overload managerrefresh_interval, fixed_heap monitor0.25s; max_heap_size_bytes 2 GiB
Overload actionsshrink_heap, stop_accepting_requestsTrigger at 0.95 and 0.98 of heap
BuffersListener and cluster per_connection_buffer_limit_bytes32768 (32 KiB)
Connection idlecommon_http_protocol_options.idle_timeout3600s
Streams and requestsstream_idle_timeout, request_timeout300s each
RoutesRoute timeout and idle_timeout15s each
HTTP/2max_concurrent_streams, stream and connection windows100; 64 KiB; 1 MiB
ConnectionsPer listener connection_limit; overload.global_downstream_max_connections10000; 50000

Route and stream timeouts must be disabled or raised for long-lived and streaming requests such as gRPC streams and WebSockets, so create separate routes for those paths instead of relaxing limits globally. The threat model treats availability issues as security relevant only for components tagged as hardened and when resource exhaustion reaches roughly 100x amplification, so do not rely on upstream fixes for ordinary resource abuse. Rate limiting, circuit breakers on clusters and upstream DDoS protection remain necessary; the DDoS Protection Guide covers the layers in front of Envoy.

Logging, monitoring and patching

Security visibility for Envoy comes from three sources: access logs on each listener, stats from the admin or a stats sink, and the control plane's own audit trail.

  • Configure access logs on every edge listener with the downstream address, the trusted client address, SNI, response flags, route name and upstream cluster. Response flags show overload, timeouts and upstream failures.
  • Export stats through a stats sink or a restricted /stats path rather than opening the admin port to a scraper network.
  • Alert on changes to listeners, clusters with TLS disabled, admin bindings that are not loopback and any configuration that adds a filter with an unknown or trusted-peer posture to an edge listener.
  • Track Envoy security releases and the version embedded in your mesh or gateway product. Many teams run Envoy indirectly and miss that a mesh upgrade is a proxy patch. Map exposed edge proxies to MITRE ATT&CK T1190, Exploit Public-Facing Application, in your threat model.

Common failure patterns

  • Admin bound to all interfaces. Quick start configurations with 0.0.0.0 are copied into sidecars and gateways, exposing /config_dump and /quitquitquit inside the cluster or to the internet.
  • TLS without verification. Upstream clusters use a TLS transport socket with no validation_context, or with trusted_ca but no SAN matching, so any certificate from the CA is accepted.
  • Default XFF handling at the edge. use_remote_address is left false on an internet-facing listener, allowing clients to send a private address in XFF and be treated as internal.
  • Too many trusted hops. xff_num_trusted_hops is set higher than the real number of balancers, letting clients choose their logged and rate limited address.
  • Path-based RBAC without normalisation. Authorisation rules match paths that upstreams interpret differently.
  • Mesh defaults at the edge. No overload manager, unlimited connections and long timeouts leave the edge open to slow and resource exhaustion attacks.
  • Unreviewed control plane access. Many identities can create routes or gateways, and nobody owns the credentials that reach the xDS server.
  • Untyped config in dumps. Deprecated config fields stop redaction, so secrets appear in /config_dump output and in support bundles.

Practitioner checklist

  • Inventory every Envoy instance, including sidecars, gateways and ingress controllers that embed it, with version and owner.
  • Confirm the admin interface is bound to loopback or a Unix socket everywhere, and that allow_paths restricts any reachable admin listener.
  • Replace deprecated config fields with typed_config so /config_dump redaction works.
  • Require mutual TLS between every proxy and the xDS management server, and review who can change control plane state.
  • Add validation_context with a specific trusted_ca and match_typed_subject_alt_names to every upstream TLS cluster.
  • Deliver certificates via SDS and monitor expiry.
  • Set use_remote_address: true on edge listeners and set xff_num_trusted_hops to the exact number of trusted balancers.
  • Enable normalize_path, merge_slashes, a strict path_with_escaped_slashes_action and headers_with_underscores_action: REJECT_REQUEST.
  • Apply the published edge values for overload manager, buffers, timeouts, HTTP/2 and connection limits, tuned to your hardware.
  • Check the threat model posture of every filter on edge listeners and remove any that require trusted peers.
  • Enable access logs and alerting on configuration changes, then patch on each Envoy security release.

Standards and references

Related NHI Mgmt Group resources: Proxies and Forward vs Reverse Proxy Security Guide · mTLS Guide · Kubernetes Gateway API Security Guide · API Gateway vs Service Mesh

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.