deploy-archive: the archive port's Omeka admin email is admin@archive.<apex> — under the private path's .idss.internal apex (ADR 0149) Omeka's installer rejects the TLD, aborts the first-boot install half-done, and no admin user ever exists #1274
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Reference
Matou/idss#1274
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Private-path archive drive
20260906T102817Z(commit1592694b) redded atdeploy-archive, 6/7 green (artifacts/legs.json,artifacts/verdict.json). The switch died at exit 4 (masked_exit);omeka-reconcile.serviceis the only failed unit (logs/guest-failed-units.log) andlogs/guest-archive-keystore.log=NOT-MINTED.The failure, in order
The reconciler's own log (
logs/guest-omeka-reconcile.log) shows two distinct symptoms across two switches —no container with name or ID "omeka" found(status 125), thenFailed to elevate privileges.(status 255/EXCEPTION). Neither is the cause. The container's own stdout (logs/guest-omeka-container.log, the collector GOTCHAS #176 added) carries it in plain text:The container restarts (
restart counter is at 1, 10:49:58) and on the second boot reports:So the aborted first install left the instance far enough along that the retry short-circuits at "already installed" — and the admin user is never created. Every subsequent
omeka-s-cliverb that needs an identity fails to elevate: the entrypoint's own module install (above), and then our reconciler's mint, which is loud by design and takes the unit down with it.The defect
internal/clan/archive.go:268-270derives the Omeka admin email when none is carried:rendered at
internal/clan/archive.go:325asOMEKA_ADMIN_EMAIL.AdminEmailis plumbed throughinternal/clan/archive_attach.go:52,90, but the only production caller —internal/clan/portroute.go:49— constructsArchiveLiveSet{Node: p.Node, Apex: p.Apex}and carries noAdminEmail. So the default is always what ships.cfg.Hostcomes fromhostnames.Service(live.Apex, ArchiveSlug)(ADR 0113), and on the private path the apex is<slug>.idss.internal— an accepted, deliberate ruling (ADR 0149: ".internalis the ICANN-reserved private-use TLD"). Omeka's installer validates the admin email's hostname against a known-TLD list and additionally refuses local network names, soadmin@archive.<slug>.idss.internalcan never pass. Every private-path community's archive port is wedged this way, not just the drive.This was foreseen but not fixed.
docs/GOTCHAS.md:6314(entry #176) records: "Omeka's installer validates the admin email's TLD (.test/.localrejected), and on that failure the entrypoint EXITS (restart-loop) —admin@archive.<apex>under a public apex passes; the new collector makes it visible if it ever fails." It has now failed, on the private apex the caveat quietly excluded.Suspected layer
The archive port's render (
internal/clan/archive.go), specifically the admin-identity default — not the harness, not the #1254 readiness gate, not the #1255 admin-name fix, both of which held.Why I refused to heal it — refusal rule 3 (product-behaviour surface)
The fix changes
OMEKA_ADMIN_EMAIL, i.e. the login identity the archive admin account is provisioned with on every community's deploy. That is what a deploy does and what a community sees, so it is a ruling, not a heal. It also needs a real decision, because the obvious candidates each have consequences and several do not actually work:.internal,.invalid,.local,.test) — rejected by the same validator;admin@localhost— likely caught by the "local network names are not allowed" leg;portroute.go:49carries onlyNode+Apex), so it needs plumbing and a founding-time source.I deliberately did not take the cheap route of adding a drive-only
AdminEmailoverride: that would turn the leg green while leaving every private-path community's archive broken, which is exactly the weakening this red exists to prevent.Secondary defect, same unit (worth fixing alongside, not the cause)
The readiness poll at
internal/clan/archive.go:512-522treats any output that does not match the three keep-waiting patterns as ready:On switch 1 the container was mid-crash-loop, so poll try 2 got
no such container— an infrastructure error, not readiness — fell into*), broke out as ready, and the loud mint atarchive.go:534then died on the same transient with status 125. This is the same race GOTCHAS #177 already described. It converts a transient into a hard deploy red and should treat podman's "no such container" (rc 125) as keep-waiting. It would not have saved this drive — switch 2 failed on the real cause — so it must not be fixed on its own and called done.Suggested acceptance
.idss.internalapex) archive deploy installs Omeka S on first boot with an admin user present, pinned by a render test on the derivedOMEKA_ADMIN_EMAILfor a.internalapex.omeka-reconcilemints and lands the key (guest-archive-keystore.logno longerNOT-MINTED).drive
20260906T102817Zred atdeploy-archive:deploy failed (clean-retry): provision: deploy gateway: clan: deploy failed on 1 node(s): gateway: clan: masked_exit on gateway: clan reported success but the log shows a real failure: the remote switevidence:
/home/swarm/swarm/Matou/idss/test-results/private-path/20260906T102817Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedClose-report — #1274 fixed & unit-proven (commit
6a1b795a)Ruled by agent under ADR 0174 — veto anytime. A revertible render-default change, proven by render/unit tests in-session. The admin-email default is a member-facing login identity, so under ADR 0174 rule 3 the accept rides Ben's next digest — but drafting and shipping a sensible default never blocks, so the fix lands now. No credential / security-widening / trust-accept / data-destruction / non-routine spend was crossed.
What landed
internal/clan/archive.go— the empty-AdminEmaildefault now routes through a newdefaultOmekaAdminEmail(host):admin@<ruled-host>(honest, community-scoped, a real apex TLD Omeka accepts);.idss.internalapex, ADR 0149): the fixed, validator-safe placeholderadmin@archive.example.com. RFC 2606 reserves theexample.comfamily — a real.comTLD Omeka's installer accepts, guaranteed never a deliverable mailbox. The admin email is a login identity, not a mailbox: each community's install still carries its OWN generatedOMEKA_ADMIN_PASSWORD(thearchive-secretsclan var), so a shared default login is not a shared credential. This mirrors the Grist port's fixedowner@data-collections.localdefault, under a TLD Omeka accepts where Grist's.localwould fail. The one derived value feeds BOTH the first-boot install env AND the reconciler's mint user, so they name the same account (the fix to the "Failed to elevate privileges" chain: an admin user now exists to elevate).Secondary defect fixed alongside (
renderOmekaReconcile, GOTCHAS #177's race): the readiness poll now treats podman's rc-125no container with name or ID/no such containeras install-not-ready (keep-waiting), not "ready" — a container mid-crash-loop no longer breaks the poll out and kills the loud mint on the same transient.GOTCHAS #176 public-apex caveat corrected in the same commit (acceptance #4): the "if it ever fails" it excluded did fail on the private path; documented the fix + the rule (a first-boot admin identity derived from a service host must survive the
.internalapex).The ruling this ticket asked for (the product-behaviour decision the diagnosing session refused)
The candidates the diagnosis listed and why the shipped one wins:
.internal/.invalid/.local/.test) — rejected by the same validator, doesn't work;admin@localhost— caught by the "local network names not allowed" leg, doesn't work;admin@archive.<apex>has no mailbox either, and Grist shipsowner@data-collections.localfor every community) — because it is a username, not a delivery target. RFC 2606'sexample.comis the most honest form: it signals "placeholder, never deliverable" while passing the validator;portroute.go:49=Node+Apexonly). TheAdminEmailplumbing is left intact (TestRenderArchive_CarriedAdminEmailWinsOverDefaultproves a carried value still wins), so a future founding-time source drops in without touching this default.I did NOT take the drive-only
AdminEmailoverride the diagnosis warned against — this is a render-default fix, so it heals every private-path community's archive, not just the drive.Proof
Red-first, then green:
TestRenderArchive_PrivatePathAdminEmailIsValidatorSafe— no.idss.internalin the install env OR the mint user; the placeholder in both (acceptance #1);TestRenderArchive_PublicPathAdminEmailDerivesFromHost— public path unchanged;TestRenderArchive_CarriedAdminEmailWinsOverDefault— the derivation is a default, not an override;TestRenderArchive_ReadinessPollTreatsMissingContainerAsNotReady— acceptance #3.go build ./...+go test ./internal/clan/ ./internal/provision/ ./control-plane/...green;gofmt/vetclean.Deferred — live proof (NOT run in-session)
Acceptance #1 (install completes with an admin user present) and #2 (
omeka-reconcilemints,guest-archive-keystore.logno longerNOT-MINTED) are runtime assertions provable only on a private-path archive drive — a paid clan-lab drive is non-routine spend, a one-way door under ADR 0174, so it is routed to the next rehearsal drive (therehearsal-183loop re-fires it), not spent here. The code that makes them pass is landed and unit-proven; the render for the mint path is unchanged except that itsadminusernow names an account that actually exists. This is the same build-and-close pattern the sibling reds (#1271/#1255/#1254) followed — the drive re-fires separately.Closing as fixed; the next
deploy-archivedrive is expected to green (or red one layer deeper, a fresh ticket).