Skip to content
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

Postgresql backup is world-readable #322

Closed
taoeffect opened this issue Nov 1, 2014 · 0 comments
Closed

Postgresql backup is world-readable #322

taoeffect opened this issue Nov 1, 2014 · 0 comments

Comments

@taoeffect
Copy link

Continuing with permissions audit (see #321), the postgresql backup that's created by /root/tarsnap.sh in /decrypted is world-readable.

This should be fixed by having a umask 077 call within the cron script prior to this line:

https://github.com/al3x/sovereign/blob/5f6160f914c647ddb6a3d8e47d1b5a46fbf6b22c/roles/tarsnap/files/tarsnap.sh#L61

Needless to say, without this, it is dangerous as it will expose every single password and user in the database to all users on the system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant