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

What specific task needs sudo/root privilege's when nomad_user is not root? #145

Open
saurabh-sp-tripathi opened this issue Jan 3, 2022 · 0 comments

Comments

@saurabh-sp-tripathi
Copy link

saurabh-sp-tripathi commented Jan 3, 2022

I understand the nomad need to be start/restart as a 'root' user because many operation it runs, needs root privilege.

However as a system admin I would like to harden/limit the scope of 'sudo' access to specific tasks only. As far as I have analyzed the following will need sudo/become/root privilege's:

  • handlers/main.yml: restart nomad
  • tasks/main.yml: start nomad
  • file & template operations owned by root

Is there anything out of this list ? and Is there any cautions or recommendations?

ref: https://www.nomadproject.io/docs/install/production/requirements

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

No branches or pull requests

2 participants