Jake
01/06/2022, 2:08 PMAbhishek Dwivedi
01/06/2022, 2:12 PMauthzed-docker-compose-postgres-spicedb-engine-1 | {"level":"error","grpc.component":"server","grpc.method":"LookupResources","grpc.method_type":"server_stream","grpc.service":"authzed.api.v1.PermissionsService","peer.address":"172.22.0.1:65180","protocol":"grpc","requestID":"eda188548c2b3e0484a683eb49fee639","grpc.start_time":"2022-01-06T13:51:10Z","grpc.code":"Unknown","grpc.error":"invalid preshared key: rpc error: code = Unauthenticated desc = Request unauthenticated with bearer","grpc.time_ms":"0.052","time":"2022-01-06T13:51:10Z","message":"finished call"}
Jake
01/06/2022, 2:22 PMAbhishek Dwivedi
01/06/2022, 2:43 PMclient = v1.NewClient(process.env.AUTHZED_PRESHARED_TOKEN,process.env.AUTHZED_LOCAL_CONN,true);
Abhishek Dwivedi
01/06/2022, 2:44 PMAbhishek Dwivedi
01/06/2022, 3:07 PMJoey
01/06/2022, 3:42 PMconsole.log
the token you're sending in and verify it matches?Abhishek Dwivedi
01/06/2022, 3:43 PMAbhishek Dwivedi
01/06/2022, 3:52 PMclient = v1.NewClient("somerandomkey","localhost:50051",true);
Abhishek Dwivedi
01/06/2022, 3:52 PMabhishekdwivedi@Abhisheks-MacBook-Pro zed_policy_store % zed context remove local-dev
abhishekdwivedi@Abhisheks-MacBook-Pro zed_policy_store % zed context set local-dev localhost:50051 somerandomkey
abhishekdwivedi@Abhisheks-MacBook-Pro zed_policy_store % zed context use local-dev
abhishekdwivedi@Abhisheks-MacBook-Pro zed_policy_store % zed relationship create vista/organization:VistaPrint parent_org vista/organization:Vista --insecure
GgMKATg=
abhishekdwivedi@Abhisheks-MacBook-Pro zed_policy_store %
Abhishek Dwivedi
01/06/2022, 3:53 PMauthzed-docker-compose-postgres-spicedb-engine-1 | {"level":"debug","time":"2022-01-06T15:51:38Z","message":"garbage collection completed for postgres"}
authzed-docker-compose-postgres-spicedb-engine-1 | {"level":"error","grpc.component":"server","grpc.method":"LookupResources","grpc.method_type":"server_stream","grpc.service":"authzed.api.v1.PermissionsService","peer.address":"172.22.0.1:55004","protocol":"grpc","requestID":"aeaf6619d3b92669cf40e97fd05d3491","grpc.start_time":"2022-01-06T15:52:00Z","grpc.code":"Unknown","grpc.error":"invalid preshared key: rpc error: code = Unauthenticated desc = Request unauthenticated with bearer","grpc.time_ms":"0.071","time":"2022-01-06T15:52:00Z","message":"finished call"}
Abhishek Dwivedi
01/06/2022, 3:53 PMJoey
01/06/2022, 3:54 PMJoey
01/06/2022, 3:54 PMJoey
01/06/2022, 3:55 PMAbhishek Dwivedi
01/06/2022, 3:56 PMJoey
01/06/2022, 3:56 PMJoey
01/06/2022, 3:57 PMJoey
01/06/2022, 3:57 PMAbhishek Dwivedi
01/06/2022, 3:59 PMJoey
01/06/2022, 4:28 PMAbhishek Dwivedi
01/06/2022, 4:48 PMJoey
01/06/2022, 5:01 PMJoey
01/06/2022, 5:02 PMJoey
01/06/2022, 5:02 PMJoey
01/06/2022, 5:02 PMJoey
01/06/2022, 5:02 PMJoey
01/06/2022, 6:56 PMJoey
01/06/2022, 6:57 PMconst client = NewClient("sometoken", "localhost:50051", ClientSecurity.INSECURE_LOCALHOST_ALLOWED);
Abhishek Dwivedi
01/07/2022, 3:10 AMJoey
01/07/2022, 3:10 AM