File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import "google/rpc/status.proto";
1010import "validate/validate.proto" ;
1111
1212import "authzed/api/v1/core.proto" ;
13+ import "authzed/api/v1/debug.proto" ;
1314
1415// PermissionsService implements a set of RPCs that perform operations on
1516// relationships and permissions.
@@ -334,6 +335,11 @@ message CheckPermissionRequest {
334335
335336 // context consists of named values that are injected into the caveat evaluation context
336337 google.protobuf.Struct context = 5 [ (validate.rules ) .message.required = false ];
338+
339+ // with_tracing, if true, indicates that the response should include a debug trace.
340+ // This can be useful for debugging and performance analysis, but adds a small amount
341+ // of compute overhead to the request.
342+ bool with_tracing = 6 ;
337343}
338344
339345message CheckPermissionResponse {
@@ -358,6 +364,9 @@ message CheckPermissionResponse {
358364
359365 // partial_caveat_info holds information of a partially-evaluated caveated response
360366 PartialCaveatInfo partial_caveat_info = 3 [ (validate.rules ) .message.required = false ];
367+
368+ // debug_trace is the debugging trace of this check, if requested.
369+ DebugInformation debug_trace = 4 ;
361370}
362371
363372// CheckBulkPermissionsRequest issues a check on whether a subject has permission
You can’t perform that action at this time.
0 commit comments