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
How to enable authentication token mode for http endpoint when using cloudformation #769
Comments
@enlinxu: |
Sorry, I didn't made myself clear. Once the dcos auth login is done, I tried to post a request to /acs/api/v1/auth/login in order to get the token, but I am getting: My request contains following in the body in json: |
What are you trying to do? Once you run |
@tamarrow Thanks a lot for your quick responses. According to https://docs.mesosphere.com/1.8/administration/id-and-access-mgt/iam-api/ , I just need to post a request to http://{cluster_url}/acs/api/v1/auth/login , with body: But I keep getting: I wonder if it's possible to do so. Thanks |
I think I have set up the cluster correctly in terms of the cluster http endpoint authentication. If I do But if I do curl --header "Authorization: token={token}" http://{Cluster_IP}/mesos/master/state.json But the only way to get the token is through dcos auth login and open the browser. Can I get the token from REST? |
You can get the token from the api that you mentioned above. I presume your curl command is invalid. Just verified this works: using curl: using httpie: |
@enlinxu closing issue. If you feel it's not resolved feel free to reopen |
I'm not sure this is a CLI issue, but still posting this here because I have the same problem as @enlinxu. Essentially, the following: Gives me a I need this to work to setup automated deployments through a CI server. |
Are you running an open or enterprise cluster? This will only work for enterprise clusters. |
@tamarrow @andimitre That's what I figured out late in my investigation. We are running the OS version (1.7) and I only realized later that the documentation I found was on the enterprise version of your site (but no where to be found on the os version of it). |
Hi, @tamarrow I am installing my cluster based on https://dcos.io/docs/1.8/administration/installing/cloud/aws/ Is that an enterprise cluster? |
No, anything under "dcos.io" is open |
Hi @enlinxu @tamarrow @ensonik, I have the same problem. I'm trying run marathon-autoescale.py but I'm getting this: This application tested with Python3 only How can I solve this? IT'S VERY IMPORTANT FOR ME!!!!!!! THANK YOU |
@canmenev If you're running the Open Source version of dcos, it won't work. It's an enterprise feature. |
@ensonik thank you very much! I would like to run marathon-autoescale.py in Open Source version, is there any other possible way to do it? THANK YOU! |
I want to set up http username and password for http endpoint access, using cli. Any suggestion? Is there a sample cloudformation template that I can refer?
What version of DC/OS + DC/OS CLI are you using (
dcos --version
)?Enlins-MacBook-Pro:dcos Enlin$ dcos --version
dcoscli.version=0.4.10
dcos.version=1.8.4
dcos.commit=e64024af95b62c632c90b9063ed06296fcf38ea5
dcos.bootstrap-id=5b4aa43610c57ee1d60b4aa0751a1fb75824c083
What operating system and version are you using?
I am using DC/OS cloudformation
What did you do?
I am simply following the online instruction to set up the docs cluster. The cluster is up and running, but I want to enable the authentication token mode for http endpoint access.
What did you expect to see?
I want to set up http username and password for http endpoint access, using cli.
The text was updated successfully, but these errors were encountered: