Skip to content

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.

1 participant