Skip to content

SekurIRCd 1.3.5

Choose a tag to compare

@gcanosa gcanosa released this 21 Nov 11:48
· 29 commits to main since this release

Global spam filters and network operators

  • Network-wide spam filters: a rule that starts with global in spamfilters.conf, or one added with /SPAMFILTER ADD GLOBAL <targets> <action> <duration|-> <reason> <regex>, goes to every linked server and is enforced there as if it were its own. Put them on the hub and every leaf has them. A server sends its whole set when it changes and at every link-up (a new SPAMFILTER link message, which older servers ignore), so deleting a rule on the hub removes it everywhere and a leaf that was down catches up by itself.
  • The hub's rules come first: a server checks the global rules it received before its own, so a leaf cannot undo them. The new action allow lets the text through and skips the rules below it, so an exception to a global rule is a global allow above it on the hub.
  • Global rules bind a server whose own [spam] is off. A leaf the hub limits with oper_scope = "local" cannot publish them. A leaf only enforces them once it runs 1.3.5.
  • Network operators from services: an [[opers]] entry in services.toml (account, certfp, privileges, password_only) makes an account an IRC operator on whichever server it logs in to, with no [[operators]] block there. It needs the account's TLS client certificate to match certfp unless password_only = true. It ends on logout, account change, disconnect or when the entry is removed. [security] accept_services_opers = false makes a server ignore these grants.
  • /REHASH on the hub now tells services to reload (SVCREHASH); services --rehash still works.

Links and rehash

  • /REHASH closes the links its config no longer allows: remove a [[links.peers]] entry, or edit allowed_ips so it no longer lists a peer's address, and that peer is disconnected at once, told why, and refused from then on. The same goes for the services link. A changed password or fingerprint does not close an open link (use /SQUIT), and a hub must still keep at least one entry that accepts a leaf. A refused handshake now says whether no entry has that name or the entry did not match.
  • Limit a leaf's opers from the hub: [[links.peers]] oper_scope = "local" keeps that leaf's opers to their own server, and oper_deny = ["override", "auspex"] takes privileges off them. The leaf needs no setting.

Daemons and upgrades

  • --daemon returns only once the daemon is ready (pidfile written, listeners open, signal handlers installed), for the ircd and for services. A Type=forking systemd unit no longer logs "Can't open PID file (yet?)", Restart=on-failure works, and a daemon that dies while starting makes the command exit non-zero instead of reporting success.
  • tools/upgrade.py checks linger when the systemd user units are enabled and turns it on when it may. Without linger, the ircd and services stop 10 seconds after your last SSH session closes and every user is disconnected. If you run the units, make sure loginctl show-user $USER -p Linger says Linger=yes.

Containers and platforms

  • Container image for x86-64 and arm64 on ghcr.io/gcanosa/sekurircd (latest, 1.3.5, 1.3, edge), with container/setup.sh (a guided podman install), a compose.yaml for Docker and container/README.md. It holds the ircd, services, the stats panel and the config tools.
  • CI builds and tests on Linux (x86-64 and arm64), macOS, FreeBSD, OpenBSD, NetBSD and Windows (Cygwin), and publishes the image only after every platform is green.

Fixes

  • [[classes]] hosts and the other IP lists: an IPv6 glob written with zero-padded groups (2602:f992:00c8:b79*) never matched, so the client hit "Too many connections from your host". Plain ::1 and globs starting with :: never matched either. Both are fixed when the config loads, and sekurircd --check warns.
  • A restarted leaf now tells its hub about its always-on users. If a leaf was restarted on an older version, /SQUIT it from the hub once and it relinks with them.
  • WHOIS idle time only resets on a PRIVMSG, as on other ircds. WHOX %l follows +I.
  • The stats panel has a real login form and a Log out button (restart it with ./sekurircd restart-stats). The debug-channel stats line no longer reports stale services on a leaf.

Also new

  • A short MOTD (ircd.smotd, shown on connect while /MOTD shows the full one) and a bot.motd shown on +B.
  • [server] extra_ports and [tls] extra_ports add client listeners; REHASH opens and closes them without dropping anyone.

Upgrade the hub and every leaf to 1.3.5. Mixed versions link fine, but a leaf running an older version does not enforce or relay the global spam rules. Full list: changelog.