gunk-dev/the-valley

keyless-principal-pushes.cue

source1ef1288a69f6main's published tip history
644 bytes
1// A principal with no keys reads through read links alone. A push grant
2// would give a bearer link's holder more than reading.
3package identity
4
5boundaries: {
6 "registry": kind: "registry"
7 "push": kind: "git-push"
8 "web": {kind: "edge-read", destination: "example.org"}
9}
10genesis: "root"
11principals: "root": {
12 kind: "human"
13 keys: [{class: "ssh-ed25519", bound: "hardware", public: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIExampleKeyForARejectedFixtureAAAAAAAAAAA"}]
14 grants: govern: boundary: "registry"
15}
16principals: "alice": {
17 kind: "human"
18 keys: []
19 grants: {
20 read: {boundary: "web", projects: "all"}
21 push: boundary: "push"
22 }
23}