Skip to content

v0.8.3

Latest

Choose a tag to compare

@github-actions github-actions released this 27 Nov 21:48
· 2 commits to main since this release

GRAIN🌾 v0.8.3

Security fixes
Release · 11.27.2026
Full Changelog: v0.8.2...v0.8.3


A security release. If you run grain, please update.

Thanks to Argus (npub130w34l7es5u55gmndk9q4aze4n928psrse2m4e3y4g23sr2tz4pslrxl0c) for the report and for checking the fixes against the release candidates, and to ClankCore for #122.


⚙️ What you might notice

  • Logging in to post asks your signer to sign once. The login request is now a signed NIP-98 event. Read-only logins don't change. The admin page needs a signed login.
  • X-Forwarded-* headers are believed only from trusted proxies. The new server.trusted_proxies setting lists them. Unset, it trusts loopback and private ranges, which covers a reverse proxy on the same host, in Docker or on a private network like Fly's. If your proxy connects from a public address (a CDN, a separate load balancer), add its ranges, or every client will share the proxy's address. [] trusts no proxy.
  • A REQ or COUNT takes at most 32 filters. More gets CLOSED invalid: too many filters. Set server.max_filters_per_req to change it.

🔧 Fixes

  • Limits from #122. max_connections is reserved atomically, so a burst of connections can't all slip past it. Search filters share the REQ's limit with the other filters, so one reply never goes past max_limit.
  • Config reload crash. Reloading the config while the client was still connecting to its index relays could crash grain. CI's hot reload test hit it now and then.

Issues: #122