[ 
https://issues.apache.org/jira/browse/MESOS-3923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15238249#comment-15238249
 ] 

Adam B commented on MESOS-3923:
-------------------------------

Ok, just curious how framework schedulers are expected to know how to fill out 
the request headers, etc. to accommodate a custom authenticator module, e.g. 
for SPNEGO or token-based authn. We can discuss offline.

> Implement AuthN handling in Master for the Scheduler endpoint
> -------------------------------------------------------------
>
>                 Key: MESOS-3923
>                 URL: https://issues.apache.org/jira/browse/MESOS-3923
>             Project: Mesos
>          Issue Type: Bug
>          Components: framework, HTTP API, master
>    Affects Versions: 0.25.0
>            Reporter: Ben Whitehead
>            Assignee: Anand Mazumdar
>              Labels: mesosphere
>
> If authentication(AuthN) is enabled on a master, frameworks attempting to use 
> the HTTP Scheduler API can't register.
> {code}
> $ cat /tmp/subscribe-943257503176798091.bin | http --print=HhBb --stream 
> --pretty=colors --auth verification:password1 POST :5050/api/v1/scheduler 
> Accept:application/x-protobuf Content-Type:application/x-protobuf
> POST /api/v1/scheduler HTTP/1.1
> Connection: keep-alive
> Content-Type: application/x-protobuf
> Accept-Encoding: gzip, deflate
> Accept: application/x-protobuf
> Content-Length: 126
> User-Agent: HTTPie/0.9.0
> Host: localhost:5050
> Authorization: Basic dmVyaWZpY2F0aW9uOnBhc3N3b3JkMQ==
> +-----------------------------------------+
> | NOTE: binary data not shown in terminal |
> +-----------------------------------------+
> HTTP/1.1 401 Unauthorized
> Date: Fri, 13 Nov 2015 20:00:45 GMT
> WWW-authenticate: Basic realm="Mesos master"
> Content-Length: 65
> HTTP schedulers are not supported when authentication is required
> {code}
> Authorization(AuthZ) is already supported for HTTP based frameworks.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to