notifier: feed the minted SMTP submission credential into the gateway's clan vars (#386 split; pattern = #505) #507

Closed
opened 2026-08-14 03:43:54 +00:00 by ben · 2 comments
Owner

From #386 (Ben's ruling 2026-08-13, option A split): the FEED half — land the minted per-community SMTP submission credential into the gateway's clan vars. #386 keeps only the broker-side minting endpoint + revocation + app brokerclient method; this ticket is everything between the app holding the credential and the notifier reading it.

Scope

  1. The own-VPS carrier sets GatewayFacts.SMTPSubmission = true and declares + feeds the four generators (ourcloud-smtp-addr/-from/-username/-password, name constants in internal/clan/vmguest.go:79-82) from app-side config on its seed leg — never the repo. This is exactly the intent written into internal/clan/clan.go:378 with #369; the render half (vmguest.go:989 fact-gated exports) already consumes it.
  2. The private-path/loopback demo stays false (no relay — an undeclared-generator reference is an eval error; internal/founding/privatepath.go:894 documents this posture).
  3. Proof: a lab drive where the founded gateway's notifier submits through the minted credential (real mail infra — coordinate with the #319 smoke-mail loop if it exists by then).

Pattern to copy — BLOCKED BY #505 (dependency wired)

#505 is landing the first app-held-secret→clan-var feed for the sibling flag (ClaimSecret / ourcloud-claim-secret, "box holds the key" ruling 2026-08-13). By the time this ticket is worked, that landing is the live-drive-verified pattern: copy its feed helper rather than inventing a second mechanism. Primitives underneath (verified at HEAD): SetVarSpec declaration with recipient sets (internal/clan/config.go:163, used live by placeCrownJewels, seed.go:342) and the pinned CLI's headless vars set <node> <gen>/<prompt> stdin-as-data path (vars.go:60-64). If #505's single-value pattern does not stretch to four values, escalate rather than fork the mechanism.

History (why this exists)

#369 landed the render half only; the 2026-08-11 #386 worker found the feed missing entirely and parked (see #386's parked comment); a phantom "the feed already exists" reading of the clan.go doc comment was caught and corrected 2026-08-13 (cross-session verification). This ticket is the deliberate second half.

**From #386 (Ben's ruling 2026-08-13, option A split): the FEED half — land the minted per-community SMTP submission credential into the gateway's clan vars.** #386 keeps only the broker-side minting endpoint + revocation + app `brokerclient` method; this ticket is everything between the app holding the credential and the notifier reading it. ## Scope 1. The own-VPS carrier sets `GatewayFacts.SMTPSubmission = true` and **declares + feeds** the four generators (`ourcloud-smtp-addr/-from/-username/-password`, name constants in `internal/clan/vmguest.go:79-82`) from app-side config on its **seed leg** — never the repo. This is exactly the intent written into `internal/clan/clan.go:378` with #369; the render half (`vmguest.go:989` fact-gated exports) already consumes it. 2. The private-path/loopback demo stays `false` (no relay — an undeclared-generator reference is an eval error; `internal/founding/privatepath.go:894` documents this posture). 3. Proof: a lab drive where the founded gateway's notifier submits through the minted credential (real mail infra — coordinate with the #319 smoke-mail loop if it exists by then). ## Pattern to copy — BLOCKED BY #505 (dependency wired) #505 is landing the **first** app-held-secret→clan-var feed for the sibling flag (`ClaimSecret` / `ourcloud-claim-secret`, "box holds the key" ruling 2026-08-13). By the time this ticket is worked, that landing is the live-drive-verified pattern: copy its feed helper rather than inventing a second mechanism. Primitives underneath (verified at HEAD): `SetVarSpec` declaration with recipient sets (`internal/clan/config.go:163`, used live by `placeCrownJewels`, seed.go:342) and the pinned CLI's headless `vars set <node> <gen>/<prompt>` stdin-as-data path (vars.go:60-64). If #505's single-value pattern does not stretch to four values, escalate rather than fork the mechanism. ## History (why this exists) #369 landed the render half only; the 2026-08-11 #386 worker found the feed missing entirely and parked (see #386's parked comment); a phantom "the feed already exists" reading of the clan.go doc comment was caught and corrected 2026-08-13 (cross-session verification). This ticket is the deliberate second half.
Author
Owner

swarm-claim host=matou-dev-server-01 run=5839
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=5839 (automated multi-host claim — lowest live claim id works this ticket)
Author
Owner

close-report for #507 — status success

✅ close-report gates passed — every claim verified against main; closing.

envelope
{
  "issue": 507,
  "status": "success",
  "commits": [
    "403fab8ef64beb4452fd51720806842132788514"
  ],
  "changed_files": [
    "STATUS.md",
    "app/helper/cmd/helper/wiring_prod.go",
    "app/helper/cmd/helper/wiring_test.go",
    "internal/clan/vmguest.go",
    "internal/clan/vmguest_test.go",
    "internal/founding/orchestrator.go",
    "internal/founding/ownvpspath.go",
    "internal/founding/ownvpspath_internal_test.go",
    "internal/founding/ownvpspath_test.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/clan/ ./internal/founding/ ./app/helper/cmd/helper/",
      "exit_code": 0
    },
    {
      "command": "go build ./... && go build -tags dev ./app/...",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/clan/ ./internal/founding/ ./app/helper/cmd/helper/",
      "exit_code": 0
    }
  ],
  "criteria": {
    "The own-VPS carrier sets GatewayFacts.SMTPSubmission = true and declares + feeds the four generators from app-side config on its seed leg (never the repo)": "internal/founding/ownvpspath.go: installOwnVPS sets SMTPSubmission = o.submission.complete() and feeds smtpSubmissionAnswers (four self-masking clan.Response answers, in-memory only per ADR 0051) beside the claim secret; internal/clan/vmguest.go: gatewaySMTPGenerators DECLARES the four ourcloud-smtp-* prompts.secret/persist=true generators in BOTH renderGatewayGuest and renderControlPlaneSurface (DUAL-RENDER); source is the operator app's config (founding.SubmissionCredential from OURCLOUD_SMTP_* env via WithSubmissionCredential, app/helper/cmd/helper/wiring_prod.go). Proven by TestGatewayRenders_SMTPGeneratorsRideBothRenders, TestSMTPSubmissionAnswers, TestOwnVPS_FeedsSubmissionCredentialWhenAppCarriesOne.",
    "The private-path/loopback demo stays false (no relay; an undeclared-generator reference is an eval error)": "internal/founding/privatepath.go builds GatewayFacts without SMTPSubmission (unchanged, stays false); TestGatewayRenders_NoSMTPDeclaresNoGenerator asserts neither render references ourcloud-smtp / OURCLOUD_SMTP_ when the flag is off; the clan eval smoke keeps the flag false (seedcommunity_eval_test.go).",
    "Proof: a lab drive where the founded gateway's notifier submits through the credential (real mail infra)": "DEFERRED to the next own-VPS drive — real Matou mail infra is human-coordinated (the mail-droplet leg stays human per #386's ruling) and not reachable from the sandbox; mirrors #505's deferred live-verification. The code slice + seam tests land now; live mail submission verifies on the next drive, coordinating with the #319 smoke-mail loop."
  },
  "summary": "Landed the FEED half of #386's split: the own-VPS carrier declares the four ourcloud-smtp-* clan-var generators in both gateway renders and feeds the operator app's shared-while-alpha SMTP submission credential into them, so a founded community's notifier submits alert mail instead of resting.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #507 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; closing. <details><summary>envelope</summary> ```json { "issue": 507, "status": "success", "commits": [ "403fab8ef64beb4452fd51720806842132788514" ], "changed_files": [ "STATUS.md", "app/helper/cmd/helper/wiring_prod.go", "app/helper/cmd/helper/wiring_test.go", "internal/clan/vmguest.go", "internal/clan/vmguest_test.go", "internal/founding/orchestrator.go", "internal/founding/ownvpspath.go", "internal/founding/ownvpspath_internal_test.go", "internal/founding/ownvpspath_test.go" ], "tests": [ { "command": "go test ./internal/clan/ ./internal/founding/ ./app/helper/cmd/helper/", "exit_code": 0 }, { "command": "go build ./... && go build -tags dev ./app/...", "exit_code": 0 }, { "command": "go vet ./internal/clan/ ./internal/founding/ ./app/helper/cmd/helper/", "exit_code": 0 } ], "criteria": { "The own-VPS carrier sets GatewayFacts.SMTPSubmission = true and declares + feeds the four generators from app-side config on its seed leg (never the repo)": "internal/founding/ownvpspath.go: installOwnVPS sets SMTPSubmission = o.submission.complete() and feeds smtpSubmissionAnswers (four self-masking clan.Response answers, in-memory only per ADR 0051) beside the claim secret; internal/clan/vmguest.go: gatewaySMTPGenerators DECLARES the four ourcloud-smtp-* prompts.secret/persist=true generators in BOTH renderGatewayGuest and renderControlPlaneSurface (DUAL-RENDER); source is the operator app's config (founding.SubmissionCredential from OURCLOUD_SMTP_* env via WithSubmissionCredential, app/helper/cmd/helper/wiring_prod.go). Proven by TestGatewayRenders_SMTPGeneratorsRideBothRenders, TestSMTPSubmissionAnswers, TestOwnVPS_FeedsSubmissionCredentialWhenAppCarriesOne.", "The private-path/loopback demo stays false (no relay; an undeclared-generator reference is an eval error)": "internal/founding/privatepath.go builds GatewayFacts without SMTPSubmission (unchanged, stays false); TestGatewayRenders_NoSMTPDeclaresNoGenerator asserts neither render references ourcloud-smtp / OURCLOUD_SMTP_ when the flag is off; the clan eval smoke keeps the flag false (seedcommunity_eval_test.go).", "Proof: a lab drive where the founded gateway's notifier submits through the credential (real mail infra)": "DEFERRED to the next own-VPS drive — real Matou mail infra is human-coordinated (the mail-droplet leg stays human per #386's ruling) and not reachable from the sandbox; mirrors #505's deferred live-verification. The code slice + seam tests land now; live mail submission verifies on the next drive, coordinating with the #319 smoke-mail loop." }, "summary": "Landed the FEED half of #386's split: the own-VPS carrier declares the four ourcloud-smtp-* clan-var generators in both gateway renders and feeds the operator app's shared-while-alpha SMTP submission credential into them, so a founded community's notifier submits alert mail instead of resting.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
ben closed this issue 2026-08-14 04:02:05 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#507
No description provided.