Skip to content

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 15 Nov 16:14
· 16 commits to main since this release

Changed (incompatible)

  • Logs now arrive on a unix socket by default: listen defaults to unix:/run/httpdog/httpdog.sock instead of the UDP address 127.0.0.1:5514. httpdog believes every line it receives, and on UDP any program that could reach the address could send lines and raise false alerts. The socket is open to root and the web server's group only. To upgrade from 0.1.0: install the new deploy/httpdog.service, change nginx's syslog:server= to unix:/run/httpdog/httpdog.sock, restart httpdog and reload nginx. A rule file that sets listen: 127.0.0.1:5514 itself, as the rules.example.yaml of 0.1.0 did, keeps receiving over UDP and now prints the warning below.
  • A malformed listen is now a rule file error (exit status 78) instead of a failure to listen (exit status 1).

Added

  • listen: unix:/path receives logs on a unix datagram socket, created with mode 0660. deploy/httpdog.service hands it to the group nginx's workers run as; httpdog does not join that group.
  • A warning in the log at every start when listen is a UDP address, with stronger wording when the address is not a loopback address.
  • A reload that finds a changed listen says that it only takes effect after a restart.

Known limitations

  • Restarting httpdog without reloading nginx loses one log line per nginx worker, see docs/limits.md.