Artifacts Associated With Ticket 0ba3b3f730a59a9145f8fb15a296b1932f5df4d0
Ticket change [688c60953f] (rid 695) by dmestas on 2026-08-17 23:42:03:
- comment initialized to:
Account management exists only as a CLI. There is no `account.*` op, so it is absent from the ops registry, absent from `docs/api.md`, and unreachable by any client. quarry account add|passwd|grant|revoke|delete|list 0001 Principle 5 says a feature is not done until its full capability is exposed through a documented API, "sufficient that a complete quarry client could be built from the API spec alone, with zero screen-scraping". Account management is a feature of the forge and it fails that test. ## Consequences today - **An operator must have shell access on the server to create a login.** There is no way to add a user remotely, from a script, or from any UI. - **The web has no admin surface for accounts.** `/fleet` reports ingest health and mirrors; it cannot list who has access to what, which is the question an operator actually asks. - **Nothing else can be built on it.** Invite flows, self-registration, an identity provider, or importing users from a fossil repository all need account creation to be callable. ## What is needed `account.list`, `account.add`, `account.passwd`, `account.grant`, `account.revoke`, `account.delete`, all `ops.Admin`, with the CLI reimplemented on top so there is one implementation rather than two that can disagree. Two details worth stating up front: 1. **The verifier never leaves the database.** `Account` already omits the hash; the ops must not reintroduce it. Listing accounts returns names, admin flag, created — never `pwhash`. 2. **Password on the wire.** `account.add` and `account.passwd` take a plaintext password, so they are the two ops that must never be logged. The op layer logs errors with context today; these need a carve-out, and it should be enforced rather than remembered. ## Related Private repositories (separate ticket) need per-repository grants to be manageable to be usable at all — granting `read` on a private repo is the whole workflow, and it currently requires a shell. - status initialized to: "Open"
- title initialized to:
Account management is missing from the API (Principle 5)
- comment initialized to:
Ticket change [ba049225d1] (rid 743) by dmestas on 2026-08-18 10:45:18:
- comment changed to:
Landed in 86880118. Six admin ops plus 'quarry accounts' driving them over HTTP. Verifying it found a real auth bug: Verify returned a bool, so an authenticated caller short of a capability got 401 with a challenge instead of 403.
- resolution changed to: "Fixed"
- status changed to: "Closed"
- comment changed to:
Ticket change [d493817bc2] (rid 851) by dmestas on 2026-08-18 18:40:00:
- Untracked field cmimetype: "text/x-markdown"
Ticket change [1670ebdba6] (rid 12448) by zeitgeist on 2026-09-24 00:52:44:
- Untracked field number: "13"