Skip to content

release: 2.2.0 - #6

Closed
CtrlAltDevelop wants to merge 8 commits into
mainfrom
release/2.2.0
Closed

CtrlAltDevelop wants to merge 8 commits into
mainfrom
release/2.2.0

Conversation

@CtrlAltDevelop

Copy link
Copy Markdown
Owner

Summary

  • Relicense from MIT to AGPL-3.0-only (LICENSE, pyproject, README).
  • README: badges and a Contributing/Security section.
  • CI runs tests on pull requests to main only, via shared ci-workflows.
  • Release workflow publishes directly (build + trusted-publish jobs in release.yml, on a v* tag), since the shared reusable publish workflow fails PyPI trusted publishing with invalid-publisher — same fix as mdp-outbox.
  • Bump to 2.2.0 with changelog.

Test plan

  • make check
  • make test (3162 passed)
  • Tag v2.2.0 publishes to PyPI

Tests-only gate (python-test.yml) on pull requests into main; nothing runs on
any other branch or event. Publishing uses the shared python-publish.yml.
PyPI trusted publishing rejects the shared reusable publish workflow
with invalid-publisher, so build and publish live in release.yml and
run on a v* tag, as in mdp-outbox.
Keeps the trigger the last successful publish (2.1.1) used, so creating
the release is the single step that ships it.
New optional feature app (DJANGO_WEBHOOKS_ENABLED). Accounts register https
endpoints with subscribed event types and a per-endpoint secret. Deliveries are
signed with HMAC-SHA256 over timestamp and body (X-Webhook-Signature), sent by
the cron-run `manage.py webhooks_deliver` with exponential backoff, and every
attempt is recorded. Private, loopback, link-local and reserved targets are
refused at registration and again before every send; redirects are not
followed. Published over REST, GraphQL and gRPC, and mirrored into the template.
New optional app apps.files (DJANGO_FILES_ENABLED): size limit checked
before reading, content type sniffed from magic bytes and matched against
the extension, random storage keys, owner-or-staff access (others get 404).
Storage via Django's storage API; DJANGO_STORAGE_BACKEND=s3 uses
django-storages (new [s3] extra).

Shared naming/size/sniff helpers extracted from apps/support/uploads.py
into infrastructure/common/uploads.py. Mirrored into the template.
@CtrlAltDevelop
CtrlAltDevelop deleted the release/2.2.0 branch November 29, 2026 06:17
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