Skip to content

Add list endpoints, hold expiry, webhook publisher; relicense to AGPL-3.0 - #11

Merged
CtrlAltDevelop merged 10 commits into
mainfrom
develop
Nov 26, 2026
Merged

CtrlAltDevelop merged 10 commits into
mainfrom
develop

Conversation

@CtrlAltDevelop

@CtrlAltDevelop CtrlAltDevelop commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Summary

Notes

  • Webhooks are a single URL from settings, not per-client registration. Per-client URLs need a model, migration, endpoints and SSRF controls.
  • Transaction list costs two extra queries per item (marked with a ponytail: comment).
  • Ledger-reviewer pass found two issues, both fixed with regression tests: redirects counted as successful webhook delivery, and a crafted cursor returning 500 instead of 400.

Test plan

  • ruff check, ruff format --check, mypy strict clean
  • pytest: 132 passed against local Postgres 16
  • CI green on this PR
  • manage.py expire_holds against a staging database, then manage.py reconcile

dependabot Bot and others added 7 commits November 11, 2026 15:44
Bumps python from 3.14-slim to 3.15-slim.

---
updated-dependencies:
- dependency-name: python
  dependency-version: 3.15-slim
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
…pdates

Bumps the python-minor group with 13 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [django](https://github.com/django/django) | `6.1.2` | `6.1.3` |
| [django-ninja](https://github.com/vitalik/django-ninja) | `1.7.1` | `1.8.0` |
| [pytest](https://github.com/pytest-dev/pytest) | `9.1.1` | `9.2.0` |
| [hypothesis](https://github.com/HypothesisWorks/hypothesis) | `6.169.4` | `6.170.15` |
| [ruff](https://github.com/astral-sh/ruff) | `0.17.0` | `0.17.4` |
| [mypy](https://github.com/python/mypy) | `2.4.0` | `2.4.1` |
| [asgiref](https://github.com/django/asgiref) | `3.12.1` | `3.13.0` |
| [psycopg](https://github.com/psycopg/psycopg) | `3.3.6` | `3.3.8` |
| [psycopg-binary](https://github.com/psycopg/psycopg) | `3.3.6` | `3.3.8` |
| [pydantic](https://github.com/pydantic/pydantic) | `2.14.1` | `2.14.3` |
| [sqlparse](https://github.com/andialbrecht/sqlparse) | `0.6.0` | `0.6.1` |
| [typing-inspection](https://github.com/pydantic/typing-inspection) | `0.4.4` | `0.4.5` |
| [tzdata](https://github.com/python/tzdata) | `2026.5` | `2026.6` |



Updates `django` from 6.1.2 to 6.1.3
- [Commits](django/django@6.1.2...6.1.3)

Updates `django-ninja` from 1.7.1 to 1.8.0
- [Release notes](https://github.com/vitalik/django-ninja/releases)
- [Commits](vitalik/django-ninja@v1.7.1...v1.8.0)

Updates `pytest` from 9.1.1 to 9.2.0
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](pytest-dev/pytest@9.1.1...9.2.0)

Updates `hypothesis` from 6.169.4 to 6.170.15
- [Release notes](https://github.com/HypothesisWorks/hypothesis/releases)
- [Commits](HypothesisWorks/hypothesis@v6.169.4...v6.170.15)

Updates `ruff` from 0.17.0 to 0.17.4
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@0.17.0...0.17.4)

Updates `mypy` from 2.4.0 to 2.4.1
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](python/mypy@v2.4.0...v2.4.1)

Updates `asgiref` from 3.12.1 to 3.13.0
- [Changelog](https://github.com/django/asgiref/blob/main/CHANGELOG.txt)
- [Commits](django/asgiref@3.12.1...3.13.0)

Updates `psycopg` from 3.3.6 to 3.3.8
- [Changelog](https://github.com/psycopg/psycopg/blob/master/docs/news.rst)
- [Commits](psycopg/psycopg@3.3.6...3.3.8)

Updates `psycopg-binary` from 3.3.6 to 3.3.8
- [Changelog](https://github.com/psycopg/psycopg/blob/master/docs/news.rst)
- [Commits](psycopg/psycopg@3.3.6...3.3.8)

Updates `pydantic` from 2.14.1 to 2.14.3
- [Release notes](https://github.com/pydantic/pydantic/releases)
- [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md)
- [Commits](pydantic/pydantic@v2.14.1...v2.14.3)

Updates `sqlparse` from 0.6.0 to 0.6.1
- [Changelog](https://github.com/andialbrecht/sqlparse/blob/master/CHANGELOG)
- [Commits](andialbrecht/sqlparse@0.6.0...0.6.1)

Updates `typing-inspection` from 0.4.4 to 0.4.5
- [Release notes](https://github.com/pydantic/typing-inspection/releases)
- [Changelog](https://github.com/pydantic/typing-inspection/blob/main/HISTORY.md)
- [Commits](pydantic/typing-inspection@v0.4.4...v0.4.5)

Updates `tzdata` from 2026.5 to 2026.6
- [Release notes](https://github.com/python/tzdata/releases)
- [Changelog](https://github.com/python/tzdata/blob/master/NEWS.md)
- [Commits](python/tzdata@2026.5...2026.6)

---
updated-dependencies:
- dependency-name: django
  dependency-version: 6.1.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-minor
- dependency-name: django-ninja
  dependency-version: 1.8.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-minor
- dependency-name: pytest
  dependency-version: 9.2.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: python-minor
- dependency-name: hypothesis
  dependency-version: 6.170.15
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: python-minor
- dependency-name: ruff
  dependency-version: 0.17.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: python-minor
- dependency-name: mypy
  dependency-version: 2.4.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: python-minor
- dependency-name: asgiref
  dependency-version: 3.13.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-minor
- dependency-name: psycopg
  dependency-version: 3.3.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-minor
- dependency-name: psycopg-binary
  dependency-version: 3.3.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-minor
- dependency-name: pydantic
  dependency-version: 2.14.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-minor
- dependency-name: sqlparse
  dependency-version: 0.6.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-minor
- dependency-name: typing-inspection
  dependency-version: 0.4.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-minor
- dependency-name: tzdata
  dependency-version: '2026.6'
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Replace the MIT text with the GNU AGPL v3, update the pyproject license
field and the README license badge and section. Also adds Redis, Docker
and last-commit badges to the README header.
LEDGER_OUTBOX_PUBLISHER=webhook POSTs each event as JSON to
LEDGER_WEBHOOK_URL with an HMAC-SHA256 signature (X-Ledger-Signature)
and the event id (X-Ledger-Event-Id). Non-2xx answers, timeouts and
redirects all count as failures, so the event is retried next run;
redirects are never followed. A non-http(s) URL or empty secret is
refused at worker start.
GET /v1/transactions (filter by account, kind, time) and GET /v1/holds
(filter by account, effective status), both newest first with a
(created_at, id) keyset cursor, since their ids are UUIDs.

expire_holds persists the new `expired` hold status for overdue holds
and emits hold.expired once each. It locks only hold rows with SKIP
LOCKED, so it cannot deadlock with capture or release. Balances were
already correct without it. Releasing an expired hold stays allowed.
Migration 0005 only changes choices.
@CtrlAltDevelop CtrlAltDevelop self-assigned this Nov 26, 2026
The dependabot branch left them out of step: uv.lock kept asgiref,
psycopg, pydantic, sqlparse, typing-inspection and tzdata at old
versions, and requirements.txt paired pydantic 2.14.3 with
pydantic-core 2.50.1, which pip refuses (2.14.3 needs 2.50.4), so the
Docker and CI install would have failed.

Lock the runtime packages at dependabot's versions and re-export
requirements.txt with `make requirements`.
@CtrlAltDevelop
CtrlAltDevelop merged commit 98eda69 into main Nov 26, 2026
5 checks passed
@CtrlAltDevelop CtrlAltDevelop mentioned this pull request Nov 26, 2026
1 of 2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant