Skip to content
quarry View Ticket
Login

View Ticket

2026-09-24
00:53 • Ticket [b06843af9a] caps phase 4: import users on host-from-file and mirrors; legacy login status still Closed with 1 other change artifact: d6d49cf1ec user: zeitgeist
2026-08-23
00:22 • Closed ticket [b06843af9a]. artifact: b6f4c0d5c5 user: tmp-ops
00:13 • Ticket [b06843af9a]: 2 changes artifact: 434e38ee38 user: tmp-ops
2026-08-22
14:14 • New ticket [b06843af9a]. artifact: 12bc31e5ee user: tmp-ops

caps phase 4: import users on host-from-file and mirrors; legacy login

Closedb06843af9a5410f6e4f3de63bff343f412e1e713Created 100.4 days agoUpdated 67.9 days ago
Description2026-08-22 14:14:42
RFC 0004 §6. Blocked on zit#124/#125. Ingest wires zit users output into OLTP (union caps on collision, never overwrite quarry credentials); login verifier tries argon2 then §6.3 hash via xfer.SharedSecret, rehash+clear on success; mirrors re-pull user area on schedule.
2026-08-23 00:13:59

Half of this landed without waiting on zit. b2ef1ce1 + f70144e3: quarry now fetches a remote fossil's user table itself — reqconfig /user in one round trip, verified against a real fossil 2.28 server, with the row format (one config card per row, quoted key/value pairs) pinned by tests that spin fossil up. The REMOTE enforces admin: a developer gets no rows, a bad password fails login, both tested. 'quarry users pull' imports them: unknown logins created with their §6.3 credential AND the project code it was derived under (quarry accounts are forge-global, fossil hashes are repo-scoped — a wrinkle the RFC missed), existing accounts keep their own password, categories land as categories, an unmentioned category keeps quarry's default rather than blanking into a lockout.

STILL OPEN here: (1) Authenticate does not yet try the legacy credential, so an imported user cannot actually sign in with their fossil password — LegacyCredential/ClearLegacyCredential exist, the wiring does not. (2) unattended mirror re-pulls need a stored remote admin secret, which is a secret-at-rest decision left deliberately unmade. (3) host-from-file import still wants zit#124.

2026-08-23 00:22:06

Complete as of 41b085ae. Both import paths now exist and zit shipped its half (#124/#125 closed): 'quarry users pull' without --url reads the store's own user table — no credential, for a repository we already serve — and with --url fetches from a peer over the wire, admin-credentialed. Authenticate accepts an imported §6.3 credential once and upgrades the account to argon2, clearing the imported secret; a wrong guess never consumes it (tested). A test pins oltp's derivation against xfer.SharedSecret so the two spellings cannot drift.

Proven end to end against a real fossil: a user created only in fossil, never in quarry, signed into quarry with their original fossil password and came out with a native verifier.

Deliberately NOT done, and not pretending otherwise: unattended mirror re-pulls still need a stored remote admin secret, which is a secret-at-rest decision left to the operator.