# Otoroshi 18: what changes for you

> Every consumer becomes an API key, any plugin can be made conditional, and the whole gateway went through two security audits.

- URL: https://blog.cloud-apim.com/otoroshi-18-what-changes-for-you
- Published: 2026-11-13
- Language: en
- Authors: Mathieu Ancelin
- Topics: Otoroshi, API management, Security, Migration
- Publisher: Cloud APIM (https://www.cloud-apim.com)

---
Otoroshi 18 is not just new foundations. Once the port was validated, we added fine-grained control over the consumers of your APIs, made any plugin conditional, and put the gateway through two full security audits. Here is what changes in practice, and what to check before you upgrade.

## Every API consumer becomes an API key

Until now, only some plans of the API entity really knew who was calling. In version 18, every published plan turns its caller into an API key, whatever it presents: client credentials, a JWT, a client certificate, an OIDC token, or nothing at all. A plan without authentication identifies its callers with an expression, their IP address by default.

Everything an API key carries then applies to the call: quotas, rate limiting, analytics. A public API can rate limit its callers one by one, exactly like an API that requires credentials. And there is now a single place where calls are counted.

## A plugin chain per consumer

A plan, or a single API key, can now bring its own plugins, applied on top of the route's, or in place of them. Two consumers of the same route no longer have to go through the same pipeline:

- the gold plan gets a response cache;
- a partner's key adds a header;
- the trial plan goes through a stricter validator.

Both chains are configured in the plugin designer, right from the plan or the API key.

## Conditional plugins

The new conditional plugin wraps any other plugin and runs it only when conditions are true: on the API key, the authenticated user, the route metadata, the request, the response or the request attributes. "Only apply this rate limiter to free plan keys" becomes a line of configuration, no longer code.

## Trusted proxies

Otoroshi now resolves the client address on its own, the same way on every HTTP server it can run. Declare your reverse proxies as trusted proxies, and the address is read from the trusted end of the `X-Forwarded-For` chain. A client can no longer pick its own IP address to dodge a rate limit or an allow list. The effective configuration is logged at startup.

## Two security audits, and secure defaults

We audited the entire gateway codebase twice. The fixes cover, among other things:

- the rights of the admin API and of the admin UI;
- tenant and team isolation: it is no longer possible to grant rights you do not hold, or to move an entity outside your scope;
- authentication modules: SAML responses are now really checked against the configured issuer, and new modules validate signatures and assertions by default;
- secrets, now masked in exported events.

We also wrote a [production checklist](https://www.otoroshi.io/docs/topics/production-checklist). It is worth ten minutes of reading before any installation or upgrade.

## An admin API described accurately

The OpenAPI document of the admin API was rewritten, with up-to-date schemas and examples. A conformance test suite now checks it against a running Otoroshi. Every gap between the document and the API was a bug on one side or the other, and was fixed where it belonged. For those who drive Otoroshi with GitOps or Terraform, it is a contract you can rely on.

## And also

- WebAuthn works again, for the admin UI as well as for authentication modules.
- Let's Encrypt certificates renew with a fixed margin in days, and duplicates can be cleaned up.
- OpenSearch is supported.
- Remote catalogs sync from Bitbucket Server and Data Center.
- User Analytics lets you choose which families of events are stored.
- Info tokens signed with a keypair carry a `kid` header.
- The Brotli plugin works on Apple Silicon.

## Before you upgrade

For most installations, just run the new version: Service Descriptors migrate to Routes on their own at first startup, with a backup and the same ids. A few cases are worth checking:

| If you… | then… |
| --- | --- |
| run on Java 11 | move to Java 17 or later |
| tuned `akka.*` settings | rename them to `pekko.*` |
| ship in-house Scala plugins | recompile them for Scala 3 (WASM plugins are not affected) |
| deploy on Kubernetes | apply the new CRDs |
| publish public APIs with many distinct callers | set `create_if_missing` to `false` on the plan, so that you do not create one key per caller |
| rely on the 403 status code of the quota plugins | they now answer `429 Too Many Requests` |
| start or stop an API through the admin API | `_start` and `_stop` now require a `POST` |

The 17.x line remains available if you need more time.

## We can help

A major upgrade of your gateway is a good time to take stock of your configuration. The Cloud APIM team, who wrote this release, can help: configuration review, testing the migration on a copy of your data, the upgrade itself. And on [Otoroshi Managed](https://www.cloud-apim.com/otoroshi-managed), we take care of it.

**Further reading**

- [API consumers and plugin flows](https://www.otoroshi.io/docs/topics/api-consumers)
- [The conditional plugin](https://www.otoroshi.io/docs/plugins/conditional-plugin)
- [The Service Descriptors migration guide](https://www.otoroshi.io/docs/topics/deprecating-sd)
- [The full release notes](https://github.com/MAIF/otoroshi/releases/tag/v18.0.0)

Next post: AI Studio, the AI gateway we built on Otoroshi.