Community Feedback Made Us Recheck Our Own Security Claims
When you write about a failure mode, it is worth asking whether your own system would pass the test.
We recently published an article about replay protection and adding a second replica. The central question was simple: if a signed request is accepted by one replica, can the same request be accepted again by another?
Readers raised questions that led us to review our own implementation more closely. That review surfaced scenarios we need to investigate and validate before Zen Mesh launches in production.
The discussions are public if you’d like to read the original comments and join in: the DEV discussion on transaction boundaries and the CoderLegion discussion on memory pressure and replay-window boundaries.
This is how we want transparency to work in practice. In an earlier article, we explained why we publish what our product does not do. Readers deserve to know the difference between a design intention, a tested behavior and a guarantee supported by evidence.
A transaction has a boundary
The DEV discussion raised an important distinction: a replay or idempotency record and the state change it protects can be committed in one transaction when both are controlled by the same database.
If the uniqueness check and the state change live in separate systems, there is another boundary where they can disagree. And a database transaction cannot automatically include a later call to someone else’s API. That external effect needs its own failure and retry design.
Replay prevention, durable acceptance and downstream idempotency are related, but they protect different boundaries.
Our initial source review found a path that commits a sender idempotency claim and an accepted event together in a SQLite transaction. That describes a particular acceptance boundary. It does not, by itself, prove that a separate replay check is atomic with acceptance, that the same guarantee holds across replicas, or that an external delivery happens exactly once.
We are investigating the ordering between replay checks and acceptance, including what happens if a nonce is recorded but the request is subsequently refused, and what happens when requests arrive concurrently at different replicas.
Retention is part of replay protection
The CoderLegion discussion raised two scenarios that deserve attention: memory pressure and the edge of the replay window.
If a replay record disappears too early, a previously used nonce can look new. A timestamp check can limit the acceptance window, but only if the timestamp is authenticated and its validation rules agree with how long the nonce is retained.
Our source review identified a boundary we need to test: the standard HMAC path allows a timestamp ahead of the server clock within a configured window, while nonce retention is measured from first use. We need to determine whether a request can remain valid after its nonce record expires, including at the boundary and across replicas.
We also need to test memory pressure, state loss, failure to record or replicate a nonce, and recovery. The impact and supported deployment scope of these observations remain under investigation. They are not completed fixes, and we are not presenting them as proven exploits.
What happens before launch
We are treating this investigation, fixes for any confirmed gaps, and validation of the relevant scenarios as requirements for production launch.
That includes failure and concurrency cases, along with the boundaries between accepting an event and delivering it to an external target. Work to deploy test candidates and prepare other qualification can continue in parallel.
Once the work is implemented and validated, we intend to update our public evidence and non-claims with the actual scope and results. We also intend to return to the discussions and share what we found. Until then, a source observation is an investigation lead, not a completed validation.
Why share this now?
We could wait until every investigation is complete and publish only the final result. But that would leave out an important part of the story: how questions from readers can change what we examine, test and prioritize.
This work may take time, but it is time worth spending. A launch date does not make an untested security guarantee true.
Our goal is to build a product people can evaluate on clear claims and evidence. That means being open about what we know, what we have not yet established and what must happen before we are ready to launch.
Thank you to the readers who took the time to challenge the article and help us ask better questions.