governance.KEY_LINEconstno test imports itconst KEY_LINE: RegExpThe public keys that Git can verify a signature with.
What a fleet decides about its own changes, as data: who the signers are (a name, a role, a public key), which paths are controlled and the roles whose approval a change to them needs. Nothing here reads Git or a key.
import { SIGNER_NAME } from "./policy.ts";
SIGNER_NAME.test("snshah-daily"); // truegovernance.KEY_LINEconstno test imports itconst KEY_LINE: RegExpThe public keys that Git can verify a signature with.
governance.SIGNER_NAMEconstno test imports itconst SIGNER_NAME: RegExpA name of a signer or a role: lowercase letters, digits, dots and dashes, starting with a letter or a digit (it stands as the principal of an allowed_signers line).
governance.Controlledtypeno test imports ittype Controlled = { readonly path: string; readonly approvers: readonly string[] };A path (or a family of paths) whose changes need approval, and the roles of the signers who may approve a change to it. A * stands for any characters but / and ** for any characters.
governance.Policytypeno test imports ittype Policy = { readonly signers: readonly Signer[]; readonly controlled: readonly Controlled[] };What a fleet decides about its changes.
governance.SignatureStatetypeno test imports ittype SignatureState = "G" | "B" | "U" | "X" | "Y" | "R" | "E" | "N";The state of the signature of a commit as Git says it: G good, B bad, U good by a key that is not trusted, X good but expired, Y good by an expired key, R good by a revoked key, E it could not be checked, N none.
governance.Signertypeno test imports ittype Signer = { readonly name: string; readonly role: string; readonly key: string; readonly added?: string; readonly retired?: string };A signer of the fleet: its name (the principal of its signature), its role and its public key, the day it was added, and, for a key that was replaced, the last day its signatures count (a day, YYYY-MM-DD).
KEY_LINEconstno test imports itconst KEY_LINE: RegExpThe public keys that Git can verify a signature with.
SIGNER_NAMEconstno test imports itconst SIGNER_NAME: RegExpA name of a signer or a role: lowercase letters, digits, dots and dashes, starting with a letter or a digit (it stands as the principal of an allowed_signers line).
Controlledtypeno test imports ittype Controlled = { readonly path: string; readonly approvers: readonly string[] };A path (or a family of paths) whose changes need approval, and the roles of the signers who may approve a change to it. A * stands for any characters but / and ** for any characters.
Policytypeno test imports ittype Policy = { readonly signers: readonly Signer[]; readonly controlled: readonly Controlled[] };What a fleet decides about its changes.
SignatureStatetypeno test imports ittype SignatureState = "G" | "B" | "U" | "X" | "Y" | "R" | "E" | "N";The state of the signature of a commit as Git says it: G good, B bad, U good by a key that is not trusted, X good but expired, Y good by an expired key, R good by a revoked key, E it could not be checked, N none.
Signertypeno test imports ittype Signer = { readonly name: string; readonly role: string; readonly key: string; readonly added?: string; readonly retired?: string };A signer of the fleet: its name (the principal of its signature), its role and its public key, the day it was added, and, for a key that was replaced, the last day its signatures count (a day, YYYY-MM-DD).