summaryrefslogtreecommitdiff
path: root/protos
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-03-05 17:12:02 -0700
committermo khan <mo@mokhan.ca>2025-03-05 17:12:35 -0700
commit61b6d010fce0925e3d27ff33484153170e28147c (patch)
tree0ad4b678d0b0dc7d6b75fc29624d1f0c5b49672b /protos
parent4100066e1d4dfc50f74e4d749ce29c8db2d3fa63 (diff)
feat: define the protobuf service definition
Diffstat (limited to 'protos')
-rw-r--r--protos/ability.proto13
1 files changed, 13 insertions, 0 deletions
diff --git a/protos/ability.proto b/protos/ability.proto
new file mode 100644
index 00000000..656f4f97
--- /dev/null
+++ b/protos/ability.proto
@@ -0,0 +1,13 @@
+service Ability {
+ rpc Allowed (AllowRequest) returns (AllowReply) {}
+}
+
+message AllowRequest {
+ required string subject = 1;
+ required string permission = 2;
+ required string resource = 3;
+}
+
+message AllowReply {
+ required bool result = 1;
+}