Skip to content
quarry History Of Ticket 0ba3b3f730
Login

History Of Ticket 0ba3b3f730

Artifacts Associated With Ticket 0ba3b3f730

  1. Ticket change [688c60953f] (rid 695) by dmestas on 2026-08-17 23:42:03:

    1. 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.
      
      
    2. status initialized to: "Open"
    3. title initialized to:
      Account management is missing from the API (Principle 5)
      
  2. Ticket change [ba049225d1] (rid 743) by dmestas on 2026-08-18 10:45:18:

    1. 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.
      
    2. resolution changed to: "Fixed"
    3. status changed to: "Closed"
  3. Ticket change [d493817bc2] (rid 851) by dmestas on 2026-08-18 18:40:00:

    1. Untracked field cmimetype: "text/x-markdown"
  4. Ticket change [1670ebdba6] (rid 12448) by zeitgeist on 2026-09-24 00:52:44:

    1. Untracked field number: "13"