| 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. |
| 3 | package identity |
| 4 | |
| 5 | boundaries: { |
| 6 | "registry": kind: "registry" |
| 7 | "push": kind: "git-push" |
| 8 | "web": {kind: "edge-read", destination: "example.org"} |
| 9 | } |
| 10 | genesis: "root" |
| 11 | principals: "root": { |
| 12 | kind: "human" |
| 13 | keys: [{class: "ssh-ed25519", bound: "hardware", public: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIExampleKeyForARejectedFixtureAAAAAAAAAAA"}] |
| 14 | grants: govern: boundary: "registry" |
| 15 | } |
| 16 | principals: "alice": { |
| 17 | kind: "human" |
| 18 | keys: [] |
| 19 | grants: { |
| 20 | read: {boundary: "web", projects: "all"} |
| 21 | push: boundary: "push" |
| 22 | } |
| 23 | } |