Skip to main content

Self-hosted vs SaaS API management for regulated companies

Where the request records, the metrics, the keys and the audit log live, who can read them, and who decides when the gateway is upgraded, on a self-hosted G8.

By Selim Çalık Guides

What self-hosted means

Self-hosted API management runs the console, its database and the gateway clusters in your own infrastructure, on OpenShift, Kubernetes, Docker or virtual machines, including networks without internet access. SaaS management runs the console at the vendor. For a regulated company the difference is where three kinds of data live and who can reach them: the traffic and the records of it, the keys and secrets the gateway holds, and the log of who changed what. With a SaaS control plane, some of each leaves your network by design. With a self-hosted one, none of it has to.

This article goes through the three, and the question of upgrades, on a self-hosted G8 install, showing where each thing is configured so that you can check the same points on any product.

Data residency: the records stay in your stores

G8 does not ship its own data store for traffic. Each Environment names an Elasticsearch or OpenSearch for its request records and a Prometheus for its metrics, and the G8 console reads from those. The form below is the Observability section of the Production Environment after its two connection tests: the log store’s address and the account the console reads with, the Prometheus address, and what each test found, down to the index of this Environment and the label its metrics carry.

The Observability section of the Production Environment: Elasticsearch URL, the username g8-production-server with a stored password, the test result Connected with the store's version and the Environment's index, the Prometheus URL and its test result with the label g8_environment=production present Your stores, your accounts. The test names the index and the label the Environment’s data carries, so one Environment’s reader cannot be pointed at another’s days.

Two accounts per Environment is the setup the installation guides describe: one the gateway writes with, allowed to index only this Environment’s daily indices, and one the console reads with, allowed to read them and delete a day by its name. Both are created by your store’s administrator; What G8 installs and what you provide lists them with the rest.

Traffic Explorer › Settings shows the state of the store the Environment writes to: the connection, the daily index, the logger rule, the index template and the ingest pipeline, the last record and the storage used, and under it the retention in days.

The Status card of Traffic Explorer settings for Staging: log store Connected with its version, the daily index, the logger rule Enabled, where the gateway writes and as which account, the index template and ingest pipeline Applied, the last record and the storage used Everything the console knows about the store, read from the store. The records never pass through a vendor.

With a SaaS control plane, the questions to ask are the mirror image: which of these records are sent to the vendor to render the analytics, in which region they are stored, for how long, and who at the vendor can query them.

Who holds the keys: sealed at rest, masked in every record

The gateway holds secrets by nature: the admin key of each engine cluster, the credentials of the log stores, the API keys of language-model providers, the client secrets of identity providers, the keys of every Consumer. On a self-hosted install they are written once, into a database you run.

In the G8 console an engine’s admin key is “stored sealed; not shown again after you save”, as the Environment form says; the log-store password shows as Stored with a Replace action and is never echoed back. Inside the gateway configuration, secrets are shown only to roles that manage the object, and the audit log masks them on both sides of a change. The record below is a language-model provider being put on a Route: the provider’s key is masked, the provider and the model are in the clear.

The Change section of the audit record of a Route update that added ai-proxy: the Route before and after side by side, with the provider key under auth shown as masked and the provider and model in the clear The record proves a secret changed without holding it. An auditor can read the log; nobody can read the key from it.

With a SaaS control plane, the provider keys and the Consumer keys are in the vendor’s database, under the vendor’s key management. That may be acceptable; it needs to be a decision.

The audit log: in your database, in your log pipeline

Every change through the G8 console is a record in the G8 database, with the actor, the Environment, the object, the result and the configuration before and after. A refused change, by role or by the engine, is a record too. Who changed what walks through the records on a real Environment, the CSV export and the log line the server writes for your collector.

The question for a SaaS product is whether the audit log of configuration changes can be exported continuously to your own SIEM, and whether it includes the refused attempts.

Upgrade control: you decide when

A self-hosted gateway is upgraded when you upgrade it. G8 shows the engine version of each Environment on the Environments page and in the switcher, the console’s own version in its footer, and the Environments page states that adding an Environment does not touch the engine: the console manages what is already running. A Production Environment can be marked Protected, so destructive actions ask for the resource name first.

A SaaS control plane is upgraded when the vendor upgrades it, and the data plane often follows. For a regulated company that has to re-validate after a change, the version you run is part of the evidence.

Where the topology is drawn

The components of a self-hosted install, the console, its PostgreSQL database, the engine clusters and the stores you provide, are drawn on the Deployment page, with the platforms it runs on and what you provide listed under What you provide. Console sign-in is local accounts or your Active Directory, under Users & access › Directory; nothing about the install needs an account with the vendor.

What to do next

  • Read what the audit log keeps and how a refusal looks: Who changed what.
  • Read how the request records are masked before they reach your store: Keycloak and G8, the section on Traffic Explorer.
  • The questions a buyer should ask, with the page of the console where each is answered: Evaluation checklist.
Written by
Selim Çalık
Founder, G8
Next step

See G8 in a demo

We’ll show you the console with APIs and AI traffic like yours, and answer the questions these articles leave open.

  1. 01Demo
  2. 02Proof of conceptOn Docker for a quick start, or on the infrastructure you plan to run G8 on.
  3. 03LicenseWe prepare a quote for your edition and nodes, and you receive a signed license file.