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

Harden permissions for nomad directories #155

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

haxxboi
Copy link

@haxxboi haxxboi commented Jun 2, 2022

I'm building infrastructure with this and been checking permissions on files.

I've found loose permissions that can be read by anybody on the machine, first, on config files, these can have secret consul tokens and gossip encryption keys.

TLS directory seemed OK as private key is 600 restricted and certs are public.

However, /var/nomad is exposed to all which is extremely severe as below command works and prints vault token of allocation on debian 11 machine:

sudo -u nobody cat /var/nomad/alloc/db8014a5-30ca-ad43-6e96-60881fc66f17/run/secrets/vault_token

Do with this what you will.

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

Successfully merging this pull request may close these issues.

None yet

1 participant