luke
03/10/2022, 5:49 PMjoombaga
03/10/2022, 6:09 PM9o5Nnk93O8Am$isH%G#Fav6$7g!cdnP%W0S@E!s2Q7nU$6hrDVIR4Ss4OtTsnhue
and was getting errors in zed
about an incorrect key, but using an alphanumeric key seemed to work. I'm using the docker image in k8s.joombaga
03/10/2022, 6:14 PMSPICEDB_GRPC_PRESHARED_KEY='9o5Nnk93O8Am$isH%G#Fav6$7g!cdnP%W0S@E!s2Q7nU$6hrDVIR4Ss4OtTsnhue' SPICEDB_GRPC_NO_TLS=true SPICEDB_HTTP_NO_TLS=true spicedb serve
and here's zed:
zed schema read --endpoint localhost:50051 --insecure --token '9o5Nnk93O8Am$isH%G#Fav6$7g!cdnP%W0S@E!s2Q7nU$6hrDVIR4Ss4OtTsnhue'
Error: rpc error: code = Unknown desc = invalid preshared key: invalid token
joombaga
03/10/2022, 6:15 PMY24Nfiquc5W77EgY7eQTQITmvMfy0Q2sjhNrx56UBuyPsbAY5tSdPKOeRvX4OrEw
Jake
03/10/2022, 6:17 PMJake
03/10/2022, 6:17 PMjoombaga
03/10/2022, 6:25 PMSPICEDB_GRPC_PRESHARED_KEY="$(<<<"OW81Tm5rOTNPOEFtJGlzSCVHI0ZhdjYkN2chY2RuUCVXMFNARSFzMlE3blUkNmhyRFZJUjRTczRPdFRzbmh1ZQ==" base64 --decode)" SPICEDB_GRPC_NO_TLS=true SPICEDB_HTTP_NO_TLS=true spicedb serve
zed schema read --endpoint localhost:50051 --insecure --token "$(<<<"OW81Tm5rOTNPOEFtJGlzSCVHI0ZhdjYkN2chY2RuUCVXMFNARSFzMlE3blUkNmhyRFZJUjRTczRPdFRzbmh1ZQ==" base64 --decode)"
joombaga
03/10/2022, 6:26 PMjoombaga
03/10/2022, 6:27 PMps eww 45635
PID TT STAT TIME COMMAND
45635 s011 S+ 0:00.12 spicedb serve SPICEDB_HTTP_NO_TLS=true SPICEDB_GRPC_NO_TLS=true SPICEDB_GRPC_PRESHARED_KEY=9o5Nnk93O8Am$isH%G#Fav6$7g!cdnP%W0S@E!s2Q7nU$6hrDVIR4Ss4OtTsnhue ...
Jake
03/10/2022, 7:01 PMJake
03/10/2022, 7:01 PMJake
03/10/2022, 7:02 PMjoombaga
03/10/2022, 7:03 PMjoombaga
03/10/2022, 7:05 PMSPICEDB_GRPC_PRESHARED_KEY='Y24Nfiquc5W77EgY7eQTQITmvMfy0Q2sjhNrx56UBuyPsbAY5tSdPKOeRvX4OrEw' SPICEDB_GRPC_NO_TLS=true SPICEDB_HTTP_NO_TLS=true spicedb serve
zed schema read --endpoint localhost:50051 --insecure --token 'Y24Nfiquc5W77EgY7eQTQITmvMfy0Q2sjhNrx56UBuyPsbAY5tSdPKOeRvX4OrEw'
Error: rpc error: code = NotFound desc = No schema has been defined; please call WriteSchema to start
Jake
03/10/2022, 7:06 PMSPICEDB_GRPC_PRESHARED_KEY='9o5Nnk93O8Am$isH%G#Fav6$7g!cdnP%W0S@E!s2Q7nU$6hrDVIR4Ss4OtTsnhue' SPICEDB_GRPC_NO_TLS=true SPICEDB_HTTP_NO_TLS=true go run ./cmd/spicedb serve
zed schema read --endpoint localhost:50051 --insecure --token '9o5Nnk93O8Am$isH%G#Fav6$7g!cdnP%W0S@E!s2Q7nU$6hrDVIR4Ss4OtTsnhue'
Error: rpc error: code = NotFound desc = No schema has been defined; please call WriteSchema to start
Jake
03/10/2022, 7:07 PMHEAD
, but we haven't changed the preshared key logic in agesJake
03/10/2022, 7:08 PMjoombaga
03/10/2022, 7:09 PMJake
03/10/2022, 7:10 PMjoombaga
03/10/2022, 7:10 PMJake
03/10/2022, 7:10 PMJake
03/10/2022, 7:11 PMjoombaga
03/10/2022, 7:11 PMjoombaga
03/10/2022, 7:12 PMJake
03/10/2022, 7:12 PMjoombaga
03/10/2022, 7:12 PMJake
03/10/2022, 7:13 PMbrew install go
, go into the project and run go mod tidy
to install all the deps, and then run my command from abovejoombaga
03/10/2022, 7:18 PM+ SPICEDB_GRPC_PRESHARED_KEY='9o5Nnk93O8Am$isH%G#Fav6$7g!cdnP%W0S@E!s2Q7nU$6hrDVIR4Ss4OtTsnhue' SPICEDB_GRPC_NO_TLS=true SPICEDB_HTTP_NO_TLS=true go run ./cmd/spicedb serve
# github.com/authzed/spicedb/internal/datastore/common
internal/datastore/common/sql.go:173:20: undefined: math.MaxInt
+ go version
go version go1.16.15 darwin/amd64
Jake
03/10/2022, 7:19 PMJake
03/10/2022, 7:19 PMbrew upgrade go