-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Open
Description
Issue Details
I know log permissions have been discussed before and resulted in a mode option for the file output of the log directive.
However, this option does not apply to any subdirectories that Caddy might create during logging.
For example:
My log directory is: caddy:caddy | 0755 | /var/log/caddy
My Caddyfile logging snippet:
log {args[0]} {
output file /var/log/caddy/{args[0]}/access.log {
mode 0644
}
}
The created file is: 0644 | /var/log/caddy/example/access.log, as requested.
However, the created subdirectory is 0700 | /var/log/caddy/example/.
To me, this is counter-intuitive and undesired behavior, as the end-result is not what I requested in the configuration.
I think it would make sense if any created directories followed the file mode setting in the config. IE w -> w and r -> rX.
Assistance Disclosure
AI not used
If AI was used, describe the extent to which it was used.
No response
Metadata
Metadata
Assignees
Labels
No labels