mirror of
https://github.com/PegaProx/project-pegaprox.git
synced 2026-04-25 18:15:50 +03:00
[PR #61] [MERGED] fix(update): restore 0700 permissions on config/ and ssl/ after update #99
Labels
No labels
Approved
Q2-3 2026 Development
bug
documentation
enhancement
help wanted
invalid
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/project-pegaprox-PegaProx#99
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/PegaProx/project-pegaprox/pull/61
Author: @ry-ops
Created: 2/21/2026
Status: ✅ Merged
Merged: 2/22/2026
Merged by: @mkellermann97
Base:
main← Head:fix/update-preserve-config-permissions📝 Commits (1)
06fd05ffix(update): restore 0700 permissions on config/ and ssl/ after update📊 Changes
1 file changed (+13 additions, -0 deletions)
View changed files
📝
update.sh(+13 -0)📄 Description
Summary
When
update.shruns as root (the typicalsudo ./update.shflow), the shell's umask can leaveconfig/andconfig/ssl/with overly permissive modes after the git pull + file ownership restore step.These directories hold the encrypted SQLite database (
pegaprox.db) and SSL private keys — they should only be readable by the service user (mode0700).Change: Add an explicit
chmod 700forconfig/,config/ssl/, and the legacyssl/location at the end of the ownership-fix block, so permissions are always correct regardless of the caller's umask.Test plan
sudo ./update.shand verifyconfig/has permissionsdrwx------after completionconfig/ssl/(orssl/) also hasdrwx------🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.