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

Authentication and authorization #227

Closed
F21 opened this issue Oct 7, 2015 · 16 comments
Closed

Authentication and authorization #227

F21 opened this issue Oct 7, 2015 · 16 comments

Comments

@F21
Copy link

F21 commented Oct 7, 2015

For production use, authentication so that we can restrict who has access to administrate the cluster is important.

It would be nice to also have some sort of authorization, for example:

  • Users can only manage their own jobs.
  • Users can only use x amount of resources in the cluster.
  • etc
@dadgar
Copy link
Contributor

dadgar commented Oct 7, 2015

This is something we will do, however are not focusing on currently.

@ghost
Copy link

ghost commented Oct 9, 2015

For the authentication/encryption bits, an interim solution could be to give nomad cli and option to set simple auth, and then stick nginx or something in front of the endpoint doing ssl and authentication (like how private docker registry works).

@cdrage
Copy link
Contributor

cdrage commented Nov 5, 2015

@rvm2015 @dadgar
Would the plan be perhaps to go a similar route as Consul with it's encryption? https://www.consul.io/docs/agent/encryption.html

@davidpelaez
Copy link

@dadgar I understand this in the level of expressiveness suggested by @F21 is not a priority. How about encryption of gossip and raft traffic? I think that would be within the scope of a issue with this title but I want to confirm if it should have it's own issue.

@dadgar
Copy link
Contributor

dadgar commented Nov 19, 2015

@davidpelaez: Yep that should be its own issue!

@mortaliorchard
Copy link

For companies which are trying to add authentication (or at least a system that would restrict using specific features), what would you recommend? Many thanks!

@dadgar
Copy link
Contributor

dadgar commented Apr 13, 2016

@mortaliorchard without Nomad enforcing it you would essentially need the HTTP API to be behind a proxy that enforces your ACLs.

@mortaliorchard
Copy link

Thanks @dadgar.

@sheerun
Copy link
Contributor

sheerun commented Jan 3, 2017

@dadgar Ideally nomad would use the same simple authorization scheme as docker or kubernetes - being able to provide single token that is used to deterministically generate both https certificates, key encrypting gossip traffic, and is used for authentication. Currently setting up secure nomad is a chore..

@rokka-n
Copy link

rokka-n commented Jan 24, 2017

I like it as well: having token-based auth for the client would make jobs scheduling and cluster management a breeze.

@cl0udgeek
Copy link

how has this not been prioritized yet??? Need auth for prod....

@pznamensky
Copy link

This is the critical issue for me.
Yes, I can tell nomad to bind on 127.0.0.1 and setup a proxy in front of nomad. But solution with HTTP basic auth breaks several commands: #2773
Besides, this doesn't let to start at least docker with --net=host, because nomad's API would be reachable inside docker at localhost.

@dadgar
Copy link
Contributor

dadgar commented Jul 28, 2017

This will be a focus of Nomad 0.7.0!

@hauleth
Copy link

hauleth commented Aug 17, 2017

@dadgar I have found small project Open Policy Agent which seems like nice idea to manage policies in Nomad. I am not saying that this should be project integrated into Nomad/Hashistack (however that also wouldn't be bad idea), but some ideas are nice.

@dadgar
Copy link
Contributor

dadgar commented Nov 3, 2017

Hey all! This has landed in Nomad 0.7! https://www.nomadproject.io/guides/acl.html

@dadgar dadgar closed this as completed Nov 3, 2017
benbuzbee pushed a commit to benbuzbee/nomad that referenced this issue Jul 21, 2022
@github-actions
Copy link

github-actions bot commented Dec 6, 2022

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests