Skip to main content

Internet-Facing Hardening & Fronting Architecture

dfe-receiver is the internet-facing ingest component in the DFE stack. dfe-ui, dfe-hyperdx and, where it is deployed, culvert take untrusted input as well (dfe-infra/docs/threat-model.md).

Application-level hardening, and cost-conscious fronting on Kubernetes and AWS.


What the Receiver Enforces​

ProtectionStatusConfig
Request body size limit (413)10 MiB (HTTP, OTLP HTTP, HEC, RW), 1 MiB (webhook). The body extractors read to the same limitserver.max_body_size (HTTP, OTLP HTTP), splunk_hec.max_body_size, prometheus_rw.max_body_size, webhook.max_body_size
Request timeout (408)30s, every HTTP listener, a held answer ending inside it. Both gRPC listeners add the acknowledgement hold, which starts once the body is decoded, and answer CANCELLED past the sumserver.request_timeout_ms (HTTP, OTLP HTTP, gRPC, OTLP gRPC), splunk_hec.request_timeout_ms, prometheus_rw.request_timeout_ms, webhook.request_timeout_ms
Slowloris protection5s header_read_timeout, every HTTP listener (hyper)HEADER_READ_TIMEOUT
Connections closed for a limitCounted by transport and reason (over_limit, no_first_byte, frame_timeout, idle)receiver_connections_closed_total
First byte timeout30s, every TCP listener the receiver accepts on: a connection that sends nothing by then is closedserver.connections.first_byte_timeout_ms
Frame timeout30s, every raw TCP listener (syslog TCP and TLS, Lumberjack, Fluent Forward, GELF): once a frame's first byte arrives, a frame not whole by then closes its connection and frees its place under the cap. An oversize syslog or GELF frame being skipped is still a frame in progress. Time between whole frames and time a frame waits on the pipeline are not counted. A 32 MiB Lumberjack or Fluent frame needs about 1 MiB/s to arrive in timeserver.connections.frame_timeout_ms
Connection idle timeout300s with no request in flight, every HTTP listener, HTTP/1 keep-alive and HTTP/2 alike (an idle HTTP/1 connection can close sooner, on the header read timeout). A peer that does not finish the graceful close is dropped. Lumberjack, Fluent Forward and GELF keep an idle connection, under the cap, since closing one under a sender loses its next lineserver.connections.idle_timeout_ms
Syslog TCP idle timeout and keepaliveSyslog TCP and TLS close a connection with no frame for 600s, a frame part way in being the frame timeout's. Keepalive probes start after 60s quiet and repeat every 60s, so a peer that has gone frees its placesyslog.idle_timeout_ms (0 = keep), syslog.tcp_keepalive_secs (0 = off)
HTTP/2 keep-alivePing every 60s, close after 20s unanswered, every HTTP listener and both gRPC listenersserver.connections.http2_keep_alive_interval_ms
HTTP/2 stream cap200 open streams per connection, every HTTP listener and both gRPC listeners. The client is told the cap, and a stream past it is refusedserver.connections.http2_max_concurrent_streams
Connection cap10,000 open connections per listener, every TCP listener and both gRPC listeners. One past it is closed as it is acceptedserver.connections.max_per_listener (0 = no cap)
Concurrency limit10,000 in-flight requests default, per HTTP listener. A request past it is answered 503 with Retry-After at once, never queuedserver.max_concurrent_requests
Per-IP rate limitingGCRA via tower-governor, opt-in, per HTTP listener, keyed on the TCP peer (forwarding headers from server.trusted_proxies alone). Clients with a refilled budget are dropped from its key map every 5sserver.rate_limit.*, server.trusted_proxies
Flow per-source rate limitingToken bucket per UDP source, opt-in. The bucket map never holds more than cache_size (default 4096) sources: a further source past it evicts an idle bucket where one is among the first 32 looked at, else the first, counted on flow_rate_limit_evicted_total, so spoofed sources cannot grow itflow.rate_limit.*
IP filter (allowlist/denylist)CIDR trie, connection-level reject, in every accept loop the receiver runs. The gRPC and OTLP gRPC ports have none: tonic runs their accept loops. An unknown mode, a bad CIDR or an empty allowlist stops startupserver.ip_filter.*
503 backpressureHTTP + gRPC ingest shed load when pipeline not readyRetry-After: 5
TLS terminationPer-protocol. Every TLS listener re-reads its certificate, key and client CA every refresh_interval_secs, from a file or a secret reference, and serves a rotated certificate from the next handshake. Every other tls.* setting loads once at start, so a change to it is a restart. Every listener defaults to profile commercial, which takes TLS 1.3 and 1.2 senders. strong and cnsa2 take TLS 1.3 only*.tls.enabled, *.tls.profile, *.tls.cert_file, *.tls.cert_secret
TLS handshake timeout10s, every TLS listener the receiver accepts onserver.connections.tls_handshake_timeout_ms
mTLS client authPer-protocol*.tls.client_auth: required
Bearer token authPer-protocol, hot-reloadable*.auth.mode: bearer
Header authHTTP ingest, HEC and remote write, against accepted_headers (or the legacy header_name). An unknown *.auth.mode, or an accepted header listed with no values, stops startupserver.auth.mode: header
Credential-less listenersRefuse to start without client certificates required or the opt-out*.accept_unauthenticated
JSON validationGlobal, always on: a body that is not JSON is refused with a 400Not configurable
Required field checkGlobalvalidation.required_fields
Dead-letter queueGlobalrouting.dlq
Memory pressure backpressure503 / UNAVAILABLE on HTTP and gRPC ingestDFE_RECEIVER_MEMORY_PRESSURE_THRESHOLD, self_regulation.* (buffer.* bounds the destination queues and nothing else)
Middleware orderingRateLimit -> Concurrency -> Timeout -> BodyLimit -> Auth -> Handler, behind the accept loop's IP filterCheapest refusal first
Frame size validationGELF 1MB, Syslog 64KB, Fluent 32MB. An oversize syslog or GELF message is skipped to its delimiter and counted (receiver_records_dropped_total, reason oversize), and its connection goes on. Fluent Forward has no delimiter to resume at, so an oversize frame closes its connectionPer-protocol limits, syslog.max_message_size, gelf.max_message_size
Decoded-size budgetAn OTLP export, remote-write request or Vector push past 100,000 records, 1,000,000 messages or 64 MiB of resource, scope, metric or series-label bytes copied into its records, or holding a protobuf group, is refused before it decodes: 400 on HTTP, INVALID_ARGUMENT on gRPC. A Fluent Forward message past 1,000,000 values, 100,000 entries or 64 MiB of tag copies closes its connection, found by a scan that reads each byte once. A Splunk HEC request past 100,000 events or raw lines, or 64 MiB of host, source, sourcetype and index copied into its raw lines, is refused with a 400Hard-coded
Zip-bomb rejectionLumberjack nested compression rejected. A compressed frame is decompressed one inner frame at a time and refused past 64 MiBHard-coded
Unsettled bytes per connectionLumberjack settles and ACKs a window in parts past 16 MiB of eventsHard-coded
Health/readiness (K8s)/livez, /readyz: 503 until every enabled listener serves, once one stops (drain included), and under memory pressureMetrics port and the HTTP ingest port
Graceful shutdownCancellationToken + in-flight drainAll handlers
Log spam preventionSampled (1/100) + debounced (5s) logging. A refused credential logs once per 5s per reason, an IP-filter refusal once per 5s per listener, and a counter has every onePer-protocol
#![forbid(unsafe_code)]Entire crateCargo.toml lints

Application-Level Hardening​

Each HTTP request meets the cheapest refusal first, so a bot scan or an unauthenticated probe costs the least it can. A /ingest request passes the timeout, body limit and auth in src/server/http/mod.rs before the handler sees it.

Figure 1. L4 Detail -- HTTP request order. The 408, 413 and 401 arrows are the refusals. Up: L3 Components -- Receiver. Down: L4 Detail -- Ingest answers, below.

The handler answers malformed or non-object JSON with 400. A record missing a required field goes to the DLQ, or gets 400, per validation.dlq_on_invalid. The rest get 202 once Kafka or the DLQ holds them, and 503 when neither confirms in the hold.

Figure 2. L4 Detail -- Ingest answers. The arrows to Client are the answers. Up: L4 Detail -- HTTP request order.

The IP filter, the per-IP rate limit and the concurrency cap run before the timeout. A listener with client certificates and tokens both required:

server:
max_body_size: 10485760 # 10 MiB, refused before auth
request_timeout_ms: 30000
tls:
enabled: true
cert_file: "/etc/ssl/receiver.crt"
key_file: "/etc/ssl/receiver.key"
ca_files: ["/etc/ssl/ca.crt"]
client_auth: required # none, optional, required
auth:
mode: both # none, header, bearer, mtls, both
accepted_headers:
- name: "x-api-key"
values: ["production-key-1", "production-key-2"]
bearer:
secret_source: "vault:secret/data/auth:tokens"
refresh_interval_secs: 300

Which listener gets which control​

server.ip_filter runs in every accept loop the receiver owns, so an allowlist written for the /ingest senders DROPS syslog, Beats, Fluent Forward, GELF, HEC, remote write or OTLP HTTP from any other range. Each drop counts on receiver_ip_filter_rejected_total{transport}. Widen cidrs to cover every sender, or set mode: disabled and restrict at the network edge. server.rate_limit is a tower layer over an HTTP request, so it reaches HTTP alone. Each HTTP listener builds a separate governor: the configured rate is per source IP PER LISTENER, not a receiver-wide total.

server.rate_limit.requests_per_second is a rate: the limiter replenishes one request of the quota every 1/requests_per_second of a second, with server.rate_limit.burst on top of it.

The limiter keys on the TCP peer, and forwarding headers count from server.trusted_proxies. On Kubernetes, externalTrafficPolicy: Cluster (the default) makes every client behind one node share its budget: set externalTrafficPolicy: Local, or list the fronting proxy as trusted.

Listenerserver.ip_filterserver.rate_limitClient authentication
HTTP /ingestyesyesserver.auth
Webhook (separate or shared listener)yesyesper-caller secret
Splunk HEC (TLS and plaintext)yesyessplunk_hec.auth
Prometheus remote writeyesyesprometheus_rw.auth
OTLP HTTP (4318)yesyesotlp.auth
OTLP gRPC (4317)no -- tonic runs the accept loopno -- no HTTP layer thereotlp.auth.mode: bearer, or mtls with otlp.tls.client_auth: required
gRPC / Vectorno -- tonic runs the accept loopno -- no HTTP layer theregrpc.auth.mode: bearer, or mtls with grpc.tls.client_auth: required
Syslog UDP / TCP / TLSyes (per datagram on UDP)no -- no HTTP request to countclient_auth: required on the TLS listener alone. Syslog starts with syslog.accept_unauthenticated: true and not otherwise
Lumberjack / Beatsyesno -- no HTTP request to countlumberjack.tls.client_auth: required, or lumberjack.accept_unauthenticated: true
Fluent Forwardyesno -- no HTTP request to countfluent.tls.client_auth: required, or fluent.accept_unauthenticated: true
GELFyesno -- no HTTP request to countgelf.tls.client_auth: required, or gelf.accept_unauthenticated: true
Flow (NetFlow / sFlow)flow.ip_filterflow.rate_limitnone -- UDP, restrict by source

An allowlist says where a client may connect from, not who it is, so it is not in the last column. The opt-out accepts anyone who can reach the port, so pair it with an allowlist.

The decoded-size budget does not count values inside packed scalar repeated fields. Those are the packed arrays in Vector distributions, aggregated histograms and summaries, DDSketch k and n, OTLP histogram buckets, and remote-write native histogram deltas and counts. Each decodes to at most about 8x its wire bytes, and the wire limit (*.max_body_size on HTTP, grpc.max_message_size and otlp.max_message_size on gRPC) bounds those bytes.

The frame timeout runs above TLS, so a client that finishes the handshake and then sends part of a TLS record is not timed. Requiring client certificates (*.tls.client_auth: required) closes that path.


K8s Fronting Architecture​

When running in Kubernetes, the gateway/ingress layer handles most of what the application-level hardening above describes. This section covers how to configure it.

The community kubernetes/ingress-nginx reached EOL in March 2026. It was announced at KubeCon NA 2025. No further CVE patches, no K8s compatibility updates. Do not deploy it for further workloads.

The two NGINX ingress controllers are often confused:

ProjectStatus
kubernetes/ingress-nginx (K8s SIG community)EOL. No CVE patches. Chainguard maintains a fork with security fixes alone (EmeritOSS) as a stopgap.
nginxinc/kubernetes-ingress (F5)Active. Apache 2.0. NGINX Plus features require JWT license.
Envoy GatewayActive. CNCF project. Gateway API native. Recommended for fresh deployments.

Prefer Gateway API (Envoy-based) over Ingress for fresh deployments.

Envoy Gateway is an implementation of the Kubernetes Gateway API, built on Envoy Proxy. Open source, Apache 2.0.

Security features via CRDs:

ClientTrafficPolicy (downstream -- client-to-Envoy):

apiVersion: gateway.envoyproxy.io/v1alpha1
kind: ClientTrafficPolicy
metadata:
name: dfe-receiver-client-policy
spec:
targetRefs:
- group: gateway.networking.k8s.io
kind: Gateway
name: dfe-gateway
connection:
# Connection limit -- closes new connections when exceeded
connectionLimit:
value: 10000
# Buffer limit per connection
bufferLimit: 16384
timeout:
http:
# Slowloris protection -- reject if the headers are not in by 5s
requestHeadersReceivedTimeout: 5s
# and if the full request is not in by 10s
requestReceivedTimeout: 10s

requestHeadersReceivedTimeout sets Envoy's request_headers_timeout, which bounds the header read, and requestReceivedTimeout bounds the whole request, headers and body.

Rate limiting via BackendTrafficPolicy:

apiVersion: gateway.envoyproxy.io/v1alpha1
kind: BackendTrafficPolicy
metadata:
name: dfe-receiver-rate-limit
spec:
targetRefs:
- group: gateway.networking.k8s.io
kind: HTTPRoute
name: dfe-receiver-route
rateLimit:
type: Local
local:
rules:
- limit:
requests: 100
unit: Second

Envoy Gateway supports both local (per-proxy-instance, no external deps) and global (shared across replicas via external rate limit service with Redis) rate limiting. For dfe-receiver, local rate limiting is sufficient unless running many replicas where per-instance limits are loose.

HTTPRoute for dfe-receiver:

apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: dfe-receiver-route
spec:
parentRefs:
- name: dfe-gateway
hostnames:
- "ingest.example.com"
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: dfe-receiver
port: 8080

CrowdSec is an open-source, community-driven IP reputation engine, MIT-licensed and written in Go, with a community blocklist in its free tier.

Envoy Gateway integration: A community envoy-proxy-crowdsec-bouncer exists, written in Go. It works as an Envoy ext_authz filter via a SecurityPolicy:

apiVersion: gateway.envoyproxy.io/v1alpha1
kind: SecurityPolicy
metadata:
name: crowdsec-policy
spec:
targetRefs:
- group: gateway.networking.k8s.io
kind: HTTPRoute
name: dfe-receiver-route
extAuth:
grpc:
backendRef:
name: crowdsec-bouncer
port: 50051

Maturity caveat: The Envoy bouncer is community-maintained and explicitly marked "not tested in production." For production, evaluate carefully. CrowdSec has mature bouncers for Traefik as well and nginx (if using F5's NGINX Ingress Controller as a transitional option).

Run a dedicated Envoy Gateway for dfe-receiver, separate from other services. A DoS against the ingestion endpoint should not cascade to dashboards, APIs, or other services.

apiVersion: gateway.networking.k8s.io/v1
kind: GatewayClass
metadata:
name: dfe-ingest
spec:
controllerName: gateway.envoyproxy.io/dfe-ingest-controller

---
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: dfe-gateway
spec:
gatewayClassName: dfe-ingest
listeners:
- name: https
port: 443
protocol: HTTPS
tls:
mode: Terminate
certificateRefs:
- name: ingest-tls

This costs the extra resource allocation and prevents cross-service impact.


AWS Fronting Architecture (Cost-Conscious)​

The cardinal rule: cost scales with traffic volume. At high ingestion volume, per-GB and per-request charges compound. Every layer that touches traffic must be evaluated on its cost per GB.

Prices differ by region and change often, so this table names the billing unit. Check the pricing pages under further reading before sizing a deployment.

ServiceBilled onNotes
NLBPer hour, plus capacity units for data processedCheaper per GB than ALB. Cross-zone traffic adds a per-GB charge each way.
ALBPer hour, plus capacity units for data and requestsHigher capacity-unit rate than NLB.
AWS WAFPer web ACL, per rule, per million requestsBot Control adds a further ACL charge and request charges.
Shield StandardFreeL3/L4, no L7.
Shield AdvancedFlat monthly feeIncludes WAF. 12-month commitment.
CloudFront (pay as you go)Per GB out, per request, in volume tiersTiers cheapen with volume but stay the largest line at ingestion volume.
CloudFront (flat-rate plans)Flat monthly fee with a traffic allowanceSustained use past the allowance can see delivery adjusted.
Cloudflare FreeFlatUnlimited DDoS mitigation, 5 WAF rules.
Cloudflare ProFlat per domainManaged WAF, 20 rules. Not billed per GB of HTTP traffic.
Cloudflare Spectrum (TCP)Per GB, after a small free allowanceProhibitive at ingestion volume.
CrowdSecFree tierCommunity blocklist, K8s native.

CloudFront is a CDN, built to serve content. Pay-as-you-go pricing is per GB, the largest line at ingestion volume. Every POST pays the edge-to-origin hop, and the caching and edge compute go unused.

The one exception: AWS WAF attaches to CloudFront, an ALB or API Gateway, never an NLB, so needing AWS WAF can make CloudFront the intermediary. Question whether you need AWS WAF at all (below).

On AWS, senders reach the receiver through Cloudflare, an NLB and Envoy Gateway.

Figure 3. L4 Detail -- AWS fronting. Everything but dfe-receiver is outside DFE, and the IP check is the ext_authz call. Up: dfe-receiver documentation.

What each layer stops is in the defence-in-depth table. The recurring charges are the flat Cloudflare plan and the NLB's hours and data, and Envoy Gateway and CrowdSec are open source. The "just use AWS" approach (ALB, AWS WAF, Shield Standard) bills ALB hours and data plus WAF per ACL, rule and request, and Bot Control costs extra. Price both against the expected traffic and the rules you enable.

AWS WAF is the right choice when:

  • Compliance needs AWS-native security controls
  • You need deep integration with AWS services (API Gateway, AppSync)
  • You're on Shield Advanced, which includes WAF

AWS WAF is overkill when:

  • Cloudflare (or similar) handles L7 filtering upstream
  • Your traffic is API/machine-to-machine (not browsers, less attack surface)
  • You have rate limiting + auth at the application/gateway layer
  • Cost is a major constraint

For dfe-receiver specifically: The traffic is structured JSON from known agents (Vector, Beats, etc.), not browser traffic. The attack surface is narrower than a typical web app. Cloudflare + Envoy Gateway rate limiting + application auth covers the 80/20.

AWS Variants, Non-HTTP Protocols and the NLB​

VariantPathCost driverProtectionSuitable for
A: minimum viableInternet -> NLB -> K8s Service -> dfe-receiverthe NLB base chargeapplication-level (auth, body limits, timeouts)dev, staging, internal networks
B: production standardInternet -> Cloudflare -> NLB -> Envoy Gateway -> dfe-receiverNLB data processing, plus a flat Cloudflare planDDoS, WAF, rate limiting, IP reputation, authmost production deployments
C: high security, complianceInternet -> CloudFront + AWS WAF -> ALB -> Envoy Gateway -> dfe-receiverCloudFront data transfer dominatesthe AWS-native stackregulated industries, AWS-mandated controls
D: maximum protectionInternet -> Cloudflare Enterprise -> NLB -> Envoy Gateway + CrowdSec -> dfe-receivera Cloudflare Enterprise contracta dedicated DDoS team, custom WAF rules, an SLASLA-bound production

Most cloud WAF/CDN services handle HTTP/HTTPS traffic and nothing else. dfe-receiver's TCP protocols need different treatment.

ProtocolPortTransportFronting Option
HTTP/HTTPS8080HTTPCloudflare + NLB/ALB, with an Origin Rule to 8080
gRPC6000HTTP/2NLB. Cloudflare needs a TLS, HTTP/2 endpoint on 443
OTLP gRPC4317HTTP/2NLB. Cloudflare needs a TLS, HTTP/2 endpoint on 443
OTLP HTTP4318HTTPCloudflare + NLB/ALB, with an Origin Rule to 4318
Splunk HEC8088HTTPCloudflare + NLB/ALB, with an Origin Rule to 8088
Prometheus RW9091HTTPCloudflare + NLB/ALB, with an Origin Rule to 9091
Webhook (separate listener)8090HTTPCloudflare + NLB/ALB, with an Origin Rule to 8090
Lumberjack5044TCPNLB, no L7 proxy
Syslog UDP514UDPNLB, no L7 proxy
Syslog TCP514TCPNLB, no L7 proxy
Syslog TLS6514TCP+TLSNLB, no L7 proxy
Fluent24224TCPNLB, no L7 proxy
GELF12201TCPNLB, no L7 proxy
Flow (NetFlow, IPFIX, sFlow)2055 / 4739 / 6343UDPNLB, no L7 proxy

Cloudflare proxies its listed ports and no others. 8080 is one of its HTTP ports, HTTPS takes 443, 2053, 2083, 2087, 2096 and 8443, and no other receiver port is listed. A sender reaches Cloudflare on a listed port, and an Origin Rule's destination port override, which every plan has, forwards to the receiver's port. gRPC through Cloudflare needs gRPC turned on for the zone and an endpoint on 443 with TLS and HTTP/2 advertised over ALPN. The deployment contract marks the gRPC port internal, so the load balancers dfe-infra renders leave it out.

For TCP protocols:

  • NLB handles L4 load balancing natively (TCP/UDP/TLS)
  • No L7 inspection, no WAF, no rate limiting at this layer
  • Defence-in-depth: Application-level auth + TLS + connection limits are the primary protections for these protocols
  • Consider: mTLS for Beats/syslog/fluent clients (known agent fleet)
  • Consider: IP allowlisting for TCP protocols (senders are usually known)

Cloudflare Spectrum proxies arbitrary TCP/UDP but is billed per GB after a tiny free allowance. At ingestion volume, this is prohibitively expensive and not recommended.

In a DFE deployment, do not write this Service by hand. dfe-infra renders the receiver's public door from exposure.groups.ingest (dfe-infra/docs/ingest-edge.md). With door loadbalancer it renders one load balancer for the TCP ports and one for UDP, plus an ingest NetworkPolicy, and none of these until the allow list names someone. The allow list becomes each load balancer's loadBalancerSourceRanges, a /0 in it marks the Service dfe.hyperi.io/ingest-fence: allow-all, and on AWS exposure.public.eipAllocations pins Elastic IPs per subnet. The Service below is for running the receiver without dfe-infra.

Same-AZ targeting: To avoid the per-GB cross-zone data charge, configure the NLB target group to use same-AZ routing. This needs your receiver pods to be spread across AZs (which they should be for HA anyway).

# Kubernetes Service annotation for NLB
apiVersion: v1
kind: Service
metadata:
name: dfe-receiver
annotations:
service.beta.kubernetes.io/aws-load-balancer-type: "external"
service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: "ip"
service.beta.kubernetes.io/aws-load-balancer-scheme: "internet-facing"
# Disable cross-zone to avoid the per-GB cross-zone data charge
service.beta.kubernetes.io/aws-load-balancer-attributes: "load_balancing.cross_zone.enabled=false"
spec:
type: LoadBalancer
ports:
- name: http
port: 8080
targetPort: 8080
protocol: TCP
- name: grpc
port: 6000
targetPort: 6000
protocol: TCP
- name: beats
port: 5044
targetPort: 5044
protocol: TCP
# ... additional ports

Defence-in-Depth Summary​

The layers, outer to inner:

LayerComponentWhat it doesWhat it stops
DNS and proxyCloudflare, proxy modeL3/L4/L7 DDoS mitigation, WAF rules (5 on Free, 20 on Pro), IP reputation, bot mitigationVolumetric DDoS and known-bad addresses
Cloud load balancerAWS NLB, same-AZ targetsL4 load balancing, a static IP for the Cloudflare origin, health checksTraffic reaching a pod that is down
Kubernetes gatewayEnvoy GatewayRate limits, connection limits, request timeoutsRate abuse, slow clients, connection floods
Community reputationCrowdSec, through Envoy's ext_authzThe community blocklistAddresses other sites have seen attacking
Applicationdfe-receiverAuth, body limit, timeouts, concurrency cap, 503 backpressure, JSON validationUnauthorised senders and malformed or oversized input
TransportTLS and mTLSEncryption and client certificatesEavesdropping and impersonation
DownstreamCircuit breaker and backpressure in front of KafkaShedding load the destinations cannot takeA destination outage cascading back up

Deployment-time fronting:

LayerComponentWhen to Deploy
Envoy Gateway ClientTrafficPolicyConnection limits + request timeout CRDsAny K8s deployment
Envoy Gateway BackendTrafficPolicyRate limiting CRDsProduction K8s
Cloudflare DNS proxyDNS config changeInternet-facing deployments
CrowdSec + Envoy ext_authz bouncerHelm + SecurityPolicy CRDsHigh-security deployments

Further reading:

Axum and Tower:

Kubernetes ingress and gateway lifecycle:

Envoy Gateway:

AWS pricing:

Cloudflare:

Open-source security: