Enforcing encryption at scale
Meta enforces TLS on internal service traffic with SSLWall, a host-level daemon plus eBPF programs that detect and cut off plaintext connections, chosen over L7 firewalls to keep the blast radius small and allow fine-grained rollout. It combines a tc-bpf filter, kprobes on tcp_connect and tcp_v6_destroy_sock, and BPF maps. It supports a passive monitoring mode, bypasses for BGP/SSH, and plaintext-then-TLS flows like STARTTLS and HTTP CONNECT. Lessons included handling TCP Fast Open ordering via kprobe prehandlers, BPF program size limits, and keeping CPU overhead trivial with early exits and arrays instead of LRU maps. For noncompliant long-tail apps, Transparent TLS uses a cgroup/connect6 BPF hook to redirect connect() calls to a local encrypting proxy, skipping connections that already use TLS.
Related posts
- OpenAI and Cisco introduce Shirudo
OpenAI easyNovice
Shirudo is an open-source runtime from OpenAI and Cisco that uses eBPF "shields" to block vulnerable code paths on running Linux systems while patches are prepared, without restarts. Operators can monitor a proposed shield's effect on legitimate traffic before enforcing it. Shields are cryptographically signed, checked by the eBPF verifier, and recorded via TPM-backed attestation. In a controlled test, a Codex-generated shield added an input check to Java's Base64 decoder in a live Elasticsearch process and blocked a Java4Shell exploit. The project is BSD 2-Clause licensed, with BPF programs dual-licensed BSD/GPL.
- Proxy Please: Help People Connect to Signal
Signal easyNovice
With several countries blocking Signal, users can turn on the built-in censorship circumvention setting or connect through community-run Signal TLS proxies, configured by tapping a signal.tube link or entering details manually on Android or iOS. The proxy looks like ordinary HTTPS traffic: there is no plaintext CONNECT request, each server gets a valid TLS certificate, and it only forwards bytes to the Signal service. Signal's own TLS session runs inside that tunnel, so the proxy operator cannot read the traffic. To keep proxies from landing on censors' block lists, operators are asked to announce them under #SignalProxy and share connection details privately instead of posting links publicly.
- We’re making Tailscale faster
Tailscale mediumAdept
Tailscale is speeding up its Linux and Android data plane by parsing small packets in place inside the large GRO read buffer instead of copying each into its own 64 KiB buffer, which gave roughly a 5% speed-up. It is also shortening packet queues and using writev to hand scattered packet pieces to the kernel without copying. The freed memory funds a multi-queue pipeline for subnet routers, app connectors and exit nodes, where each flow is pinned to one of several parallel lanes sized to CPU resources, preserving per-stream ordering while using more cores. Netmap caching lets clients start from an on-disk network map when the control plane is slow or unreachable, starting one to two orders of magnitude faster on warm starts, with caveats for huge tailnets and wear-sensitive storage.
- Post-quantum readiness for TLS at Meta
Meta Engineering hardMasterMeta has deployed hybrid X25519+Kyber key exchange in its Fizz TLS library for most internal service traffic, prioritizing store-now-decrypt-later protection where it controls both endpoints. Kyber768 is the default, but Kyber512 is used where the larger 1184-byte keyshare pushed resumption ClientHellos (with PSKs) past the TCP MSS and broke TCP Fast Open, adding an extra RTT. Rollout surfaced a race condition in liboqs's Keccak dispatch causing segfaults, fixed upstream with pthread_once, and HelloRetryRequest thrashing during cross-host resumption, solved by splitting TLS session scopes into classical and hybrid. The hybrid group cost about 40% more CPU than X25519 alone.
- Using short-lived certificates to protect TLS secrets
Meta Engineering mediumAdeptMeta now limits TLS private key exposure on its edge to 10 days by rotating short-lived certificates daily, after rejecting CRL/OCSP revocation (latency, failure modes), remote signing from datacenters (vulnerable to backbone and datacenter outages) and delegated credentials (insufficient browser support). Certificates are issued months ahead from third-party CAs and moved from a locked-down secret store to an edge-only store just 10 days before expiry, which keeps CA issuance off the critical path and provides ready backup certs for emergency rotation. A ConfigBuilder groups certs into expiry-dated bundles, validates them, and rolls them out in stages: canary, then about 100 machines, then the full fleet after a day of baking. The OffloadService signs with both old and new keys during rotation, and caching plus staggered fetches keep daily rotation from overloading the secret store.