gunk-dev/the-valley
the-valley:oc-f3a136eoutcomedone

The host issues and revokes read links bound to a principal

State
done
Created
2026-10-29 by contributor
Blocked by
Blocks
Changes
  • valley:the-valley/wqzsulworuklpvnlpwoqyrwqlononnwy

Body

Phase 2a, slice 2 of 4. `valley-web-publish link issue|list|revoke` runs as root on the valley host.
- **Issue:** a credential is bound to one principal, with no project scope. The host keeps only a verifier, and the link is printed once.
- **Keyless readers:** a principal may have no keys only when every grant it holds is an edge read.
- **Expiry:** a registry expiry is a host-side restriction, and extending the date restores access.
- **Backup:** the credential store is included in the host backup.

Waits on the operator's decision about bearer credentials for edge reads.

Comments

  1. contributor2026-10-29 12:38 UTC
    Decided by the operator: bearer read credentials are accepted for reading at an `edge-read` boundary. A link credential and the browser session it becomes identify one registry principal. Its authority is that principal's effective read grants, which need both the project's consent and an instance grant.
    
    - **Lifetime:** a link secret works once. A session has no expiry on the edge, and each authorized request renews its cookie.
    - **Revocation:** the host can revoke one credential, every credential of a principal, or a read grant.
    - **Limits:** these credentials never authorize push, approval, restacking, registry governance or credential enrollment. Passkeys stay the route to anything beyond reading.
    - **Placement:** for these read credentials alone, this supersedes dcr-b87f6e8's bans on bearer secrets, its short-session rule and its bearer-expiry rule. Principals and grants stay in the registry. Credential verifiers live in protected host state outside every repository.
    - **Where it's written down:** the trust decision goes in `docs/security.md`, its mechanism in `docs/architecture.md`, and `schema/identity.cue`'s comment links it. The archive is unchanged.
  2. contributor2026-10-29 19:22 UTC
    Decided by the operator: restoring the valley host from a backup restores its read links as they were at the backup, including links revoked after it. There is no automatic restore detection. To cut off every link after a restore, run `revoke --all`.
  3. contributor2026-10-30 13:19 UTC
    Change valley:the-valley/wqzsulworuklpvnlpwoqyrwqlononnwy landed: v8 as 4a00352212885307d1745b59cfb6b5b757f58dc1.
    
    Every change the knot links has landed and it has no active children, so klaus set it done.