Sipar architecture

How Sipar carries traffic into the cluster and between services.

Sipar has two parts, Sipar Gateway and Sipar Mesh, and a control plane, made of the gateway controller, the admission policies and the mesh control plane, that configures both. Everything runs inside the organisation’s own cluster, on Envoy, the Kubernetes Gateway API and Istio’s ambient mode, used unmodified.

The parts

Three layers, inside the organisation’s own cluster.

Customers and partners HTTP, gRPC, TCP and TLS
Control plane Gateway controller, admission policies and mesh control plane configuration → Sipar Gateway
Sipar Gateway Envoy proxies, two or more, on separate nodes where possible Firewall · rate limits · cache · access log
Shared store Valkey or Memcached, in the cluster: counters and cached responses counters and cached responses ↔ Sipar Gateway

Sipar Mesh: workload identity and mutual TLS

A team’s namespace Its own listener set and routes, and its applications
Another team’s namespace Isolated from the first: its mistakes stay its own

mutual TLS between services

Traffic from customers and partners reaches Sipar Gateway, which the control plane configures and which keeps its counters and cached responses in the shared store. The gateway routes each request to a team’s namespace. Between services in the mesh, traffic is encrypted with mutual TLS.
Sipar Gateway
Envoy proxies that receive every request from outside the cluster. They terminate TLS, apply access rules, the firewall, the cache and rate limits, and route the request to the right service. The gateway in detail
Control plane
Reads the routes and policies that teams write as Kubernetes resources, checks them, and configures the proxies. Mistakes are refused when applied, with a message. What can only be checked when loaded is reported on the resource, and the working configuration stays in force.
Shared store
The organisation’s own Valkey or Memcached, in the cluster. It holds rate-limit counters and cached responses, so every gateway replica sees the same counts and the same cache.
Team namespaces
Each team publishes its own listeners, routes and policies from its own namespace. A mistake in one team’s configuration is refused for that team alone.
Sipar Mesh APPROVED
Gives every workload in an enrolled namespace a cryptographic identity, and encrypts traffic between services with mutual TLS, with no proxy beside each application. The mesh in detail

The path of one request

Seven steps, in a fixed order, before the application answers.

The order is part of the design. Requests refused by basic authentication or an address list never reach the firewall, and the firewall runs before the cache, so a blocked request is never answered from it.

  1. 01 TLS The connection is decrypted at the gateway with the route’s certificate. Certificates are issued and renewed by cert-manager.
  2. 02 Access Address lists and basic authentication. A request that is not allowed ends here.
  3. 03 Firewall OWASP Top 10 (2021) rules, the team’s own allow and block rules, country and network blocking, and per-client limits. The firewall in detail
  4. 04 Cache A response already in the shared store is returned without reaching the application.
  5. 05 Rate limit The route’s limits, counted across every gateway replica, protect the application from more traffic than it can serve. A cached response counts against the limit when the route chooses it.
  6. 06 Route The request is sent to the team’s service with a request identifier, which also appears on the response.
  7. 07 Application The application answers, and the gateway writes one structured access-log line, with no credentials or query strings.

Availability

Built to keep serving through failures and upgrades.

  • Two or more gateway proxies run on separate nodes where the cluster has them, so the loss of one node does not stop traffic.
  • Upgrades replace proxies one at a time, and cluster maintenance waits for a proxy to be ready elsewhere.
  • If the cache cannot be reached, requests go to the application instead of failing.
  • Each failure behaviour is stated in the documentation, and the gateway’s own components raise alarms.

Separation between teams

One gateway, shared safely by many teams.

  • Each team writes its policies in its own namespace, and they apply only to its own routes.
  • One team’s invalid configuration is refused without changing any other team’s routes.
  • Cache entries and counters are kept apart for each team.
  • Inside the mesh, traffic between services is encrypted with mutual TLS, and rules can depend on which service is calling, not only on its address.

Licensing and support

On BKE from 2.7.0 onwards, or on another Kubernetes distribution through Bahriya Tersane.

On the Bahriya Kubernetes Engine

From 2.7.0 onwards, included with every licence at no extra price, and installed and upgraded with the cluster.

On other Kubernetes distributions

Part of the Bahriya Tersane licence, installed from the Tersane catalogue, with ticketed support from within the GCC.

Sipar is a product of Mamluk. Envoy, Istio and cert-manager are projects of the Cloud Native Computing Foundation. OWASP is a trademark of the OWASP Foundation, which does not endorse Sipar.

Sipar, pronounced si-par, is the Persian word for a shield.