You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by me...@apache.org on 2016/03/24 05:07:47 UTC
[8/9] mesos git commit: Added authentication information to agent
endpoints.
Added authentication information to agent endpoints.
Agent endpoint help now displays information whether authentication
(if enabled) is required in HELP.
Review: https://reviews.apache.org/r/45036/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/38ad12d9
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/38ad12d9
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/38ad12d9
Branch: refs/heads/master
Commit: 38ad12d96a427ccf3bfb2ebb7f524afbe2ab43c4
Parents: 265f468
Author: Joerg Schad <jo...@mesosphere.io>
Authored: Wed Mar 23 02:31:09 2016 -0700
Committer: Adam B <ad...@mesosphere.io>
Committed: Wed Mar 23 21:07:23 2016 -0700
----------------------------------------------------------------------
src/slave/http.cpp | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/38ad12d9/src/slave/http.cpp
----------------------------------------------------------------------
diff --git a/src/slave/http.cpp b/src/slave/http.cpp
index 5b7bc5e..072f7e6 100644
--- a/src/slave/http.cpp
+++ b/src/slave/http.cpp
@@ -51,6 +51,7 @@
#include "slave/slave.hpp"
#include "slave/validation.hpp"
+using process::AUTHENTICATION;
using process::Clock;
using process::DESCRIPTION;
using process::Future;
@@ -209,7 +210,8 @@ string Slave::Http::EXECUTOR_HELP() {
"transfer encoding. The executors can process the response",
"incrementally.",
"Returns 202 Accepted for all other Call messages iff the",
- "request is accepted."));
+ "request is accepted."),
+ AUTHENTICATION(false));
}
@@ -346,7 +348,10 @@ Future<Response> Slave::Http::executor(const Request& request) const
string Slave::Http::FLAGS_HELP()
{
- return HELP(TLDR("Exposes the agent's flag configuration."));
+ return HELP(
+ TLDR("Exposes the agent's flag configuration."),
+ None(),
+ AUTHENTICATION(true));
}
@@ -378,7 +383,8 @@ string Slave::Http::HEALTH_HELP()
"Health check of the Slave."),
DESCRIPTION(
"Returns 200 OK iff the Slave is healthy.",
- "Delayed responses are also indicative of poor health."));
+ "Delayed responses are also indicative of poor health."),
+ AUTHENTICATION(false));
}
@@ -478,7 +484,8 @@ string Slave::Http::STATE_HELP() {
" \"version\" : \"false\"",
" },",
"}",
- "```"));
+ "```"),
+ AUTHENTICATION(true));
}