diff --git a/.changeset/actions-lockfile.md b/.changeset/actions-lockfile.md deleted file mode 100644 index 1c1387962..000000000 --- a/.changeset/actions-lockfile.md +++ /dev/null @@ -1,6 +0,0 @@ ---- ---- - -ci: lock the actions every workflow runs (#1117) - -Every `uses:` was pinned to a mutable tag, so a tag moved upstream changed what CI executed and nothing recorded what a run resolved to. `gh actions-lock` now writes `.github/workflows/actions.lock` with the commit each action resolves to, keeping the readable version in the workflow, and a `lockfile` job runs `gh actions-lock --verify` so a workflow edit that is not relocked fails. `amannn/action-semantic-pull-request@v5` needed a full version before it could lock and moved to `v5.5.3`, the same major. No runtime behaviour changes; the lock stays advisory until the repository enables Workflow lockfiles. diff --git a/.changeset/admin-session-logout-revocation.md b/.changeset/admin-session-logout-revocation.md deleted file mode 100644 index 956210c24..000000000 --- a/.changeset/admin-session-logout-revocation.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'nostream': patch ---- - -fix(admin): revoke the session token at logout, not only its cookie - -`POST /admin/logout` deleted the browser cookie but the session token itself stayed valid until it expired (24 hours by default), because the token was only `.` and nothing on the server recorded a logout. A copy of the token kept elsewhere (a `Bearer` client, a log, a proxy) could restore administrator access after sign-out. The token now carries a random session id under the same signature, logout records that id in Redis until the token would have expired, and every admin request checks it, so a logout on one worker ends the session on all of them and ends only that session. If Redis cannot be read the token is refused, and a logout that cannot record the id answers 500 (and still clears the cookie). - -Tokens issued before this change have no session id and are refused, so every administrator signs in once more after the upgrade. diff --git a/.changeset/paid-peering-delivery.md b/.changeset/paid-peering-delivery.md deleted file mode 100644 index ba2e7f653..000000000 --- a/.changeset/paid-peering-delivery.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"nostream": minor ---- - -feat(peering): deliver paid peering invoices and gate peer feeds - -Configured peers can request their BOLT11 invoice as a signed `kind 402` event -and pay it through Relay B's existing processor. Feed `REQ`, `COUNT` and NIP-77 -requests are refused with a payment-required reason until a paid period is -active. Expired invoices are reissued after a cooldown, and a missed webhook is -rechecked before access is denied. diff --git a/.changeset/paid-peering-ledger.md b/.changeset/paid-peering-ledger.md deleted file mode 100644 index 2c1566eb9..000000000 --- a/.changeset/paid-peering-ledger.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"nostream": minor ---- - -feat(peering): add the paid peering billing ledger diff --git a/CHANGELOG.md b/CHANGELOG.md index 5ba7d9b4e..982d6333c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,27 @@ # nostream +## 3.16.0 + +### Minor Changes + +- [#1088](https://github.com/cameri/nostream/pull/1088) [`e1f92ad`](https://github.com/cameri/nostream/commit/e1f92adb9ebdfc3698ba7ce7826120448bdb6d9e) Thanks [@Ferryx349](https://github.com/Ferryx349)! - feat(peering): deliver paid peering invoices and gate peer feeds + + Configured peers can request their BOLT11 invoice as a signed `kind 402` event + and pay it through Relay B's existing processor. Feed `REQ`, `COUNT` and NIP-77 + requests are refused with a payment-required reason until a paid period is + active. Expired invoices are reissued after a cooldown, and a missed webhook is + rechecked before access is denied. + +- [#1087](https://github.com/cameri/nostream/pull/1087) [`1d5c473`](https://github.com/cameri/nostream/commit/1d5c473041dd9bfb985be3c9c8ba321aff42b429) Thanks [@Ferryx349](https://github.com/Ferryx349)! - feat(peering): add the paid peering billing ledger + +### Patch Changes + +- [#1145](https://github.com/cameri/nostream/pull/1145) [`afb381f`](https://github.com/cameri/nostream/commit/afb381fd32be065ef5ada9a444706d4669594074) Thanks [@Priyanshubhartistm](https://github.com/Priyanshubhartistm)! - fix(admin): revoke the session token at logout, not only its cookie + + `POST /admin/logout` deleted the browser cookie but the session token itself stayed valid until it expired (24 hours by default), because the token was only `.` and nothing on the server recorded a logout. A copy of the token kept elsewhere (a `Bearer` client, a log, a proxy) could restore administrator access after sign-out. The token now carries a random session id under the same signature, logout records that id in Redis until the token would have expired, and every admin request checks it, so a logout on one worker ends the session on all of them and ends only that session. If Redis cannot be read the token is refused, and a logout that cannot record the id answers 500 (and still clears the cookie). + + Tokens issued before this change have no session id and are refused, so every administrator signs in once more after the upgrade. + ## 3.15.3 ### Patch Changes diff --git a/package.json b/package.json index e1ccc43ad..bc04f5412 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nostream", - "version": "3.15.3", + "version": "3.16.0", "packageManager": "pnpm@10.33.0", "private": true, "description": "A Nostr relay written in Typescript.",