romil
04/12/2022, 3:46 PMuser
04/12/2022, 3:48 PMromil
04/12/2022, 3:48 PMromil
04/12/2022, 3:57 PMuser
04/12/2022, 5:15 PMserviceAccountName: "spicedb"
in your podspec in the spicedb deploymentromil
04/13/2022, 8:15 AMcomjf
04/13/2022, 9:16 PMfailed to connect to <rds-instance>.us-east-1.rds.amazonaws.com user=spicedb_admin database=spicedb`: dial error (dial tcp <vpc-ip-addr>:5432: operation was canceled)
Does anyone have tips on how to debug this. Pods are stable with no restarts, pods and rds are in the same VPC... It doesn't seem to be correlated with load. I'm curious if there are any more logs I can abstract from spicedb about this issue, to include in AWS support ticket (wanna make sure it's not DNS related)Jake
04/13/2022, 9:19 PMcomjf
04/13/2022, 9:23 PMcomjf
04/13/2022, 9:23 PMJake
04/13/2022, 9:24 PMcomjf
04/13/2022, 9:25 PMromil
04/14/2022, 1:01 PM--dispatch-upstream-addr=kubernetes:///spicedb.authz:50053
. I see that read and write endpoints are all working fine but the call for lookup/ expand and check are failing with the below said error
last connection error: connection error: desc = \"transport: Error while dialing dial tcp <xxxx>:50053: connect: connection refused
I don't see any other error on the pod logs, any view?
{"level":"warn","grpc.component":"server","grpc.method":"CheckPermission","grpc.method_type":"unary","grpc.service":"authzed.api.v1.PermissionsService","peer.address":"127.0.0.1:33296","protocol":"grpc","requestID":"3bd3b49e05697e5f7b48b1ebad2dade7","grpc.start_time":"2022-04-14T13:04:17Z","grpc.code":"Unavailable","grpc.error":"rpc error: code = Unavailable desc = last connection error: connection error: desc = \"transport: Error while dialing dial tcp
<xxxx>:50053: connect: connection refused\"","grpc.time_ms":"0.597","time":"2022-04-14T13:04:17Z","message":"finished call"}
Version of Spicedb is : quay.io/authzed/spicedb:v1.6.0
Jake
04/14/2022, 1:31 PMkubectl describe
on your deployment?Jake
04/14/2022, 1:32 PMkubectl describe service spicedb
romil
04/14/2022, 1:42 PMJake
04/14/2022, 1:43 PMJake
04/14/2022, 1:44 PMJake
04/14/2022, 1:48 PM9:47AM INF grpc server started listening addr=:50053 network=tcp prefix=dispatch-cluster workers=0
luke
04/14/2022, 3:10 PMJoey
04/14/2022, 3:10 PMJoey
04/14/2022, 3:11 PMJoey
04/14/2022, 3:11 PMluke
04/14/2022, 3:12 PMJoey
04/14/2022, 3:12 PMJoey
04/14/2022, 3:12 PMluke
04/14/2022, 3:22 PMdefinition user {}
definition foo {
relation creator: user
permission read: creator
}
definition bar {
relation foo: foo
permission read: foo->read
}
what strategy would I use for saving zedtokens so that I could use the cache to get all `bar`s that some user
can read
via LookupResources
?
So far I’ve been relying on fully consistent lookups but for some users that is far too computationally intensiveluke
04/14/2022, 3:24 PMuser
and foo
I know I can save zedtokens for the user
for this purpose. But I’m not sure what to do with the nested caseJoey
04/14/2022, 3:28 PMJoey
04/14/2022, 3:29 PM