Documentation
¶
Overview ¶
Package integritykey is the runner home's integrity key: 32 random bytes in <runner home>/plan-integrity.key (0600), outside every install directory. Two records are made under it, and a reader who can write an install directory but not read the key can make neither pass after an edit: the plan-integrity record beside an installed plan.json (compile) and the installed-release record beside a release's install.json (installdir).
It is its own package so installdir, which lays releases down, and compile, which compiles plans, share one key without either importing the other.
Index ¶
Constants ¶
const File = "plan-integrity.key"
File is the key's name directly under the runner home. The name is the plan-integrity key's, which it was first.
const KeyLen = 32
KeyLen is the key's length in bytes.
Variables ¶
This section is empty.
Functions ¶
func ID ¶
ID names the key for one purpose without revealing it: the first 16 hex of sha256(purpose NUL key). Each record names the key it was made under this way, so a record made under another key is told apart from one made under this key that does not verify.
Types ¶
This section is empty.