-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strict file mode (permissions) setting? #3200
Comments
Tbh, I don't like the idea of adding one more setting. Also, I don't fully see any viable reason for making these settings stricter. I mean it's okay to have 600 for the config file (since it contains secrets), but it's okay for other files that do not have any secrets to be 644. |
@ameshkov, I would say that the query log, stats, and sessions can also be quite sensitive. And after that, the only things that are left are filters and the stuff we do during the automatic update. Do we really want two sets of permissions? |
IMO, it's better to have it than one more setting |
Let's think about it later, I still don't like that this is a breaking change. |
Currently, AGH creates most of its files and directories with permissions like
0o644
(-rw-r--r--
) for non-executable files and0o755
(-rwxr-xr-x
) for executables and directories. CWE and securego.io recommend these to be no greater than0o600
(-rw-------
) and0o750
(-rwxr-x---
) correspondingly.I propose that we add a setting,
strict_file_mode
, which makes AGH make these0o600
and0o750
/0o700
. I would like it to be set totrue
by default, but that could break people's backup and other scripts. Perhaps it should only betrue
for new installations?@ameshkov, what do you think?
Related:
The text was updated successfully, but these errors were encountered: