Joey
08/05/2022, 5:28 AMJoey
08/05/2022, 5:28 AMsrolevink
08/05/2022, 7:22 AMdefinition a {
relation rights: a_rights
relation b: b
relation c: c
relation d: d
permission view = rights->viewer & b->view & c->view & d->view
permission manage = view & rights->manager
}
definition a_rights {
relation viewer: user_role#holder
relation manager: user_role#holder
}
// same for c & d
definition b {
relation rights: b_rights
permission view = rights->viewer
}
definition b_rights {
relation viewer: user_role#holder
}
The LookupResources call is done when we ask spicedb for the permission manage
of a instance of a
. How can this lead to a timeout, even with a very limited amount of data? Sometimes I get another error:
{"level":"error","requestID":"7c3074bc711f1374efa1d01fd2c7de2d","error":"unable to read namespace config: context canceled","time":"2022-08-05T13:20:37Z","message":"received unexpected error"}
And sometimes everything works without a problem.Joey
08/05/2022, 4:50 PMcontext canceled
means that the connection was terminated or timed outJoey
08/05/2022, 4:51 PMconnor
08/05/2022, 8:09 PMreadPermission
is not available with the PermissionsServiceFutureStub
. It looks like the method is available in the PermissionsServiceBlockingStub
.
I suspect this is because the blocking stub returns an Iterator
that under the hood makes more calls to the database as needed. Is there any way to read relationships with a non-blocking API?Joey
08/05/2022, 8:15 PMreadRelationships
?connor
08/05/2022, 8:16 PMJoey
08/05/2022, 8:19 PMJoey
08/05/2022, 8:20 PMyetitwo
08/05/2022, 10:16 PMyetitwo
08/05/2022, 10:16 PMreadPermission
defines a response stream) you can't use the future stubyetitwo
08/05/2022, 10:17 PMAsyncStub
if you want an async interface on readPermissions
yetitwo
08/05/2022, 10:18 PMyetitwo
08/05/2022, 10:19 PMerdaldogan
08/07/2022, 2:32 PM/
, spaces, length limits, etc.?
I made a search in this channel but only found few. Would be interested in an exhaustive list if possible. Thank you 🙂Jake
08/07/2022, 2:33 PMJake
08/07/2022, 2:33 PMJake
08/07/2022, 2:35 PMauthzed/api/v1/core.proto
Jake
08/07/2022, 2:37 PM/
, 128 bytes on object types and object IDs, and 64 bytes on relation names.Jake
08/07/2022, 2:38 PMerdaldogan
08/07/2022, 2:42 PMPrchowdh
08/07/2022, 6:30 PMJake
08/07/2022, 6:31 PMJake
08/07/2022, 6:33 PMPrchowdh
08/07/2022, 6:36 PMJake
08/07/2022, 6:37 PMJake
08/07/2022, 6:38 PMPrchowdh
08/07/2022, 6:43 PMJoey
08/07/2022, 6:44 PM