rama-0.4.02026-08-20
Rama 0.4.0 is the first regular release train after 0.3.0. It came with
a bunch of improvements, as well as another correctness and reliability
pass for our Apple Network Extension (NE) foundations. Our Peek
and relay concepts were also improved. A last-minute improvement
also came at our doorsteps in the form of WebSocket support for HAR.
It's a feature that originated from chromium and now is also supported by rama.
This release brings system proxy support for all supported platforms.
In function this we also added rama-js support (Javascript runtime
support within a WASM runtime) as well as rama-pac to add
Proxy Auto Configuration (PAC) support. With the latter making use
of the possibility to run a javascript (JS) runtime in an isolated manner,
to safely and swiftly run PAC scripts.
Together with improved environment variable, native proxy setting auto-discovery
and refresh hooks, as well as the ability to add bypass rules (e.g. NO_PROXY)
we have now for the first time full system proxy support for network clients built with rama.
The rama CLI tool also makes use of it by default.
It is also the first release where we have ttRPC support,
a lightweight alternative to gRPC running directly on
the transport layer (e.g. tcp). And for those use cases where you do still want gRPC,
it is now also possible to define your models using macros provided by rama
in case you do not fancy those proto files.
Please read Breaking API Changes before upgrading.
As always, this changelog calls out the user-visible work; the code diff is the
authoritative source of truth.
Community
Thank you to everyone who contributed code, reviews, documentation, testing,
bug reports, ideas, and production feedback during the 0.4 cycle. This release
includes work from Glen De Cauwsemaecker, Brecht Stamper, Abdelkader Boudih,
bitterpanda, Abhinav, Sean McArthur, 0x676e67, Bailey Hayes, Brent Echols,
Catwoman08, Clemens Losbichler, Darius, Dorian Verlaine, Frédéric Soumaré,
Jess Izen, Jihun Kim, John Howard, Langning Zhang, Logan, Martin Taillefer,
Morax, MsfPablo, Murilo Silva, Murph Murphy, Nam2ee, Recoordinate, Sam
Landfried, Sander Saares, SCADA StrangeLove, dswij, tottoto, Árni Dagur, and
the other upstream contributors whose work arrived through the HTTP stack
sync. Thank you also to zeeshan8281 for reporting the CLI default-command
regression (#1089).
Thank you also to our GitHub Sponsors for directly funding Rama development,
and to our commercial partners for funding a significant part of the work in
this cycle. If you want to support Rama, you can become a
GitHub Sponsor. If your organisation is
looking for a long-term partner around proxies, protocol work, support,
training, or custom integrations, see ramaproxy.com.
Highlights
Policy-driven client routing**: the client connector now carries a
protocol-independent ConnectRequest, supports ordered direct and proxy
routes with fallback and failure backoff, and can resolve routes from
explicit configuration, proxy environment variables, operating-system proxy
settings, and PAC scripts. Rama CLI applies these sources with a predictable
precedence while preserving decisions already made by an outer layer
(#1095, #1098, #1099, #1103, #1124).
Sandboxed JavaScript and PAC**: new rama-js and rama-pac crates provide
bounded JavaScript execution and classic plus Microsoft IPv6-aware PAC
helpers. PAC programs are compiled and reused, DNS goes through Rama, and
resource, time, result, and disclosure budgets are configurable. The CLI can
evaluate and generate PAC files (#566, #1099, #1103, #1106, #1124).
Traffic policy and blocking stacks**: services can now enforce concurrent
request and keyed rate limits, shape stream or datagram bandwidth, and choose
between waiting and failing fast. A continuously driven blocking runtime,
HTTP(S) client, response reader, and WebSocket APIs make the same foundations
available to synchronous applications (#1100, #1115).
Streaming capture and HAR WebSockets**: HTTP body capture no longer needs
to collect an entire body before handing data to a sink. Traffic recording
streams frames and messages, HTTP request/response parts gained serde
support, and HAR exports can include Chromium-compatible WebSocket messages
in chronological request order (#1102, #1105, #1118, #1123, #1127).
Safer TLS and proxy handshakes**: custom trust anchors and certificate
pinning work across Rustls and BoringSSL, TLS tunnels use an explicit server
identity, HTTP CONNECT establishes proxy egress before returning success by
default, and TLS relay egress behavior is configurable (#1072, #1110, #1120,
#1121).
Protocol and platform growth**: this cycle adds lightweight ttrpc,
protobuf-free gRPC services with custom codecs, Linux systemd-resolved
Varlink DNS, local interface discovery, modern Apple Network Extension UDP
callbacks, and native unified logging (#1064, #1069, #1087, #1091, #1093,
#1094).
HTTP correctness and upstream sync**: Rama's maintained HTTP, HTTP/2, URI,
and middleware forks were synchronized with upstream fixes and performance
work. The result includes bounded tiny-frame handling, safer trailers and
header values, correct dropped-stream capacity accounting, pooling fixes,
and fewer lock-held flushes (#1127).
Recommendations
Fail fast on known non-HTTP traffic**: mixed-protocol listeners using
HttpPeekConfig should consider
.withknownnonhttpprotocol_methods(). It rejects request-line prefixes
commonly belonging to Redis (PING), SMTP (EHLO/HELO), FTP (USER),
IRC (NICK), SSH, and HAProxy PROXY v1 instead of waiting for more HTTP
bytes. The match is deliberately case-sensitive and prefix-based; do not use
the preset if an HTTP extension method such as PING or PINGX is valid for
your application. Use .withskippedhttp1_methods(...) for an explicit
list, and pair a configured peek timeout with PeekTimeoutPolicy::FailClosed
where ambiguous traffic must never reach the fallback service (#1076, #1104,
#1108, #1119).
Recompute routes per attempt**: put DNS, PAC, proxy selection, and other
target-derived layers inside redirect and retry layers. Extensions are now
forked for each hop or attempt, so this placement recalculates policy for the
actual target without leaking decisions from a previous request (#1098,
#1103). Rama CLI uses NO_PROXY, an explicit --proxy, proxy environment
variables, and operating-system settings in that order. System settings are
routing input for clients that honor them, not an enforcement boundary; use
transparent interception when all traffic must traverse the proxy (#1124).
Choose PAC failure behavior deliberately**: system PAC defaults to failing
the request when the script cannot be fetched, compiled, or evaluated. Keep
that fail-closed behavior when PAC is an enforcement boundary. Select the
browser-like direct fallback only when bypassing the proxy is acceptable;
PAC selects routes but does not itself provide proxy authentication, TLS, or
connection reuse (#1099, #1103, #1124).
Place admission controls before expensive work**: apply rate limits before
concurrency limits when rejected or delayed traffic should not occupy a
scarce service slot. Use keyed limits for tenant/client fairness, and choose
shared rather than per-connection throttling when the configured bandwidth
is meant to cap an aggregate. KeyedRatePolicy allows inputs with no
derivable key by default; set .withmissingkey_allowed(false) when a
missing identity must fail closed (#1100).
Treat server identity as security input**: pass the actual destination
identity into TLS tunnels and keep automa
rama-0.3.02026-07-07
Rama 0.3.0 is here. This is a big release: the 0.3 series started with the
first alpha on 2025-07-07 and carried a long line of protocol work, API
redesign, platform hardening, and real-world proxy features all the way to this
final release.
For people coming from 0.2: expect breaking changes. The central Context
model is gone, service inputs and outputs have been generalized, extensions are
now the main way to carry request, response, connection and transport metadata,
and Rama owns more of its HTTP and URI surface directly. The migration cost is
real, but it buys a cleaner service model, stronger protocol fidelity, better
proxy ergonomics, and much more room for the next release trains.
This also closes the long alpha era. From here on we aim to ship regular Rama
releases on a 2 to 8 week cadence. Versioning will continue to follow SemVer
semantics.
Community
Thank you to everyone who contributed code, reviews, documentation, testing,
bug reports, ideas, and production feedback during the 0.3 cycle. This release
includes work from Glen De Cauwsemaecker, Brecht Stamper, Abdelkader Boudih,
Nicolas Trippar, M-Kusumgar, Ali Tariq, Camille Louédoc-Eyriès, sim-hash,
Irfan - ئىرفان, Yukun Wang, hafihaf123, Aydan Pirani, Kenny Lau, MeerKatDev,
Maarten Deprez, Dominic Lindsay, Xavier Lambein, Stijn De Clercq,
Shabbir Hasan, Antoine Bernardeau, Darshil Patel, Gautham Venkataraman, FS,
Elias, Azzam S.A, Nikita, Ian Wagner, bitterpanda, Elizabeth Gonzales Belsuzarri,
0x676e67, KoHcoJlb, and everyone else who helped shape the release.
Thank you also to our GitHub Sponsors for directly funding Rama development,
and to our commercial partners for funding a significant part of the
work in this cycle. If you want to support Rama, you can become a
GitHub Sponsor. If your organisation is
looking for a long-term partner around proxies, protocol work, support,
training, or custom integrations, see ramaproxy.com.
Alpha Train Recap
* 0.3.0-alpha.1 (2025-07-07) opened the cycle with the first versions of
rama-ws, rama-socks5, rama-unix, built-in Datastar support, SSE work,
richer observability, PeetPrint and TLS fingerprinting improvements, protocol
peek routing, and a much larger proxy example set.
* 0.3.0-alpha.2 (2025-08-05) added ACME support, the first rama-crypto
crate with JOSE/JWK/JWA/JWS support, connection pooling, TCP connector pools,
WebSocket fingerprinting support, target HTTP version enforcement, and the
first anti-bot examples.
* 0.3.0-alpha.3 (2025-08-29) promoted Windows to tier-1, added signed
Windows CLI releases and winget packaging, custom X.509 stores,
WebSocket extensions, HTTP-to-HTTPS upgrade redirects, include-dir serving,
router quality-of-life improvements, and the unified HTTP/SOCKS proxy
connector path for EasyWebClient.
* 0.3.0-alpha.4 (2025-12-27) carried the main architectural refactor:
removal of Context, the extensions-first design, native forked HTTP
request/response types, service Input/Output naming, CLI restructuring,
HAR support, stunnel support, typed headers, NDJSON, redirects, compression
improvements, and more TLS/ACME work.
And while that was a lot already... even more happened in the 6 months after
that... While we will do our best to cover it all in this changelog, please do
always consider the code diff as the authoritative source of truth.
Highlights
Extensions-first architecture**: removed the centralized Context type and
moved request, response, connection, transport, state and executor metadata
into extensions (#685, #706, #711, #714, #715, #720, #727, #856, #869,
#873, #884, #914, #956, #1001).
Generalized service model**: the core Service APIs now speak in terms of
Input and Output instead of HTTP-specific request/response language,
making the same stack model fit HTTP, TCP, TLS, proxy and transport layers
better (#747, #755, #878).
Native HTTP and URI foundation**: Rama now owns more of its HTTP types,
header behavior and URI model directly, including first-class rama-net URI
support, Host/Authority overhaul, path segment enrichment, query lookup and
mutation helpers, integrated original header order/casing preservation,
improved HTTP version conversions, and the removal of the external http
crate from the core path (#696, #921, #934, #1006, #1027, #1030, #1039,
#1045, #1046, #1048, #1059).
New protocol crates and gateways**: added WebSocket, gRPC, FastCGI, Unix
sockets, SOCKS5, ACME, crypto, and Apple Network Extension (NE) support
(Transparent Proxy only for now, more providers to follow in later versions),
with examples and docs around real server, client, gateway and proxy use
cases (#491, #582, #603, #611, #615, #790, #836, #875, #899).
Proxy and TLS depth**: expanded transparent proxy support across macOS,
Linux and Windows, improved MITM relay behavior, certificate mirroring,
CRL/OCSP handling, native trust-store defaults, SNI routing, protocol peeking,
ALPS, zstd certificate compression, and Boring/Rustls configuration APIs
(#551, #555, #567, #573, #594, #677, #834, #845, #865, #900, #903, #960,
#966, #968, #970, #974, #1015, #1017).
CLI and operational tooling**: rama-cli now has a clearer send, serve
and probe hierarchy, signed Windows releases, winget publication, stunnel
use cases, curl export, HAR recording/replay, JSON selection, feed reader
support, richer echo and fingerprinting services, and Linux/Windows/macOS
release target improvements (#629, #683, #689, #699, #732, #798, #810,
#955, #1043).
Protocol correctness and security hardening**: many fixes landed across
HTTP/1, HTTP/2, WebSocket, SOCKS5, HAProxy, file serving, URI parsing, TLS,
DNS, Apple NE FFI, log injection, path traversal, mTLS client authentication,
and release supply-chain surfaces (#770, #895, #896, #913, #916, #917, #945,
#972, #1003, #1005, #1021, #1022, #1023, #1031, #1032, #1034, #1042, #1054).
Added
HTTP and Web APIs**:
* WebSocket support in rama-ws, including client and server handshakes,
per-message deflate, HTTP/2 WebSocket support, 100% Autobahn compliance,
examples, CLI support and fingerprinting integration (#615, #632, #663,
#672, #729, #758, #895).
* gRPC support through rama-grpc, including build support, examples,
compression tests, health checks, gRPC-Web coverage and an OTLP exporter
path (#790, #799, #808, #815, #991, #992).
* Streaming RSS 2.0 and Atom 1.0 support, RSS podcast helpers, strong typed
feed URIs, six extension namespaces, lossless parse/serialize round-trips,
and an interactive rama-cli feed reader (#882, #955, #962, #988).
* rama-json with streaming JSON tokenization, RFC 9535 JSONPath selection,
HTTP body capture/rewrite integration, typed JSONPath builders, CLI JSON
selection, fuzz-style tests, and vendor/RFC coverage (#1043).
* Multipart support, octet-stream extraction, NDJSON and streaming JSON
processing, SSE response helpers, Datastar integration, declarative partial
updates and HTML rewriting/tokenizing support (#576, #599, #625, #703,
#704, #718, #888, #927, #937, #963, #1043).
* FastCGI gateway support through rama-fastcgi, including HTTP adapters,
streaming bodies, configurable caps/timeouts, CGI constants, and PHP-FPM
TCP/Unix-socket examples that run in CI (#899).
* More typed headers and header helpers, including X-Robots-Tag,
X-Clacks-Overhead, WebSocket headers, HSTS preload, COEP/COOP/CORP,
Permissions-Policy, Referrer-Policy, Content-Type, Cache-Control,
Accept-CH and Critical-CH (#663, #707, #734, #907, #948, #953, #977).
* HTTP QUERY method support, HTTP-to-HTTPS upgrade redirects, advance
rama-0.3.0-alpha.4预发布2025-12-28
This will be the last alpha release of rama 0.3.0. Besides some minor stuff there are still
two big features that we want to have done before shipping 0.3.0:
- rama-grpc: Grpc support for rama (#488; funded by one of our commercial partners);
- impl a new Uri implementation in rama-net (#724) and make use of that:
- as the uri for Request, improving that further;
- replace RequestContext and TransportContext with scoped traits to get
get info such as path and Uri from input in a stateless simplified way (#724)
These changes will also unlock some other minor improvements that we still plan to do.
You can check https://github.com/plabayo/rama/milestone/2 for the full 0.3 milestone,
Note that not everything in that list will be done prior to 0.3. Some of it we will probably
drop or move to another milestone.
Once the Uri, Grpc and some other minor improvements and feature work (e.g. multi-part support)
is done we will start with release candidates (rc) for rama.
We plan to do 1 or 2 of these with a final 0.3 release at the end of January (2026).
Once we released rama 0.3 we plan to start doing a regular release train of six weeks.
The idea is to release whatever is in main, which will be a patch- or major release depending if we have
breaking changes or not.
Community
Thank you to the contributors of this release: Glen De Cauwsemaecker [glen@plabayo.tech], Abdelkader Boudih [terminale@gmail.com], Nicolas Trippar [ntrippar@gmail.com], M-Kusumgar [98405247+M-Kusumgar@users.noreply.github.com], Brecht Stamper [stamper.brecht@gmail.com], Ali Tariq [raja.ali945@gmail.com], Camille Louédoc-Eyriès [clouedoc@icloud.com], sim-hash [84858164+sim-hash@users.noreply.github.com], Irfan - ئىرفان [irfanabliz914@gmail.com], Yukun Wang [airycanon@airycanon.me], hafihaf123 [misobuchta@gmail.com], Aydan Pirani [aydanpirani@gmail.com], Kenny Lau [72945813+lauk20@users.noreply.github.com], and MeerKatDev [lcampobasso@gmail.com]. We also want to extend our thanks to all the individuals in the wider ecosystem and the maintainers of the third-party crates that make this work possible.
Huge shoutout to Brecht Stamper [stamper.brecht@gmail.com] for stepping up to help maintain rama and driving major changes this release. His work was instrumental in the service and state API redesign, ACME support, TLS improvements, and Pooled Connections, among many other contributions.
Major Architectural Refactor
Removal of Context
In a fundamental shift for the 0.3 milestone, the centralized Context type has been removed in favor of a decentralized, extension-based architecture. This aligns Rama more closely with standard Rust middleware patterns and improves flexibility for complex service stacks.
Context Type Removal: The Context object is no longer passed through services. Data, state, and executors are now managed via Extensions** attached directly to the Request, Response, or Connection (#711, #714).
Forked HTTP Modules**: Integrated and forked parts of the http crate's request/response modules into Rama to provide native support for our specific Extension requirements and performance optimizations (#696).
Extensions-First Design**: Extensions are now supported throughout rama-http-core for both HTTP/1.1 and HTTP/2 (#706, #727).
State Migration**: State management has moved from Context to Extensions. New utilities like AddInputExtensionLayer, AddOutputExtensionLayer and IntoEndpointServiceWithState
have been introduced to handle state injection (#685, #720).
During this process we played at some point with the concept of Parent Extensions (#715).
We have however simplified, the concept even further and at this point it is
a list of extensions which can be forked.
We are not yet 100% finished with this design and there will probably be some more minor changes
prior to the actual release of rama 0.3. The biggest design changes around these concepts
are however behind our back.
Input/Output
the Service trait now uses the type parameters:
- Input, instead of Request;
- Output, instead of Response;
This aligns much better with Rama's future but even for its present.
For example service and layers also operate on the transport and tls layers,
where the parameter types Request and Response make no sense.
Added
CLI & Tooling**:
Major Refactor**: The rama-cli now features a restructured command hierarchy with send (unified HTTP/WS client), serve, and probe subcommands (#732).
Stunnel Support**: Added a stunnel-like feature to rama-cli to support TLS tunneling use cases (#453, #629).
Export to curl**: Support for exporting HTTP requests to curl commands directly from the CLI or via service layers (#509, #699).
HAR Support**: Introduced an HTTP Archive (HAR) recorder layer to capture and export traffic for debugging (#357, #646, #694).
Windows Signing: CLI releases for Windows are now officially signed via SignPath.io**.
New CLI Features**: Added probe tcp command and support for the --resolve flag in the send command to override DNS for specific domains.
Networking & Protocols**:
Discard Protocol: Implemented RFC 863 Discard service** for both TCP and UDP (#718).
Fingerprinting: Added Akamai HTTP/2 passive fingerprinting** support, integrated into the fingerprinting and echo services (#517, #719).
Post-Quantum Crypto: Re-integrated PQ encryption** support in boring (e.g., X25519MLKEM768) (#721, #722).
OTLP Integration**: Added OTLP and subscriber support directly into the core rama crate to reduce external dependency overhead.
* Built-in overwrite of span and trace logic to make it compatible with OTLP;
HTTP Features**:
New Typed Headers**: Support for X-Robots-Tag (#382, #707), X-Clacks-Overhead (#620, #734), DNT (Do Not Track), and Sec-GPC.
Data Streaming: Added support for NDJSON** (Newline Delimited JSON) and improved JSON body streaming (#703, #704).
Octet-stream**: Implemented octet-stream response support (#718).
HSTS: Added an HSTS** (HTTP Strict Transport Security) example and e2e tests (#00fff66).
Redirects**: Added redirect/rewrite/forward HTTP services and layers (#717).
TLS & ACME**:
DNS Challenges: Support for DNS-01 challenges** in rama-acme and TXT record lookups in rama-dns.
Wildcard Support**: Added support for wildcard domains in rama-net and better wildcard handling in the DynamicIssuer.
ACME Certs**: Support for downloading ACME certificates as raw PEM bytes.
Changed
API Naming Conventions**:
Applied consistent prefixes where it helps in meaning (no need to apply these everywhere, but where it otherwise is not clear it probably is advised: try (fallible), maybe (optional), set (&mut self) and with (self). These can also be combined for example for a fallible setter: tryset. For Setters we also have a macro to easily define these which we also started to use and apply more (generatesetand_with);
* Renamed AddExtension to AddInputExtension and introduced AddOutputExtension for clearer lifecycle management (#759, #761).
Internal Improvements**:
Performance**: Replaced standard HashMap/HashSet with faster ahash versions (#709).
Stream Libs**: Replaced async-stream with asynk-strim for better performance and DX.
Memory Management**: Updated internal usage of SmallVec and SmolStr to reduce allocations across the workspace.
* These dependencies are also re-exported under rama-utils
Upstream Sync**: Massive sync with upstream forks including hyper, h2 (1xx informational responses support), tungstenite, and tower-http.
MSRV*