gunk-dev/the-valley

floor-requires-hardware.cue

source12356f2d7c39main's published tip history
746 bytes
1// Approval case 1. The floor requires a hardware key, so the composed policy
2// does. The project adds a path to the floor's class and leaves the
3// requirement alone. The same project writing `hardware: false` is
4// rejected/project-drops-floor-hardware.cue.
5//
6// Each case here is the three layers composed in one document, as
7// schema/verification.cue composes them. cue-vet vets each one and checks
8// what the composed policy says about hardware keys.
9package verification
10
11floor: {
12 checks: "c-build": {runner: "nix", attribute: "c-build"}
13 classes: guarded: {
14 paths: "keys/**": true
15 requires: "c-build": true
16 }
17 approval: hardware: true
18}
19
20templates: plain: {}
21type: "plain"
22
23project: classes: guarded: paths: "grants/**": true