Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

snodra-messaging-mongo

Latest version: v0.9.1

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
PyPI package Publisher: org:Snodra
0 Stars
0 Forks
6 Versions
277 Downloads
Python Repo language

Scan summary

snodra-messaging-mongo was last scanned on 29 Nov 2026 at version 0.9.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 6 versions; the latest 5 were published within 4 days (26–29 Nov 2026).
  • Findings: No rules fired in version 0.9.1.
  • Downloads: 277 downloads.

Versions

6 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.9.1 LATEST 29 Nov 2026 No rules fired
0.9.0 29 Nov 2026 No rules fired
0.8.0 28 Nov 2026 No rules fired
0.7.0 27 Nov 2026 Not shown
0.6.0 26 Nov 2026 Not shown

No rules fired in 0.9.1

Findings

Findings for v0.9.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.9.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

snodra-messaging-mongo

The MongoDB message store for the Snodra messaging suite: the outbox, the processed-event markers and the rest of the message-store ports in the service's own MongoDB database, in the collections and with the document fields the published MongoDB layout fixes, so documents written by any Snodra library stay readable without a migration.

Install

pip install snodra-messaging-mongo

The distribution needs Python 3.12 or later and depends on snodra-messaging and PyMongo's async client. The core library never imports a MongoDB client; this add-on is where it lives.

Use

import asyncio

import snodra
from snodra_mongo import MongoConfig, MongoStore


async def main() -> None:
    store = MongoStore(MongoConfig.from_env())
    try:
        settings = snodra.Settings.from_env(service="orders-service")
        # The event store reads what the relay publishes; the message store holds the outbox and markers.
        app = snodra.App(settings, store=store, event_store=...)
        await app.run()
    finally:
        await store.close()


asyncio.run(main())

MongoConfig.from_env() reads SNODRA_STORE_MONGO_URI and SNODRA_STORE_MONGO_DATABASE; the URI is required unless the store is given a client. A service that owns its PyMongo client passes it to MongoStore(config, client=client) with an empty url: the store does not close a client it does not own.

The store's transactions are MongoDB multi-document transactions on a client session, so the database must be a replica set (a single-node one is enough).

The store implements every message-store port: the outbox, the processed-event markers, the dead letters, the processor control state, the external-call records and the saga records. The level-3 and level-4 store checks pass on a replica set.

The transaction is the service's

async with store.transaction(): begins a transaction on a client session, binds it to the current context and commits on a clean exit or rolls back on an exception. An outbox append and a processed marker recorded inside it join it. A service that already runs its own MongoDB transaction binds that session with store.transaction(session=session), and a handler that writes its own documents in the handled event's transaction asks for the session with store.session(tx):

async with store.transaction() as tx:
    await store.outbox.append(entry)
    session = store.session(tx)
    await store.database["orders"].insert_one(order, session=session)

A claim, a marker's existence check, the marks, the purges and an append outside a transaction are writes of their own that commit on their own, never in the caller's transaction. A duplicate key, a write conflict and an error MongoDB labels a transient transaction error are snodra.Conflict (a retry of the whole attempt resolves them); every other driver error is snodra.MessageStoreFailed.

The layout

init_schema() creates every index and TTL index of the layout, idempotently: creating them creates the collections a transaction writes to before the first transaction does. Neither an index that exists nor its options change, so every instance sharing a database must be given the same retentions. check_schema() only checks the collections and indexes, for a service that prepares its schema itself; a TTL that differs from the store's settings counts as a schema failure. TTLs are stored in whole seconds, floored as the published retentions are.

App.start() drives the store's lifecycle when it is the app's store: it hands the store the application's clock, calls init_schema() (or check_schema() when Settings.store_init_schema is false) and starts background() in a snodra:store-background task until shutdown. The methods are public for a store constructed after app.start(), or used outside an App. background() runs nothing: MongoDB's TTL monitor removes expired documents on the server. use_clock(clock) sets the application's clock (epoch milliseconds), which stamps every time the store sets itself: an entry's sending and failure, a claim's lease.

Where the public specification leaves a choice, SPEC-GAPS.md records what this library does.

Test

The tests start a single-node MongoDB replica set through Testcontainers (pinned by digest) and run the message-store conformance kit against it. Docker is required:

uv run pytest -q packages/snodra-messaging-mongo/tests

Links

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases snodra-messaging-mongo

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229