The Vikunja SMTP credential carries both fields #42
No reviewers
Labels
No labels
needs-info
needs-triage
ready-for-agent
ready-for-human
wontfix
needs-info
needs-triage
ready-for-agent
ready-for-human
review
merge-ready
review
needs-fix
review
needs-human
review
needs-operator
review
needs-review
review
waiting
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olympus/infra-tracker!42
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/smtp-username"
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?
Summary
secret/services/vikunja/prod/smtpis one credential, so it now carries both of its fields:The role reads the username through
vault_vikunja_smtp_username, and falls back tothepitwhen the environment carries none, so the Test leg and an.envfetched before the field existed keep working.VIKUNJA_SMTP_USERNAMEjoins.env.example, the README and the service reference; it stays out ofrequire_service_secretsfor the same reason the password does.Evidence
make checkgreen:env-check(17 names, map and example agree),env-test(every assertion),tofu fmt -check, three Stack validates and both plan tests.ansible-playbook -i inventories/prod/hosts --syntax-check site.ymlgreen.VIKUNJA_SMTP_USERNAME=thepitand the current password unchanged;make env ACTOR=pitfetched both (rev 2). No fetch refuses once this merges.Not done here
The credential value itself is unchanged. Rotating it is: change the SMTP2GO user and password, write both fields, then apply the service. No service was applied in this change.
Merge Danger
Door: two-way — reverting restores the one-name map; the store path keeps the extra field, which the old map ignores.
Blast Radius: the Vikunja mailer's credential only; no Guest, Edge or account changes.
WIP: The Vikunja SMTP credential carries both fieldsto The Vikunja SMTP credential carries both fieldsReview started (round 1/5) on
ba9fc99c04— reading the diff now.repo=olympus/infra-tracker · PR #42 · head
ba9fc99c04· round 1/5 (the dispatch said 1/5; this is the thread's count: reviews already posted + 1) · verdict: mergeRecommendation: merge
Fixed point:
main414856a(merge-base = base sha); the delta isgit diff 414856a ba9fc99— 6 files, +21/−9, one commit. Round 1: no prior review, nothing to re-drive.refs/pull/42/headon the host resolved to the dispatch SHA before and after the probes.Spec source: the PR description. It cites no ticket. I searched Infra Tracker (project 3) for smtp / mailer / username and found no task that carries this change (TR-8, TR-23, TR-26, TR-29, TR-36 are closed and unrelated). That is a process note, not a finding: the repo's PR convention (
AGENTS.md §Pull requests) asks for the three-section body, not a closing keyword. The body's own claims are the contract.Standards sources:
AGENTS.md §Environment(changing a name is a change toenv.mapand.env.exampletogether;make env-checkfails when only one moved),AGENTS.md §Pull requests+.agents/skills/pr/SKILL.md(Summary / Evidence / Merge Danger),olympus/workshopdocs/adr/0007and0009atmain, andolympus/infra-secretsdocs/store-layout.mdatmain(the docenv.mapsays owns the paths).Standards
env.map:40-42, ruleworkshop docs/adr/0007 §Decision("a path is one credential: fields share a path only when they rotate together") andinfra-secrets docs/store-layout.md:35(same sentence). The rationale the change writes down is "SMTP2GO issues the username and password together, and a reset moves the password" — by those words the username does not move on a reset, which is the case the rule says must not share a path. The PR body says the opposite ("change the SMTP2GO user and password, write both fields"). If the body is right, the comment is the defect; if the comment is right, the row breaks the rule. Why it matters here:scripts/env.sh:145-152refuses the whole fetch when a mapped name is missing from a path, so a password-onlykv put(what "a reset moves the password" describes) dropsVIKUNJA_SMTP_USERNAMEand everymake envafter it refuses, for every path. Clears with: reword the comment to say the two fields are rotated together by one write (the PR body's account), or drop the clause "and a reset moves the password". (ADR-0007 isProposed, which is why this is advice and not a block.)Standards that held:
env.mapand.env.examplemoved together (make env-check: "17 names, all declared in .env.example"); the PR body carries the three required sections; no secret value appears anywhere in the diff.Spec
vikunja/service/roles/vikunja/defaults/main.yml:73(+vikunja/service/verify.yml:129). The body promises "the Test leg and an.envfetched before the field existed keep working", and I confirmed it (below), but nothing in the repo's suite pins the new line. Mutant: replace line 73 with the oldvikunja_mailer_username: thepit—make env-check env-teststays green (rc 0), andmake checknever loads the role; the only role evidence in the body is--syntax-check, which parses the Jinja without evaluating it.verify.yml:129asserts onlyconfig.mailer.enabled == false; the Test leg renders the config but never asserts the username. Clears with: one line in thatthat:list,config.mailer.username == 'thepit'(the Test leg has noVIKUNJA_SMTP_USERNAME, so it exercises exactly the fallback).What I verified, by my own hand
make checkgreen, 17 namesmise exec -- make checkat head--syntax-check site.ymlgreenansible-playbook -i inventories/prod/hosts --syntax-check site.ymlthepitthepit, empty →thepit,smtp-user-7→smtp-user-7; the base revision givesthepitfor the same set value (the field is new);enabledstill keys on the password aloneenv.sh fetchat base and head against a stub store built from each side's ownenv.map.env711 → 760 bytes, name diff =+VIKUNJA_SMTP_USERNAME, mode 600, the name reaches a sourced childsmtppath answering 404.envwrittenscripts/env.sh:287.data.data[$k]); an unmapped field is never looked at+/-line census ofgit diff -- Makefile.env.example, README,docs/reference/service.mdagree with the mapNot verified
secret/services/vikunja/prod/smtpholdsVIKUNJA_SMTP_USERNAMEat version 2: a review agent's class is refused bymake env, so this rests on the author's statement. Merge condition for the human: the fetch is all-or-nothing, so confirm the field is there before merging.Named, not charged
infra-secrets docs/store-layout.md:415listsvikunja/prod/smtpas holdingvault_vikunja_smtp_passwordonly (and:181, "four paths"). It will lag the new field. Another repo's page; worth a follow-up there, not charged here.config.yml.j2:31interpolates the username inside double quotes with no escaping, the same way line 32 treats the password. A username containing"would break the YAML. Pre-existing pattern, the diff does not touch the template.mainthe deploy. This repo has only.forgejo/workflows/checks.yaml, so no merge deploys the Service yet, which is consistent with the body's "no service was applied". Once a deploy exists, the next run will render the new username.Summary
env.map:40-42— the rationale says "a reset moves the password", against the one-rotation rule it invokesdefaults/main.yml:73— the fallback is pinned by no test (mutant stays green)Two advisories, no blocker: state is APPROVED,
Recommendation: merge, labelreview/merge-ready. The count is below the three-advisory volume trip. Both advisories are optional polish; neither needs another round.