Skip to content

SekurIRCd 1.2.5

Choose a tag to compare

@gcanosa gcanosa released this 21 Oct 12:15
· 135 commits to main since this release

Pinned TLS server links

Pin each other's TLS certificate with fingerprint = "sha256:..." in [[links.peers]] (needs [links] tls = true).

  • Self-signed certificates work without tls_insecure_skip_verify.
  • A server that doesn't show the pinned certificate is refused before any password is sent or checked: the dialing side checks the hub's certificate before PASS, and the hub now asks for the dialer's certificate (its [tls] cert) and checks it before the password.
  • With a fingerprint the password is optional, so a link can run with no plain-text secret on either server.
  • Turning on [links] tls no longer cuts off the services daemon (it has no TLS): plain links are still accepted from 127.0.0.1, and only TLS from anywhere else.
  • tools/linkmgmt.py fingerprint prints this server's fingerprint, test HOST PORT --tls shows the other server's, and the add/edit wizard offers pinning.

Passwords and file permissions

  • tools/confcheck.py --fix --write turns plain-text passwords into scrypt password_hash lines: operators, die_password/restart_password, and link peers the server only accepts from. The same passwords keep working. The ircd logs a reminder at start and on /REHASH while any are left. Delete the .pre-fix-* backup once /OPER works: it still holds the old passwords.
  • confcheck warns about configs, the TLS key, account/ChanServ stores and --fix backups that other local users can read or change, with the exact chmod/chown for each case (including when the daemon runs as another user). --fix backups are now 0600.

Upgrading

Nothing to convert. Existing links keep working unchanged; pinning is opt-in. Optionally run tools/confcheck.py to see plain-text passwords and file-permission warnings.

132 end-to-end integration tests, including pinned links, wrong pins on either side, and services over loopback.

SHA-256 sekurircd-1.2.5.tar.gz: 6a06c48d3790a6c9caef08b8c5128c3587e1003bbd2ad3b00386806a0549bf80