-
Notifications
You must be signed in to change notification settings - Fork 188
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
Singularity Mesos Auth #1756
Comments
I will have to investigate further on the credentialPrincipal/credentialSecret. There is a chance something went funky with the move to the http api there. As for auth, we don't have a 'Basic Auth' solution built into singularity just yet (#19), but we do have a webhook auth similar to how kubernetes webhook token auth is set up. You can see docs on that here: http://getsingularity.com/Docs/features/auth.html |
Alright, that sounds good. I also found out that if mesos runs on https the api calls from singularity go to http. Is there a way to declare it as https calls? |
Update: If I try to provide the credentials in the mesos section I get an nullpointer exception and if I provide it in the server section I get an "unknown response from master 401" so he can authenticate. I searched a bit more and found
("The xxx in the ips are naturally from me") So I dont know where and how I should write the credentials... With https mesos and singularity I still get errors. He just make requests to the http api I think and not to the https. I would be great if I can configure it to https. Update: I think the credentials are for the framework authentication and not for the mesos api Iam right or? Anyone can help? This came when I write it to no namespace in the root from the second node. The first gets the error from top
|
Still dont work. If I try in Singularity 19.2 to provide the mesosUsername and mesosPassword I think following happens. The logs:
My Mesos Configuration Part:
Still an issue or or did I make a mistake? |
So, for the first error, one of your master urls has http on the front and one does not. I can fix the code to better check for that. As for the second error, I may need to file an issue with mesos-rxjava. Seems it does not carry over the credentials after being redirected to the active master. |
Yes I think there is something strange. I tried it again without http and It still dont work. I dont know if I make some mistakes. EDIT: I tried it again.. and now it works correctly. Dont know why dont know what I changed... Would it be possible that providing the http before the master adresses is possible? So its easier to configure mesos https or is there another way? |
Can you paste the format version that works correctly? One of our team will make a PR so our parsing handles more cases |
This is the mesos part in my configuration. So you say the https part will come? Simple were it with http:ip:port/https:ip:port. Simple to configure and I hope simple to parse. EDIT: I saw that it works only sometimes, so I searched for logs and found this:
When the authentication and the redirect is on the same server it works. But when it is on different it fail with an 401 unauthenticated. He authenticate only on one server and not at the other where the next request goes and fails. |
Opened a PR with mesos-rxjava at d2iq-archive/mesos-rxjava#84 |
Fixed in #1867 |
Is there any possible way to authenticate to the mesos api? I made it, because I dont want that everyone can read or write the API from Mesos. Unfortunately Singularity cant authenticate too and I found no way to it. I tried it with credentialPrincipal and credentialSecret without success.
Also Iam searching for a way to do this with the Singularity API. Is there any way to protect the API with simple credentials?
The text was updated successfully, but these errors were encountered: