The above was done and I was able to give access to promtail to view the logs.
However after I restarted the instance, caddy once again re-assigned the same permission values to the logs.
Is there no declarative way in the caddyfile to deny this from happening?
Installation
Installation was done via apt.
Service is configured to run at boot via systemd.
I have in fact, use xcaddy to customize the original binary and replaced it due to needing other things.
cp caddy $(which caddy)
I’ve tried looking at the docs but I might have missed any settings that related to permissions on logs, I’ve also tried searching here but no results.
Attempted permanent fix
I’ve attempted to use setfacl but no dice, it either denies caddy or other users.
Are you sure it is caddy and not your service manager (systemd et al) that resets the permissions? I have mine at 644 and they do not change on restart. I use OpenRC as service manager and logrotate to manage my logs.