Granting a machine access to a valley host means appending its public key to
services.valley.authorizedKeys and rebuilding the host. The grant has no expiry, so it persists
until someone edits the list again. Nothing observes that the machine it was issued for has ceased
to exist, and a disposable machine leaves its key behind when it goes.
Two costs follow, and they compound as the number of machines grows.
Provisioning is O(machines) with a human deploy in the loop. Each new machine needs a change to the host's declaration, review, a merge, and an interactive rebuild of the host. That is a deploy of the primary git host to grant read access to a scratch machine — an expensive motion to repeat, and one performed on the machine whose availability everything else depends on.
Revocation is the harder cost, because it never happens on its own. A key list only shrinks when a human notices an entry is dead and removes it, and nothing prompts that noticing. Ephemeral machines are exactly the case where the grant outlives the grantee, so the list accretes standing grants to destroyed hosts. Each entry reaches every project on the host, because access is host-level by design.
Every key in the list belongs to the operator, the host is reachable only over a private tailnet, and the projects are small in number. A stale entry is a key nobody holds on a host nobody else can route to. The defect is one of scale and hygiene, not a live exposure.
The mechanism needs replacing before either of these becomes true:
Dispatched agent machines make the second true first, and they arrive with S3.
git-shell and non-interactive
git-receive-pack is unverified, and it bypasses the module's sshd hardening.The instance-level counterpart is qinling's dcr-34b3f6d (keys partition by capability), which
observes that the pilot host's key inventory conflates decryption, authentication, and human
signing, and wants it partitioned by capability. Splitting a git-only class out of the inventory's
user list — done for the machine that surfaced this — separates authentication from decryption for
one member, and is a down payment on that partition rather than a substitute for it. Neither change
gives a grant an expiry.
The open question this sharpens is when Phase-0 identity has to grow and into what (openquestions.md). This bug is one concrete forcing function: a machine that exists for an afternoon.