A Second Network, One Core — And How We Test the Boundary
A native ad network based in Cologne wanted off an expensive, inflexible ad server. Instead of building them a one-off, we opened our own core to a second tenant — and measured the tenant boundary against a copy of the production database before going live: 360 comparison pairs, zero deviations, across all three access paths.
A native ad network running on a classic ad server today usually carries two problems at once: the delivery infrastructure is expensive and inflexible, and it's missing exactly what growth would require — programmatic demand from the outside, and targeting on its own inventory. Without programmatic, a network can never take on more demand than its own sales team can negotiate by hand. Without targeting, every placement competes against every other. When twiago, a native network based in Cologne, came to us with exactly this situation, the obvious answer would have been to build them an ad server. The real question was a different one: if we open our own core — the auction, the audience evaluation, the ledger — to a second company, what has to hold true so that "two customers on one system" never becomes "a data leak between two customers"? Three doors, one answer A tenant can reach a system through three doors: a web interface with login, an API key for automated integrations, or an agent protocol like MCP. The obvious way to build tenant isolation is to check it separately at each of these three doors — one check in the web handler, another in the API layer, a third in the MCP tool. The problem with that isn't that it's wrong. It's that it has to be right three times, and a single forgotten case at any one of the three is enough for a gap that no review will catch, because the other two doors are, correctly, fine. We built it the other way around: one single, pure function decides whose request this is. Web login, API key, and MCP call all call that same function before anything else happens. There is no second place in the code where this decision gets made again — and therefore no second place where it can be forgotten. Every table that holds tenant-specific data carries the tenant identifier as a column, not as a convention a developer has to remember to follow. What "it works" actually has to mean A tenant boundary you simply look at and find plausible is a claim. Before the network instance went live, we measured the isolation against a copy of the real production database — not with invented test data, but with the access patterns that actually occur on a system with real customers. 360 comparison pairs, zero deviations: …
- Author
- Nexbid Engineering
- Published
- 2026-11-24
- Topics
- Agentic, Ad Tech, Open Source, Verification