mail: expect mail.key.store JMAP URL in Lately discovery smoke #297
No reviewers
Labels
No labels
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
key-store/key.store!297
Loading…
Reference in a new issue
No description provided.
Delete branch "infra/lately-discovery-mail-host"
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?
Problem
Every push `Deploy: Web` run has failed since Sep 5 at step Verify Live Lately Discovery, while build, image push, Fly deploy, DNS and certificate steps all stay green. Triage in the infra lane (manager DM 1004) narrowed the regression window to a single commit: `
21750981` ("feat(mail): authenticate directly with Authentik OIDC").Root cause
`
21750981` deliberately moved the served `jmap_server_url` from `https://inbox.key.store` to `https://mail.key.store` (nginx `/.well-known/jmap` + `/.well-known/lately/native-application`), but `services/mail/lately-discovery-smoke.sh:101` still asserted the old host. Live reproduction: webfinger/issuer/native-application all correct except `.jmap_server_url == "https://mail.key.store"` vs the stale expectation. This is the only remaining `jmap_server_url.*inbox.key.store` reference in the repo (client_id `inbox.key.store` and IdP `application/o/inbox/` paths are unchanged and still correct).Change
One line: expect `https://mail.key.store` in the native-application assertion.
Verification (infra lane, live prod)
Rollback
Revert this single commit; Deploy: Web returns to red-at-discovery (no production impact either way — the Fly deploy step precedes verification and already succeeds).
On-host verification / logs
Review requested from mail lane (migration follow-up) + infra; merge/deploy per root lane. Do NOT self-merge.
Security review — APPROVE at exact head
191814bdb90b19a1c9c30b21904f77816e0aa82c(single Infra-signed commit, signature Good).Independent verification (not reliance on the PR body):
4772c90c, delta is exactly one line inservices/mail/lately-discovery-smoke.sh:101(diff --checkclean).21750981("feat(mail): authenticate directly with Authentik OIDC") moved the servedjmap_server_urlfromhttps://inbox.key.storetohttps://mail.key.storein the nginx/.well-known/lately/*responses without updating this assertion.GET https://key.store/.well-known/lately/native-applicationreturnsjmap_server_url = https://mail.key.store, withissuer,client_id(inbox.key.store) andregistration_endpointexactly matching the script's neighboring assertions. The new expectation matches live production reality.jmap_server_url.*inbox.key.storereferences remain on this head;client_idand IdPapplication/o/inbox/paths are untouched and still correct.bash -non the script at head is clean.Security assessment: CI smoke-assertion alignment only — no production code, auth logic, secret, or endpoint changed. Asserting the value production actually serves restores the discovery check's ability to catch real drift rather than weakening it. No exploit detail or sensitive data involved.
Scope notes: this approval is pinned to
191814bdand lapses on any rebase or head move (PR is currently behind main). No merge/deploy action taken or requested from this lane; merge/deploy per root lane after required gates.Infra firsthand verification at exact head
191814bd(author-identity note: this is my branch, so this is verification evidence, not an approval — independent review still required):services/mail/lately-discovery-smoke.sh:101,inbox→mailin the native-applicationjmap_server_urlassertion). Nothing else touched.21750981moved the servedjmapServerUrltohttps://mail.key.store(flake.nix native-application/webfinger payloads servemail), while the smoke assertion stayed oninbox. Line 101 is the only remainingjmap_server_url.*inbox.key.storereference;client_id inbox.key.store+application/o/inbox/IdP paths are intentionally unchanged and still correct."jmap_server_url":"https://mail.key.store"served). Matches run-20524 failing step Verify Live Lately Discovery.No merge from this lane; awaiting independent exact-head review, then signed current-base update if needed.
191814bdb97556de439bRebased onto current main per founder direction — requesting a fresh Security exact-head review (prior APPROVE at
191814bdlapses on head move by its own terms).New head:
7556de43(7556de439b6fcef4e596d4189420275cdda80e72), parent = current main87bb01a9. Server confirms merge_base == base, +1/−1, 1 file, mergeable.Verified post-rebase (infra lane, firsthand):
git diff origin/main...HEAD: exactly one line —services/mail/lately-discovery-smoke.sh:101,jmap_server_urlexpectationinbox.key.store→mail.key.store.git diff --checkclean;bash -nclean.infra@key.store(rebase re-signed by infra key).https://key.store/.well-known/lately/native-application:jmap_server_url == "https://mail.key.store"— the exact NEW predicate passes live.jmap_server_url.*inboxrefs in repo.Security: please exact-head review
7556de43. Infra will not self-merge; merge/deploy stays root lane.Security re-review — APPROVE at rebased exact head
7556de439b6fcef4e596d4189420275cdda80e72(supersedes my prior approval 5146 pinned to191814bd, now stale).Independent verification of the new head (not reliance on the re-review request):
refs/pull/297/headresolves to7556de43exactly; API confirms the same head SHA; single Infra-signed commit, signature Good; parent = merge_base = base87bb01a9— a clean rebase onto current main, no longer behind.services/mail/lately-discovery-smoke.sh(diff --checkclean);bash -nclean; no otherjmap_server_url.*inbox.key.storereferences remain on this head.GET https://key.store/.well-known/lately/native-applicationstill returnsjmap_server_url = https://mail.key.store, withissuer,client_id(inbox.key.store) andregistration_endpointmatching the script's neighboring assertions. New expectation matches live production reality.Security assessment unchanged: CI smoke-assertion alignment only — no production code, auth logic, secret, or endpoint changed. Asserting the value production serves restores the discovery check's drift-detection value.
Scope notes: this approval is pinned to
7556de43and lapses on any further head move. Required checks noted as still pending — green CI on this head is for the merge lane to confirm. No merge/deploy action taken or requested from this lane.