Chaiwa Berian
05/26/2022, 1:08 PMAlex Olivier (Cerbos)
Chaiwa Berian
05/26/2022, 1:13 PMChaiwa Berian
05/26/2022, 1:54 PM/policies <http://ghcr.io/cerbos/cerbos:0.6.0|ghcr.io/cerbos/cerbos:0.6.0> server --config=/config/config.yaml
[sudo] password for chaiwa:
Unable to find image '<http://ghcr.io/cerbos/cerbos:0.6.0|ghcr.io/cerbos/cerbos:0.6.0>' locally
0.6.0: Pulling from cerbos/cerbos
b49b96595fd4: Pull complete
9411f38bb959: Pull complete
ae4da295c61e: Pull complete
5dbfc77bfac5: Pull complete
Digest: sha256:d7e72e0b13d53297591bc9c1bfe9318afa0ee8582f5f878411e57e54f7560712
Status: Downloaded newer image for <http://ghcr.io/cerbos/cerbos:0.6.0|ghcr.io/cerbos/cerbos:0.6.0>
2022-05-26T13:48:43.262Z INFO cerbos.server maxprocs: Leaving GOMAXPROCS=4: CPU quota undefined
2022-05-26T13:48:43.263Z INFO cerbos.server maxprocs: No GOMAXPROCS change to reset
ERROR: failed to create store: unknown storage driver []
Alex Olivier (Cerbos)
server:
httpListenAddr: ":3592"
storage:
driver: "disk"
disk:
directory: /policies
watchForChanges: true
and your start command is:
sudo docker run -i -t -p 3592:3592 \
-v $(pwd)/config:/config \
-v $(pwd)/policies:/policies \
<http://ghcr.io/cerbos/cerbos:latest|ghcr.io/cerbos/cerbos:latest> \
server --config=/config/conf.yaml
Iām going to fix that article now. Sorry about that.Chaiwa Berian
05/26/2022, 2:00 PM---
from the yaml file.Alex Olivier (Cerbos)
Chaiwa Berian
05/26/2022, 2:05 PM---
at the very top. For some reason I didn't copy that line, initially. So like this, it works:
---
server:
httpListenAddr: ":3592"
storage:
driver: "disk" # Valid values are "disk" or "git"
disk: # Only required if "driver" is "disk"
directory: /policies
watchForChanges: true
Alex Olivier (Cerbos)
<http://ghcr.io/cerbos/cerbos:latest|ghcr.io/cerbos/cerbos:latest>
or <http://ghcr.io/cerbos/cerbos:0.16.0|ghcr.io/cerbos/cerbos:0.16.0>
docker tags - 0.6.0
is an old version nowChaiwa Berian
05/26/2022, 2:48 PMRolePermission
and Permission
tables and delegate their definitions to cerbos resource policies? Did I get this right?Alex Olivier (Cerbos)
Chaiwa Berian
05/26/2022, 2:50 PM