[
https://issues.apache.org/jira/browse/MESOS-3923?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Anand Mazumdar updated MESOS-3923:
----------------------------------
Description:
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.
was:
If authorization features are enabled on a master frameworks attempting to use
the HTTP 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}
> Implement AuthN handling for HTTP Scheduler API
> -----------------------------------------------
>
> 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
> 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)