| 1 | // The host the flake's protect-e2e check drives: the four states a |
| 2 | // project's refs can be in. "sealed" is the norm — protected, with no |
| 3 | // writer, so nothing pushes to it and changes land by integration. |
| 4 | // "guarded" declares the writers exception over the default protected set, |
| 5 | // "released" names a wildcard pattern beside it, and "open" declares no |
| 6 | // protection at all and so has none. |
| 7 | // |
| 8 | // Which keys act as the "integrator" principal is machine integration |
| 9 | // (services.valley.authorizedKeys), not declared here — the name is what |
| 10 | // the identity registry will bind, and this declaration is what names it. |
| 11 | package valley |
| 12 | |
| 13 | projects: { |
| 14 | "sealed": protection: refs: ["refs/heads/main"] |
| 15 | |
| 16 | "guarded": protection: writers: ["integrator"] |
| 17 | |
| 18 | "released": protection: { |
| 19 | refs: ["refs/heads/main", "refs/heads/release/*"] |
| 20 | writers: ["integrator"] |
| 21 | } |
| 22 | |
| 23 | "open": {} |
| 24 | } |