gunk-dev/the-valley
the-valley:ida-61b28ecidearaw

The operator issues and revokes read links from their own machine, by signed record

State
question or idea
Created
2026-10-31 by contributor

Body

Today `valley-web-link` runs on the valley host, as root, because it writes the credential file the publisher signs bindings from (`/var/lib/valley-web-links/links`). Root's write permission is the only thing that gates who may bind a link to a principal. So the operator has to be on the host to grant or withdraw read access, and the host's root sees every link secret as it is made.

The idea: a link becomes a signed record, made where the operator is.
- `issue` runs on the operator's machine. It makes the secret there, shows the link once, and keeps only the credential ID, principal and verifier. The secret never reaches the host.
- The operator signs the binding (ID, principal, verifier, note) with an approval key, as an ordinary note. They push it to a records ref the host serves. `revoke` is a signed record too.
- The publisher takes bindings only from records whose signature verifies against a principal the registry lets grant links, and signs them into the authorization as today. The forward-only revision and the "no pass signs a revoked credential" rule move from the file lock to the records' order.
- `list` reads the records from anywhere they can be fetched, so it needs no root.

What changes in who can do what: today, root on the host can bind links. After, only a holder of an authorized key can, from any machine, and the host can only check and relay. That follows the direction of one signed-claims model for authority. Open questions:
- where the records live: the instance's project storage, or a per-destination ref;
- whether revocation needs a faster path than a push.

Comments

No comments.