At 15:20 UTC on 3 November 2026, Pomerium shipped a routine production deployment of its Zero API. Nothing in the release notes looked dangerous. No schema change. No auth rewrite. Just a dependency bump that an automated tool had proposed and a human had merged.

By 16:40 UTC the team had rolled the whole thing back.

In between, every cluster request to the Zero API failed with HTTP 400 and the message "no cluster ID available". Pomerium Core, the component that runs on the customer side, treated that bootstrap error as terminal and exited. Applications behind those deployments stopped being reachable.

The bug was not in code anyone wrote that week. It was in code a generator stopped writing.

First, the plain words

Code generation means a tool writes boilerplate code for you from a description of your API. You describe the endpoints once, in a spec file, and the tool produces the server scaffolding: routing, request parsing, and the hooks where security checks attach. Pomerium uses a library called oapi-codegen for this. It is a Go library, and Pomerium is a Go project, so the generated code is Go.

A security scope is a label in the spec that says which endpoints need which credentials. When a request arrives, generated code can place those labels into the request context, which is a bag of values that travels with the request through your middleware. Middleware is code that runs before your handler, in this case the code that checks identity.

Bootstrap is the first conversation a component has when it starts. Pomerium Core asks the Zero API: here is who I am, give me my configuration. If bootstrap fails, Core cannot serve traffic.

Keep those three ideas and the failure explains itself.

What happened, in order

Pomerium's postmortem, published on its status page, gives a short timeline.

15:20 UTC: production deployment goes out. The failure starts here.

For the next hour, cluster requests fail. Nobody on the team knows yet. The postmortem is blunt about this: production alerts did not catch it, and the first signal was a customer support report at about 16:20 UTC.

16:20 UTC: customer report arrives. More reports follow, and the team confirms the impact.

16:40 UTC: rollback complete. Service restored.

Total window: 1 hour 20 minutes. Detection took an hour of that. The fix took twenty minutes, and the fix was simply undoing the deployment.

The mechanism, step by step

Here is the chain, exactly as the postmortem describes it.

An automated dependency update changed the behaviour of oapi-codegen. The generated code no longer set security-scope context values by default.

Pomerium Zero's authentication middleware relied on those values. It read the context to decide: does this endpoint require cluster identity credentials? If the value was present, load the credentials. If the value was absent, skip loading them.

After the update, the values were absent. So the middleware skipped loading credentials for every cluster request. The cluster API then rejected the requests, correctly, because they arrived with no cluster identity. HTTP 400, "no cluster ID available".

Two details make this worse than a simple version bump gone wrong.

First, the team had applied the dependency's recommended compatibility change. It just did not cover the cluster endpoints generated in Pomerium Core. So the migration looked done. The main paths were covered. One set of endpoints quietly kept the old behaviour.

Second, the failure was silent in every place that should have caught it. Unit tests bypassed the authentication checks involved, so they passed. Staging never exercised the affected cluster API path, so staging stayed green. Production alerts did not fire on the failure pattern, so the first pager was a customer.

One more design note from the postmortem: Pomerium Zero is designed to keep using its existing configuration when the API is unavailable. That fallback exists. But HTTP 400 responses caused terminal bootstrap failures instead. A 400 says "your request is wrong", and the client treated it as fatal rather than as "try again with what you have". The safety net was there. The error code walked past it.

Requests failed closed. Access was denied rather than granted, so this was an availability incident, not a security breach. That is the one mercy in the story. If the middleware had defaulted the other way, the same missing value could have let unauthenticated requests through.

Why this matters to you

You may not run Pomerium. You almost certainly run something generated.

Every team that generates API code has a version of this contract: my hand-written code depends on values the generated code sets. That contract is invisible. It does not appear in your source. It does not appear in a diff when the generator changes, because the generated file is usually regenerated and skimmed, or not committed at all. A dependency update can change the contract while every test you wrote still passes, because your tests test your code, and the break is in the seam between your code and the generated code.

Pomerium's own fix points at the right shape. They changed the middleware to use an explicit list of public endpoints. Cluster credential handling no longer depends on generated context values. In plain words: the decision "does this endpoint need credentials" now lives in hand-written code with a default of yes, instead of in a value a generator may or may not set.

The guards you can add this week

These snippets show the shape of the guards, not Pomerium source code. Pomerium has not published the middleware code for this incident, so treat the numbers and names as starting points.

Guard one: make the default fail closed, and make "public" an explicit list.

// Public endpoints are the exception, named one by one. // Everything else requires credentials by default. var publicEndpoints = map[string]bool{ "GET /healthz": true, } func requireClusterIdentity(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { key := r.Method + " " + r.URL.Path if publicEndpoints[key] { next.ServeHTTP(w, r) return } id, ok := clusterIDFromContext(r.Context()) if !ok || id == "" { // Fail closed. A missing value is an error, // never a reason to skip the check. http.Error(w, "no cluster ID available", http.StatusBadRequest) return } next.ServeHTTP(w, r) }) } 

The old shape asked: did the generated code tell me this endpoint needs credentials? The new shape asks: is this endpoint on my short public list? If not, credentials are required, and a missing identity is an error. A generator change cannot silently turn a protected endpoint into a public one, because the list is yours.

Guard two: write one end-to-end test that goes through the real generated routing and the real middleware, with no bypass.

# The test that would have caught this: real routing, # real middleware, no auth bypass. def test_cluster_request_without_identity_is_rejected(client): resp = client.get("/api/clusters/me/config") assert resp.status_code == 400 assert "no cluster ID available" in resp.text def test_cluster_request_with_identity_succeeds(client, cluster_headers): resp = client.get("/api/clusters/me/config", headers=cluster_headers) assert resp.status_code == 200 def test_public_endpoint_needs_no_identity(client): resp = client.get("/healthz") assert resp.status_code == 200 

Three cases: protected without identity fails, protected with identity works, public works without. Run them against the generated server, not against handlers called directly. If a generator update drops the context values, the second test fails in CI instead of in production at 15:20 on a Tuesday.

Guard three: pin the generator, and diff its output when it changes.

# In CI, after regenerating: git diff --stat generated/ # If the diff touches security or context code, # a human reads it before merge. No exceptions. 

Automated dependency updates are good. Letting them change generated security code without a human reading the diff is how a routine bump becomes an outage. The diff is usually small. Read it.

The takeaway

Nothing in this incident was exotic. A generator changed a default. Middleware trusted a value that stopped arriving. Tests bypassed the exact check that broke. Staging never walked the path. Alerts watched the wrong signal. A customer found it first.

Every one of those is a normal Tuesday decision. The defence is equally normal: keep the security decision in code you wrote, default to requiring credentials, test through the real stack, and read the generated diff when the generator changes.

When did you last look at what your code generator actually emits for your auth paths, and what happens in your middleware when those values are simply not there?

Sources: Pomerium, "Postmortem: Pomerium Zero API outage on November 3, 2026", Pomerium Hosted Services status page, status.pomerium.com. The postmortem does not publish the middleware source or the exact oapi-codegen versions involved, so the Go and Python snippets above show the shape of the guards, not Pomerium code.