Repository navigation
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 newserver.trusted_proxiessetting 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. Setserver.max_filters_per_reqto change it.
🔧 Fixes
- Limits from #122.
max_connectionsis 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 pastmax_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