swap-arrowsAPI Gateway & Security

Configure gateway components, API exposure, authentication, streaming, rate limits, and TLS or mTLS for secure access to Rierino services.

The gateway layer exposes backend capabilities to clients and applies the controls around them. It maps requests to runners, enforces authentication, shapes responses, and adds resilience and transport security.

What this section covers

  • Gateway Servers covers the gateway runtime, controller endpoints, request and trace IDs, refresh behavior, and shared security settings.

    • Gateway Tokens define token lifetimes, claims, cookies, auth providers, and session settings.

    • Gateway Channels map public paths to backend systems and apply per-path auth, aliases, headers, retries, and resilience rules.

    • Gateway Services configure direct gateway integrations for Kafka and file operations.

    • Gateway Systems define how the gateway reaches runners over RPC, CRUD, Kafka, or RSocket.

  • APIs covers the exposed gateway endpoints for requests, auth, tracking, files, control, commands, and ad hoc messages.

  • Server Sent Events explains how /api/stream/... turns repeated saga calls into an SSE feed using list, continue, wait, and next.

  • Rate Limiting covers built-in user and IP based throttling at gateway and channel level.

  • Dynamic TLS & mTLS explains runtime certificate loading and rotation for both server and client connections.

How the pieces fit together

  1. A client calls a gateway API on a channel.

  2. The channel applies auth, path rules, headers, and resilience.

  3. The channel uses a system to reach the target runner or service.

  4. Tokens and sessions enrich the request with identity and claims.

  5. The gateway returns JSON by default, or another supported format.

  6. Optional controls such as rate limits, SSE, and mTLS apply at the edge.

Common use cases

  • Expose a saga or CRUD endpoint through a public API.

  • Protect paths with token-based auth and role checks.

  • Add retries, circuit breakers, and rate limits for unstable dependencies.

  • Stream incremental results to clients over SSE.

  • Secure gateway-to-runner traffic with rotated TLS or mTLS certificates.

  • Publish generated OpenAPI docs for API consumers.

Start here

Last updated