# How agentgateway Limits the Blast Radius of a Vendor AI Breach

> Fireworks AI's breach exposed Notion's AI chat data. agentgateway's credential injection and local audit trail limit what a vendor breach like that costs you.

- Canonical URL: https://webofmike.com/agentgateway-vendor-blast-radius/
- Author: Mike Moore (https://webofmike.com/about/)
- Published: 2026-11-25
- Last modified: 2026-11-25
- Tags: AI Gateways, Security, Generative AI, Code
- Cite as: Mike Moore, "How agentgateway Limits the Blast Radius of a Vendor AI Breach", Web of Mike (webofmike.com), 2026-11-25. https://webofmike.com/agentgateway-vendor-blast-radius/


On 2026-11-06, [Fireworks AI disclosed a second security incident in a matter of weeks](https://news.ycombinator.com/item?id=50437106). [Notion confirmed](https://www.notion.com/en-gb/security/advisories/security-incident-involving-a-third-party-ai-vendor) that AI chat transcripts from its Insights feature were exposed, routed through Fireworks on Notion's behalf. Notion's own systems weren't touched. A vendor two hops downstream was, and that was enough.

I built [agentgateway-vendor-blast-radius](https://github.com/themsquared/agentgateway-vendor-blast-radius) to test a narrower claim than "use a gateway": two specific, already-shipping [agentgateway](https://agentgateway.dev) controls change what a vendor breach like this one costs you. Not a redaction product, not a Fireworks-specific patch. Credential injection and a local audit log, both things the gateway already does.

## What actually changed the blast radius here

A vendor breach like this one has two failure modes, and they're independent of each other:

1. **The app held a credential the vendor could leak.** If the calling application has the vendor's live API key sitting in its own config or environment, a vendor-side leak of "every API key we ever saw" can include yours, even though your systems were never touched.
2. **You don't know your own exposure window.** The vendor's disclosure runs on the vendor's timeline. Fireworks notified Notion on 2026-11-06. If you don't have your own record of what left your boundary and when, "were we affected" is a question only the vendor can answer, and only when it chooses to.

Both are closed by configuration you already control, before a vendor ever sends a bulletin.

## Credential injection: the app never sees the key

In the demo, a mock vendor stands in for Fireworks. agentgateway is configured as a `custom` LLM provider pointing at it, with the vendor's key read once at startup:

```yaml
# yaml-language-server: $schema=https://agentgateway.dev/schema/config
llm:
  models:
    - name: "vendor/*"
      provider:
        custom:
          formats:
            - type: completions
      params:
        apiKey: "$MOCK_VENDOR_API_KEY"
        model: vendor-chat-small
        baseUrl: "http://mock-vendor:8080/v1"
```

A client calls the gateway with no `Authorization` header at all:

```bash
curl -sS http://localhost:4000/v1/chat/completions \
  -H 'content-type: application/json' \
  -d '{
    "model": "vendor/vendor-chat-small",
    "messages": [{"role":"user","content":"hello from the client, which never saw a vendor API key"}]
  }'
```

That request succeeds. The mock vendor's own access log shows the request arriving from agentgateway's container IP, not from the client, because agentgateway is the only thing on the network that ever holds the key. The calling application's code, environment, and crash dumps never contain it.

This is the same pattern agentgateway's own [Credential Injection Patterns series](https://agentgateway.dev/blog/2026-07-27-credential-injection-ai-agent-egress-cb4a/) covers for API keys generally, and the site's own [secretless AI agents](https://webofmike.com/secretless-ai-agents/) post walks the identical mechanism for an LLM provider key. The vendor-breach framing is new; the control is not.

To confirm the isolation holds, the mock vendor has no published port in `compose.yaml`, only `expose: ["8080"]` on the Docker network:

```bash
curl -sS -m 3 http://localhost:8080/v1/chat/completions -d '{}'
# curl: (7) Failed to connect to localhost port 8080: Couldn't connect to server
```

The only path to the vendor is through the gateway. There's no back door where a misconfigured client could reach it directly and send the real key anyway.

## Answering "were we affected" without waiting on the vendor

agentgateway persists every LLM request to a local database by default. The official Docker Compose setup wires this up with no extra configuration:

```yaml
services:
  agentgateway:
    image: cr.agentgateway.dev/agentgateway:v1.7.0
    volumes:
      - ./agentgateway-config:/config
```

and the generated `config.yaml` sets `config.database.url: sqlite:///config/data.db`. Every request lands in a `request_logs` table with start and end timestamps, provider, request and response model, status code, and token counts (full schema in [agentgateway's access-log docs](https://agentgateway.dev/docs/standalone/latest/documentation/observability/access-logs/database/)).

Play the vendor's incident bulletin: it names a window, and you query for it directly instead of waiting for the vendor to say more.

```bash
sqlite3 -header -column agentgateway-config/data.db \
  "SELECT started_at, gen_ai_provider_name, gen_ai_request_model, http_status, total_tokens
   FROM request_logs
   WHERE started_at BETWEEN '2026-11-10T00:00:00' AND '2026-11-11T00:00:00';"
```

```
started_at                        gen_ai_provider_name  gen_ai_request_model  http_status  total_tokens
--------------------------------  --------------------  --------------------  -----------  ------------
2026-11-10T14:45:42.455540+00:00  custom                vendor-chat-small    200          20
```

That's every request that crossed the boundary to that vendor in the window, with no dependency on the vendor's own incident timeline or support queue.

## This keeps happening

Fireworks and Notion aren't an outlier pairing. The pattern is a vendor sitting between
a company and a model, with data in transit that the company can't see once it leaves
its own boundary. WorkOS disclosed on 2026-11-06 that an AI security agent it runs,
ARTEX, caused unauthorized access it hadn't intended, and attributed the activity after
an independent forensics review. Different failure, same shape: the exposure sits one
hop away from the system the affected company actually controls, and the company
doesn't get to decide when or how it finds out.

None of this is a reason to avoid third-party inference vendors. It's a reason to make
sure the two things you can control, the credential and the log, aren't also sitting on
the vendor's side of that boundary.

## A gotcha from building this

The mock vendor is a ~70-line Python script run with `python3 -u server.py` in its
Dockerfile, not plain `python3 server.py`. Without `-u`, stdout is fully buffered inside
the container and `docker logs` shows nothing until the buffer flushes or the process
exits, which makes the gateway look like it's silently failing to reach the vendor when
it's actually working fine. The fix is the standard one for any short-lived Python
process in a container: unbuffer stdout so logs show up in real time.

The agentgateway image itself is worth noting too: it's a minimal/distroless build with
no shell, so `docker compose exec agentgateway sh` fails with `exec: "sh": executable
file not found in $PATH`. Query the SQLite file directly from the host instead, since
it's already on the mounted volume.

## What this doesn't claim

agentgateway doesn't ship a dedicated redaction or DLP policy as of v1.7.0, so this demo scopes to the two controls it does ship: credential injection at the edge and a request-level audit trail you own. It isn't a drop-in Fireworks or Notion fix, and it doesn't replace least-privilege vendor API keys or network egress policy. It's what those controls buy you on top of a vendor breach you don't control and can't predict.

## Try it yourself

The full setup is in [agentgateway-vendor-blast-radius](https://github.com/themsquared/agentgateway-vendor-blast-radius): `docker compose up -d --build`, then the three checks above, each runnable in under 15 minutes end to end. The repo also has the mock vendor's full source (about 70 lines of Python, no dependencies) if you want to see exactly what it does and doesn't see.

If you're routing LLM traffic through any third-party inference vendor today, the useful exercise isn't reading about Fireworks and Notion. It's running `sqlite3` against your own gateway's logs and checking whether you could already answer "were we affected" before your vendor tells you.

