-
Notifications
You must be signed in to change notification settings - Fork 71
config: fix access for config and history file #166
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
Conversation
Fixes apache#157 Signed-off-by: Abhishek Kumar <[email protected]>
DaanHoogland
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clgtm
|
works as expected but I want to sugest being a touch more restrictive in the access rights, i.e. no group access. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes file access permissions for configuration and history files by setting them to group-private mode (0660). The changes ensure that sensitive configuration data is protected from unauthorized access by restricting permissions.
- Introduces a new
makeFileGroupPrivatefunction to set file permissions to 0660 - Applies permission fixes to both config and history files after they are saved
- Adds conditional permission setting for history files when they exist
Signed-off-by: Abhishek Kumar <[email protected]>
Fixes apache#157 --------- Signed-off-by: Abhishek Kumar <[email protected]>
Fixes #157