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.

On 2026-11-06, Fireworks AI disclosed a second security incident in a matter of weeks. Notion confirmed 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 to test a narrower claim than “use a gateway”: two specific, already-shipping agentgateway 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-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:

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 covers for API keys generally, and the site’s own 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:

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:

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).

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.

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: 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.

Frequently asked questions

How do I stop my app from ever holding a third-party LLM vendor's API key?

Put the key only in the gateway’s configuration, read from an environment variable, and have the gateway attach it to outbound requests. In agentgateway this is a model’s params.apiKey field. The client only ever calls the gateway, so a vendor-side key leak never includes one that sat in your application code.

How can I tell if my traffic to a breached AI vendor was affected, without waiting for the vendor's disclosure?

Query your own request log for the incident window the vendor names. agentgateway persists every LLM request to a request_logs table (SQLite or Postgres) with start time, provider, model, and status code, so you can answer with a single SQL query instead of waiting on the vendor’s timeline.

Does an AI gateway redact PII before sending requests to a third-party model vendor?

agentgateway does not ship a dedicated redaction or DLP policy as of v1.7.0. Its documented controls for this scenario are credential injection at the edge and a request-level audit log; pairing those with least-privilege vendor keys and network egress policy covers more of the exposure than either alone.

Why does a third-party AI vendor breach affect companies that were not directly hacked?

Because the vendor sits between the company and the model, any data that transits the vendor is exposed if the vendor is breached, even if the company’s own systems are untouched. Notion’s 2026-11-06 advisory makes this explicit: its systems were not compromised, but AI chat transcripts that had been routed through vendor Fireworks AI were.

Disagree or have a war story? Reply on X