-
Notifications
You must be signed in to change notification settings - Fork 90
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
Support Mesos Framework Authorisation #218
Comments
Note from Mesosphere |
Note to self: When enabling auth on DCOS this is how to do it.
However, the MARATHON_ commands, even though they should. So we have to set this:
Then run the 218 branch with the following JSON:
Mesosphere bug still stands as of 27/08/15 |
The Auth branch has been tested working on a pure mesos cluster. Instructions to replicate are below. SetupA single AWS micro instance was setup using the AMI: mesos-0.22.1-ubuntu-14.04_amd64_0.22.1.0 (ami-47b0c930) This installs ubuntu, mess, zookeeper and marathon. Zookeeper starts as a service, but Mesos needs to be started from the command line. Running MesosThe following commands will write the username and passwords to two files. One for Mesos and one for the framework. Note how the echo commands use the -n parameter to prevent placing a newline at the end of the file. Auth will not work with a newline at the end. Also note that the framework secret file only contains the password, not the username.
Next we start a Mesos slave and Mesos master on the same machine. We also start marathon using the framework credentials. Zookeeper is required, since ES needs it to start up. Groups must be used, as this is not the default. Containerises must be used, as this is not the default. Please change the ip address to match the local ip address of your test machine
Marathon commandA volume is added so that the user can pass the secret file through to the container. The secret must be a file. In this case, we are using the
|
Fixed in #220 |
Still does not work on DCOS.
Notes: Secret should not be necessarily required, for maximum flexibility in auth modes.
Same as: d2iq-archive/marathon#638
Links: https://github.com/mesosphere/marathon/blob/c7624e0c3778da02919e743e8b9eda7248acd1a1/src/main/scala/mesosphere/marathon/MarathonSchedulerDriver.scala#L47
http://mesos.apache.org/documentation/latest/authorization/
http://mesos.apache.org/blog/framework-authentication-in-apache-mesos-0-15-0/
See DCOS PR d2iq-archive/universe#193
The text was updated successfully, but these errors were encountered: