Skip to content

v18.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 04 Dec 17:14
· 3 commits to master since this release

Otoroshi version 18.2.0

Highlights

Post-quantum TLS (#2980)

Otoroshi now negotiates hybrid post-quantum key exchanges (ECDHE + ML-KEM, FIPS 203) on the TLS 1.3 connections it terminates and on the ones it opens to its backends. Traffic recorded today can no longer be decrypted later by a quantum computer ("harvest now, decrypt later"), and since the gateway terminates TLS for many applications at once, all of them are protected without touching their code.

  • On by default, without cutting anyone off: the default key exchange groups (otoroshi.ssl.namedGroups) list the hybrid groups X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024 first, then the classical ones. Clients that support post-quantum key exchange (recent browsers, OpenSSL 3.5+, curl built against it, Java 27...) use it, the others negotiate a classical group as before.
  • HTTPS (main port, Netty server, custom HTTP listeners) on JDK 25.0.5 or later (JEP 527 was backported to the JDK 25 updates) or JDK 27 or later. On older JDKs, JDK 26 included, the setting is ignored and the JVM defaults apply. At startup, the otoroshi-ssl-provider logger prints Using TLS named groups: ... when the list is active.
  • HTTP/3 on any JDK: QUIC relies on BoringSSL, which supports X25519MLKEM768.
  • Calls to backends: otoroshi.ssl.outboundNamedGroups (OTOROSHI_SSL_OUTBOUND_NAMED_GROUPS) offers the hybrid groups first over HTTP/1.1, HTTP/2, HTTP/3, websockets and TLS to TCP service targets, and falls back to a classical group with the backends that do not support them. It is kept apart from the listeners list on purpose: refusing classical clients at the edge does not cut the backends that are not ready yet.
  • Hybrid-only mode: OTOROSHI_SSL_NAMED_GROUPS="X25519MLKEM768,SecP256r1MLKEM768,SecP384r1MLKEM1024", together with otoroshi.ssl.protocols = ["TLSv1.3"], refuses any connection that is not protected by a post-quantum key exchange.
  • Per listener: a custom HTTP listener can set its own namedGroups (also in the backoffice form), for instance a post-quantum-only listener next to the standard one that keeps accepting every client.
  • New Docker images on JDK 27: maif/otoroshi:18.2.0-jdk27 (Eclipse Temurin) and maif/otoroshi:18.2.0-correto-jdk27 (Amazon Corretto). The default image keeps running on JDK 25, the current LTS.

The full guide, with the requirements, the configuration and how to check what a client negotiates with openssl or curl: https://maif.github.io/otoroshi/manual/docs/topics/post-quantum-tls/

Outbound mTLS on the default HTTP client (#2985)

The backend targets with a TLS config (client certificates, trusted certificates, trust_all) were always called with the Pekko HTTP client. The new otoroshi.ssl.wsClientTlsIdentities.enabled flag (OTOROSHI_SSL_WS_CLIENT_TLS_IDENTITIES_ENABLED, off by default) calls them with the default HTTP client (Play WS, backed by async-http-client), like every other backend.

  • Each TLS identity gets its own client and connection pool, running on the event loop of the default client: a connection opened with a client certificate is never reused with another one, two routes calling the same host with different client certificates use two pools, and two routes with the same TLS config share one. A renewed certificate makes a new identity.
  • An identity unused for idleTimeout (10 minutes by default) is released, and at most maxClients identities (1000 by default) are kept at the same time.
  • The outbound named groups apply to these connections too, post-quantum included.
  • The routes that explicitly use the Pekko HTTP or the Netty client, the configurations forcing one of them everywhere, the targets with an ip_address and the HTTP/2 and HTTP/3 targets keep their current client.

See https://maif.github.io/otoroshi/manual/docs/topics/tls/#which-http-client-calls-a-backend-with-a-tls-config

Fixes

  • The HTTP/3 client now uses the TLS config of the target (client certificates, trusted certificates, trust all) like the HTTP/1.1 and HTTP/2 clients, can reach a target that has an ip_address, and caches its TLS contexts per destination and per TLS settings, so two targets on the same host and port with different client certificates no longer share a TLS context.

Documentation

for more details see the full changelog below

https://github.com/MAIF/otoroshi/milestone/144?closed=1
v18.1.0...v18.2.0
https://github.com/MAIF/otoroshi/releases/tag/v18.2.0

Added

Contributors