envelope_authorizer/src/envelope_authorizer
disqualifier 13bf77f0f4 fix: mongo backend — sync close() + fail-loud via raw collection
two regressions in the [mongo] storage backend: (1) the four finally blocks did 'await db.close()' but the mongo lib's close() became synchronous this session, so await None raised TypeError on every op — dropped the await. (2) the backend consumed mongo's swallow-and-return-default wrapped methods raw, conflating a driver error with 'no document / not initialized' in the lib that gates authority; it now goes through the raw db.collection(name) escape hatch (the motor collection, which raises) and raises on a no-op upsert, matching the CLI's fail-loud stance.

Signed-off-by: disqualifier <dev@disqualifier.me>
2026-06-28 18:45:25 -04:00
..
commands fix: unique temp on JSON write + tolerant created_at render (v0.1.1) 2026-06-28 15:47:58 -04:00
storage fix: mongo backend — sync close() + fail-loud via raw collection 2026-06-28 18:45:25 -04:00
__init__.py fix: unique temp on JSON write + tolerant created_at render (v0.1.1) 2026-06-28 15:47:58 -04:00
__main__.py add package: pyproject + src (authorizer CLI, json/mongo storage, gated capability flag) 2026-06-25 00:04:40 -04:00
cli.py add package: pyproject + src (authorizer CLI, json/mongo storage, gated capability flag) 2026-06-25 00:04:40 -04:00
config.py add package: pyproject + src (authorizer CLI, json/mongo storage, gated capability flag) 2026-06-25 00:04:40 -04:00