Repository navigation
v0.8.0-rc.51
Pre-release
Pre-release
·
63 commits
to main
since this release
Added
- Adds roles that carry tasks (
membership.roles): each NIP-43 role lists what its members may do, such as NIP-86 methods (createclaim,banpubkey), Blossom uploads, joining calls or creating groups (groups.create), and NIP-86supportedmethodstells each caller its own set. Withoutmembership.rolesormembership.members, existing settings behave as before except for the changes listed under Changed. (#243) - Adds unknown-key reporting to the relay config:
ncli relay --checkfails (invalid_input) naming every key the relay doesn't know, such as a typo, and a normal start logs a warning for each, on stderr and in the log file; a key left with no value counts too. (#236) - Adds
listen(host:port) to the relay config, to bind one address instead of every interface onport. When set it wins overport, the admin listener's default port and the admin commands follow it, and--checkrejects a host that does not resolve;NCLI_LISTEN/NCLI_PORTnow reach the relay even with no such key in the file. (#237) - Adds opt-in rate limits to the relay (
limits): EVENT, REQ/COUNT, the HTTP bridge and Blossom per pubkey and per IP, plus connections per IP, with members optionally exempt and refusals counted inncli_relay_rate_limited_total. A limit left unset is no limit, and a public relay without any, or a per-pubkey limit that never applies, gets a warning, also listed inrelay --check --json's"warnings". (#241) - Adds a warning, at startup and in
relay --check, whenlistenis on loopback with per-IP limits butlimits.trustedProxiesdoesn't cover that address: behind a local reverse proxy every client would share one per-IP limit. (#245)
Changed
- Changes the Helm chart (now 0.2.0) and Compose stacks to pin their images: MinIO by digest, and the relay to the release candidate
0.8.0-rc.50instead oflatest, which was the 0.6.0 release. The relay pin moves to each new release. (#235) - Lets a chart image take an optional
digest, and adds the pinned MinIO digest only to the default image: pin a mirror or another tag with an exacttagor its owndigest.helm upgrade --reuse-valueskeeps an older chart's images, so use--reset-then-reuse-values. (#235) - Changes
membership.memberClaims, when unset, to follownip11.limitation.membership_required: on a relay withmembership_requiredand NIP-86 enabled, a member'screateclaimis now refused (401) and only admins mint invites. SetmemberClaims: trueto keep the old behaviour. (#234) - Changes a NIP-43 invite request (REQ kind 28935) to need
createclaim, as NIP-86createclaimdoes: it now gives a code only to admins, members whenmemberClaimsis on, and roles that list it. Before, any connection allowed to read got one. (#243) - Changes
huddle.requireMembershipto admit the relay's admins (nip11.pubkey,nip86.admins) even when they are not members. (#243) - Changes a banned member to lose
createclaim(NIP-86 and invite requests) and joins to calls underhuddle.requireMembership. Before, the ban only stopped its events and Blossom uploads. (#243) - Changes NIP-43 role ids to be stored lowercase:
createrole,assignrole, enrolling and invites lowercase them, andunassignrole hostalso removesHost. (#243)
Fixed
- Fixes the relay's Blossom answering 404 for a blob at the root (
/<sha256>), where BUD-01 serves it;/media/<sha256>still works.ncli blossom downloadof a full URL now fetches that URL first, then asks servers by hash, and reports a URL serving other bytes asnot_found. (#244) - Fixes
ncli blossom list,upload --optimizeandmirrorreporting a server without that endpoint asnot_foundor a retryablenetworkerror; they now reportunsupported(exit 8), and the relay says those endpoints are not supported. A 3xx, 405 or 501 from any Blossom endpoint is nowunsupportedtoo, where it wasnetworkorinvalid_input. (#244) - Fixes
relay --check --jsonlisting"warnings": []while logging thatportis ignored becauselistenis set (or thatpow.stricthas nopow.min); it now lists every config warning, and startup logs each once. (#245) - Fixes the Blossom blob URLs the relay returns having no file extension, which BUD-02 requires: they now end in one for the blob's type, or
.binwhen it is unknown (nmilat v0.5.0-rc.51). (#243) - Fixes
POST /eventsaccepting a non-member's event into a private, closed or restricted NIP-29 group; it now refuses it (403) as the WebSocket does, and refuses group moderation kinds and requests (9000-9022) with a 400, since they only work over a WebSocket (nmilat v0.5.0-rc.51). (#246) - Fixes the relay's Blossom serving a blob, with whatever type its uploader gave, as a page on the relay's own origin: every blob now comes with
nosniffand a sandboxing CSP, an untyped blob isapplication/octet-stream, and anything but images, audio, video and plain text downloads as an attachment (nmilat v0.5.0-rc.51). (#246) - Fixes NIP-86
allowpubkeyon someone already a member, which re-enrolled them and dropped their roles: it now leaves the member unchanged. (#243)