webhook/docs
Ian Roberts 98cf5d0163
Add support for systemd socket activation (#704)
* feat: add support for systemd socket activation

If webhook has been launched via systemd socket activation, simply use the systemd-provided socket rather than opening our own.

* docs: documentation for the systemd socket activation mode

* refactor: moved setuid and setgid flags into platform-specific section

The setuid and setgid flags do not work on Windows, so moved them to platform_unix so they are only added to the flag set on compatible platforms.

Also disallow the use of setuid and setgid in combination with -socket, since a setuid webhook process would not be able to clean up a socket that was created while running as root.  If you _need_ to have the socket owned by root but the webhook process running as a normal user, you can achieve the same effect with systemd socket activation.
2024-10-25 23:18:04 +02:00
..
logo crisp 2017-11-11 12:29:39 +01:00
Hook-Definition.md Add soft signature failure support 2020-11-24 21:16:57 -06:00
Hook-Examples.md fix: additional typo (#652) 2023-09-18 00:09:39 +02:00
Hook-Rules.md Add option to bind to a Unix socket instead of a TCP port (#703) 2024-10-25 09:38:22 +02:00
Referencing-Request-Values.md Add request source 2020-11-20 16:32:55 -06:00
Systemd-Activation.md Add support for systemd socket activation (#704) 2024-10-25 23:18:04 +02:00
Templates.md Update Templates.md 2023-12-26 08:49:09 +01:00
Webhook-Parameters.md Add option to bind to a Unix socket instead of a TCP port (#703) 2024-10-25 09:38:22 +02:00