Joey
11/09/2022, 7:07 PMSingha1
11/09/2022, 8:33 PMJoey
11/09/2022, 9:02 PMJoey
11/09/2022, 9:02 PMSingha1
11/09/2022, 9:26 PMJoey
11/09/2022, 9:55 PMRobertM
11/10/2022, 7:18 AMfully_consistent
consistency in this situation will guarantee that we will get "no permission", but what about at_least_as_fresh
using ZedToken1?
Is it possible that the permission revoke from T1 is still not propagated in T2 and CheckPermission with at_least_as_fresh
and ZedToken1 would return "has permission"?
Or because of Consistent Hash Load Balancing even though permission revoke is not propagated across all nodes - CheckPermission with at_least_as_fresh
and ZedToken1 will return "no permission" anyway because we would "talk" to the same node each time?Jake
11/10/2022, 11:59 AMseeruyy
11/10/2022, 10:18 PM<_MultiThreadedRendezvous of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "failed to connect to all addresses; last error: UNKNOWN: ipv4:172.20.219.130:80: Endpoint is neither UDS or TCP loopback address."
debug_error_string = "UNKNOWN:failed to connect to all addresses; last error: UNKNOWN: ipv4:172.20.219.130:80: Endpoint is neither UDS or TCP loopback address. {grpc_status:14, created_time:"2022-11-10T22:12:13.945987969+00:00"}"
>
Traceback (most recent call last):
File "/home/logdna/.cache/pypoetry/virtualenvs/kong-benchmark-tq7C0_9c-py3.7/lib/python3.7/site-packages/locust/user/task.py", line 347, in run
self.execute_next_task()
File "/home/logdna/.cache/pypoetry/virtualenvs/kong-benchmark-tq7C0_9c-py3.7/lib/python3.7/site-packages/locust/user/task.py", line 372, in execute_next_task
self.execute_task(self._task_queue.pop(0))
File "/home/logdna/.cache/pypoetry/virtualenvs/kong-benchmark-tq7C0_9c-py3.7/lib/python3.7/site-packages/locust/user/task.py", line 490, in execute_task
task(self.user).run()
File "/opt/app/kong_bench/spicedb/check_permissions.py", line 83, in __init__
token_per_user=self.token_per_user,
File "/opt/app/kong_bench/spicedb/seed.py", line 126, in run
init_counter=max(user_amount, self.default_amount_to_check),
File "/opt/app/kong_bench/spicedb/seed.py", line 367, in findLastId
does_exist = checkId(end)
File "/opt/app/kong_bench/spicedb/seed.py", line 428, in isUserWithId
optional_relation='inheritor',
Jake
11/10/2022, 10:53 PMinsecure_bearer_token_credentials
from our client library: https://github.com/authzed/authzed-py/blob/main/grpcutil/__init__.py#L16
Note, this should almost surely not be used for production.seeruyy
11/10/2022, 10:55 PMinsecure_bearer_token_credentials
to connect to DB, but still have this errorJake
11/10/2022, 10:56 PMseeruyy
11/10/2022, 11:00 PMself.client = Client(
self.host,
insecure_bearer_token_credentials(config.with_spicedb_secret_token)
)
Jake
11/10/2022, 11:01 PMlocalhost
?seeruyy
11/10/2022, 11:02 PMJake
11/10/2022, 11:04 PMseeruyy
11/10/2022, 11:06 PMseeruyy
11/10/2022, 11:06 PMINSECURE_PLAINTEXT_CREDENTIALS
option to connectJake
11/10/2022, 11:06 PMJake
11/10/2022, 11:08 PMseeruyy
11/10/2022, 11:22 PMseeruyy
11/10/2022, 11:23 PMRobertM
11/10/2022, 11:58 PMSingha1
11/11/2022, 12:58 PMvroldanbet
11/11/2022, 1:00 PMspicedb version
is listed in spicedb --help
. spicedb serve
also logs on startup what version you are running.symion
11/11/2022, 7:40 PMJoey
11/11/2022, 7:57 PMsymion
11/11/2022, 8:27 PMJoey
11/11/2022, 8:27 PMsymion
11/11/2022, 8:27 PM