ReadingResearchRadarInvestment framework
Sign in / Sign up
← Back to reading
NewsMaterial5 min readDisconfirmAI Editorial

How a redaction proxy keeps LLM providers from seeing your secrets, and where that promise breaks

Wilfried Roset and Elena Luoto describe Pookie's architecture in an OVHcloud engineering blog post: keyed HMAC placeholders that preserve model reasoning, per-user namespace isolation blocking cross-session leaks, fail-closed outbound behavior, and a candid list of cases where the proxy still lets a secret through.

2026-11-24 14:00 GMT+8

A redaction proxy sits between your application and a model provider, promising two things at once: the provider never sees your secrets, and you never notice the proxy is there. Wilfried Roset and Elena Luoto, authors of an OVHcloud engineering design post, argue that keeping that promise requires more than a list of regular expressions. What it requires is a set of architectural decisions, each carrying a specific tradeoff, and an honest inventory of where those decisions still fail. Roset states that he built the first working version in two weeks with AI agents.

The first decision concerns placeholders. When Pookie detects a secret in a prompt, it replaces the value with a token like PK_PRIVIP_fe44bc609bf6. The token is derived from the original value using a keyed HMAC — a cryptographic function that turns a value and a secret key into a fixed-length fingerprint. Without the key, the fingerprint reveals nothing about the value and cannot be reversed. With the key, the same value always produces the same fingerprint. That determinism is what lets the model reason: a server referenced as server A in one message stays server A across a whole conversation. The placeholder itself contains no data; it is only a reference to a value held in Pookie's cache, so a third-party provider that stores, logs, or analyses it gets nothing it can use.

Detection runs in two layers. Pattern matching catches values with a known shape: IP addresses, hostnames in configured zones, tokens, keys, IBANs, card numbers, and customer account IDs. An entropy check then catches strings that look random, which is how a generated password with no recognizable format still gets hidden. Encoded content is decoded and scanned again. The authors are explicit that detection is tuned for recall rather than precision: Pookie would rather replace a harmless value than miss a real one. In a code-review scanner, a false alarm costs time. In a proxy, a false positive costs a little context, while a false negative leaks a secret.

Sign in / Sign up
ReadingResearchRadarInvestment framework

Restoring values means storing them, which introduces an isolation problem. In Pookie's shared deployment, each user's mappings live in a namespace derived from their own provider credential with an HMAC. One user's placeholder cannot be resolved in another user's session, even if both sent the same value. This blocks a subtle attack: without namespaces, a malicious provider could echo user A's placeholder into user B's response, and a shared store would resolve it into A's secret inside B's session. With namespaces, a lookup outside your own space is a plain miss. Values are encrypted at rest with XChaCha20-Poly1305 and a random nonce, and the namespaced key is bound to each ciphertext as additional authenticated data, so a value copied to another key fails authentication even against an attacker who can write to the underlying Redis store.

The proxy fails closed on the way out: any error — store unreachable, detection failure — blocks the request entirely. Nothing reaches the provider. On the way back, answers stream event by event, and a placeholder can be split across two chunks. Pookie holds back just enough of the stream to never half-replace one. Values restored inside tool-call arguments are JSON-escaped so the agent receives valid input. A placeholder that cannot be restored stays visible and raises an alert rather than breaking the answer.

What makes the article worth reading is not the mechanism but the limits. The authors document deliberate non-guarantees: a passphrase made of ordinary words can pass because it does not look like a secret; encrypted data with no recognizable marker is not replaced because Pookie never decrypts to check; rare encodings like double base64 or compressed data can hide a secret from the scan; determinism has a cost — the provider cannot see values but can see which fields repeat; port numbers are never replaced; an agent can still leak a value after Pookie has restored it. Pookie trusts the agent and its configuration; it is not a sandbox against a hostile one.

Named-entity recognition could catch postal addresses and personal names, which patterns cannot. Roset tested it and reports that processing time per request jumped from about 200 milliseconds to 30 seconds. For now, the cost outweighs the gain, and he is exploring lighter models that could change the balance. The performance numbers for the current design are modest: restoring values adds under 200 microseconds per streamed event at the 99th percentile, and redacting a very large request peaks at about two seconds — small next to a model answer that takes several seconds.

The same engine runs in four modes: a command-line tool to preview redactions, a standalone binary with an in-memory store, a Docker Compose stack with dashboards, and a Helm chart on Kubernetes with Redis for the shared multi-user instance. A test pins a fixed key and checks that the proxy and the command-line tool produce byte-identical output, so the trust story cannot diverge between modes.

The design favors isolation over tenancy: no accounts, no role-based access control, and no new identity system to attack. If the service is misconfigured, it refuses to start. The authors present this as a deliberate choice to avoid introducing a broader attack surface through identity management, keeping the security boundary narrow enough that misconfiguration produces a hard stop rather than a silent failure.

Sources

  • blog.ovhcloud.comOVHcloud Blog↗
Continue researching →