Repository: mesos
Updated Branches:
  refs/heads/master 98c010a87 -> 79a98ef73


Updated authorizer.proto Request.

`subject` and `object` are now optional fields of the `Request` proto
message.

Review: https://reviews.apache.org/r/47505/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/79a98ef7
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/79a98ef7
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/79a98ef7

Branch: refs/heads/master
Commit: 79a98ef739dd67a301ed08cc35f446772f224abd
Parents: 98c010a
Author: Till Toenshoff <toensh...@me.com>
Authored: Tue May 31 21:39:53 2016 +0200
Committer: Till Toenshoff <toensh...@me.com>
Committed: Tue May 31 21:39:53 2016 +0200

----------------------------------------------------------------------
 include/mesos/authorizer/authorizer.proto | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/79a98ef7/include/mesos/authorizer/authorizer.proto
----------------------------------------------------------------------
diff --git a/include/mesos/authorizer/authorizer.proto 
b/include/mesos/authorizer/authorizer.proto
index 0142476..4fefeed 100644
--- a/include/mesos/authorizer/authorizer.proto
+++ b/include/mesos/authorizer/authorizer.proto
@@ -23,8 +23,7 @@ option java_outer_classname = "Protos";
 
 
 // A `Subject` is the entity which desires to execute an `Action` on
-// an `Object`. The `Subject` is described by its `value`. When
-// `value` is not set the subject is unknown.
+// an `Object`. The `Subject` is described by its `value`.
 message Subject {
   optional string value = 1;
 }
@@ -34,7 +33,7 @@ message Subject {
 // `Action`. An `Object` is described by its value and the action in
 // the request, e.g. when registering frameworks, the value represents
 // a role, while when running a task it is the user name the task will
-// be run as. If the value is not set, the object is unknown.
+// be run as.
 message Object {
   optional string value = 1;
   optional FrameworkInfo framework_info = 2;
@@ -97,10 +96,12 @@ enum Action {
 // A `Request` is a <subject, action, object> tuple which can be read
 // as "Can `subject` perform `action` with `object`?".
 message Request {
-  required Subject subject = 1;
+  // An unset `subject` means "unspecified".
+  optional Subject subject = 1;
 
   // Enum fields should be optional, see: MESOS-4997.
   optional Action action = 2;
 
-  required Object object = 3;
+  // An unset `object` means "unspecified".
+  optional Object object = 3;
 }

Reply via email to