Joey
01/24/2022, 9:21 PMSleipnir
01/24/2022, 9:21 PMgolang:1.16-alpine3.13
Joey
01/24/2022, 9:21 PMSleipnir
01/24/2022, 9:22 PMalpine:latest
because it seemed to work on gcr.io/distroless
Sleipnir
01/24/2022, 9:24 PMSleipnir
01/24/2022, 9:25 PM/data # which go
/usr/local/go/bin/go
/data # uname -a
Linux 1bca4515bae8 5.10.76-linuxkit #1 SMP Mon Nov 8 10:21:19 UTC 2021 x86_64 Linux
/data # cd /usr/local/bin
/usr/local/bin # ./zed
/bin/sh: ./zed: not found
/usr/local/bin #
Joey
01/24/2022, 9:26 PMJoey
01/24/2022, 9:26 PMSleipnir
01/24/2022, 9:27 PMSleipnir
01/24/2022, 9:31 PMSleipnir
01/24/2022, 9:47 PMroot@47006ca9a96f:/data# zed context set alto_perms spicedb:50051 $SPICEDB_KEY --insecure
Enter passphrase to unlock /root/.zed/keyring.jwt:
And I'm not sure what the passphrase is.Sleipnir
01/24/2022, 9:48 PMzed
on a brand new ubuntu container.ecordell
01/24/2022, 9:51 PM--token
and --endpoint
flags instead of using a contextSleipnir
01/24/2022, 9:52 PMroot@b48ab8e41c53:/data# zed schema write alto-authz.zed --token $SPICEDB_KEY --insecure
Error: must first save a token: see `zed token save --help`
ecordell
01/24/2022, 9:53 PM--endpoint=spicedb:50051
?Sleipnir
01/24/2022, 9:54 PMSleipnir
01/24/2022, 10:32 PMelixir-localdev-spicedb-1 | {"level":"error","module":"pgx","args":[],"err":"can't scan into dest[0]: cannot assign 0 1 into *uint64","pid":61,"sql":"SELECT MAX(id) FROM relation_tuple_transaction","time":"2022-01-24T22:31:45Z","message":"Query"}
elixir-localdev-spicedb-1 | {"level":"error","grpc.method":"WriteSchema","grpc.method_type":"unary","grpc.service":"authzed.api.v1.SchemaService","grpc.start_time":"2022-01-24T22:31:45Z","kind":"server","system":"grpc","grpc.code":"Unknown","error":"unable to find revision: can't scan into dest[0]: cannot assign 0 1 into *uint64","grpc.time_ms":"4.218","time":"2022-01-24T22:31:45Z","message":"finished server unary call"}
Sleipnir
01/24/2022, 10:42 PMuser
01/24/2022, 11:15 PMmixedCase
01/25/2022, 5:01 PMJake
01/25/2022, 5:05 PMJake
01/25/2022, 5:05 PMJake
01/25/2022, 5:07 PMJake
01/25/2022, 5:07 PMJake
01/25/2022, 5:08 PMmixedCase
01/25/2022, 5:08 PMcd
01/25/2022, 9:57 PMJoey
01/25/2022, 10:01 PMJoey
01/25/2022, 10:02 PMrelation
as a role, and permission
as, well, a permission based on those role(s)Joey
01/25/2022, 10:02 PMdefinition user {}
definition resource {
relation reader: user
relation writer: user
}