summaryrefslogtreecommitdiff
path: root/proto/ability.proto
diff options
context:
space:
mode:
Diffstat (limited to 'proto/ability.proto')
-rw-r--r--proto/ability.proto16
1 files changed, 16 insertions, 0 deletions
diff --git a/proto/ability.proto b/proto/ability.proto
new file mode 100644
index 0000000..ccef946
--- /dev/null
+++ b/proto/ability.proto
@@ -0,0 +1,16 @@
+syntax = "proto3";
+package authz.rpc;
+
+service Ability {
+ rpc Allowed (AllowRequest) returns (AllowReply) {}
+}
+
+message AllowRequest {
+ string subject = 1;
+ string permission = 2;
+ string resource = 3;
+}
+
+message AllowReply {
+ bool result = 1;
+}