DEV Community

Discussion on: Using webhooks to update a self-hosted Jekyll blog

Collapse
 
hrvoj3e profile image
hrvoj3e

Nice. Thanks for this.

But, is this secure?
The hook scripts in execute-command run as root when using weebhook as a service (systemd).

Collapse
 
severo profile image
Sylvain Lesage

Sure, you might want to edit /etc/systemd/system/webhook.service to specify the user, for example a dedicated webhook user created for these tasks only:

[Service]
User=webhook