zhangbo.yang
07/04/2024, 11:01 AMdocument
not found","grpc.time_ms":10,"time":"2024-07-04T10:30:04Z","message":"finished call"}
{"level":"debug","requestID":"cq37jcpq95bdvsq3db60","now":"2024-07-04T10:30:11Z","time":"2024-07-04T10:30:11Z","message":"computing new revision"}
{"level":"debug","requestID":"cq37jcpq95bdvsq3db60","pgx":{"args":[],"commandTag":"SELECT 1","pid":14528,"sql":"\n\tWITH selected AS (SELECT COALESCE(\n\t\t(SELECT xid FROM relation_tuple_transaction WHERE timestamp >= TO_TIMESTAMP(FLOOR(EXTRACT(EPOCH FROM NOW() AT TIME ZONE 'utc') * 1000000000 / 5000000000) * 5000000000 / 1000000000) AT TIME ZONE 'utc' ORDER BY timestamp ASC LIMIT 1),\n\t\tNULL\n\t) as xid)\n\tSELECT selected.xid,\n\tCOALESCE((SELECT snapshot FROM relati...","time":0.5303},"time":"2024-07-04T10:30:11Z","message":"Query"}
{"level":"debug","requestID":"cq37jcpq95bdvsq3db60","now":"2024-07-04T10:30:11Z","valid":"2024-07-04T10:30:14Z","validFor":"3.749268s","time":"2024-07-04T10:30:11Z","message":"setting valid through"}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x15b334d]
Our docker down due to this parts of logvroldanbet
07/04/2024, 11:16 AMvroldanbet
07/04/2024, 11:25 AMvroldanbet
07/04/2024, 11:26 AMvroldanbet
07/04/2024, 11:27 AMzed
command line tool, the official SpiceDB client CLI, which allows you to perform a backup of your SpiceDB instance and share it with us securely (you can create a backup with zed backup create
and then "redact" all sensitive data using zed backup redact
, which obfuscates the schema and relationships)zhangbo.yang
07/05/2024, 5:45 AM{
"schemaText": "definition user {\n\trelation manager: department\n\tpermission view = manager->view\n}\n\ndefinition department {\n\trelation child: department#child\n\trelation member: user\n\tpermission view = member + child->view\n}",
"readAt": {
"token": "GgYKBENQMEs="
}
}
what he execute is:
/v1/permissions/resources
{
"consistency": {
"minimizeLatency": true
},
"resourceObjectType": "document",
"permission": "view",
"subject": {
"object": {
"objectType": "user",
"objectId": "alice"
}
}
}
zhangbo.yang
07/05/2024, 5:45 AMv1/permissions/subjects
{
"consistency": {
"minimizeLatency": true
},
"subjectObjectType": "user",
"permission": "view",
"resource": {
"objectType": "document",
"objectId": "topsecret1"
}
}
zhangbo.yang
07/05/2024, 5:47 AMvroldanbet
07/05/2024, 9:35 AMzhangbo.yang
07/05/2024, 9:36 AMvroldanbet
07/05/2024, 9:36 AMzhangbo.yang
07/05/2024, 9:37 AMzhangbo.yang
07/05/2024, 9:39 AMvroldanbet
07/05/2024, 10:58 AM