The OpenBao Guest's journal is persistent by declaration (SC-31) #40
No reviewers
Labels
No labels
ready-for-agent
review
merge-ready
review
needs-fix
review
needs-human
review
needs-review
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olympus/infra-secrets!40
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/SC-31-the-openbao-guest-s-journal-is-persisten"
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?
Implements SC-31.
Summary
144 carries
/var/log/journaltoday, but the role declared nothing: journald's default,auto, keeps a disk journal only where that directory happens to exist, so a Guest rebuilt from this role would come back with a volatile journal — and lose the boot that says why a unit did not restart. infra-cockpit declares the drop-in for 143 and 145 (semaphore/service/roles/journal); this is the same declaration for 144, in the role that owns the Guest rather than insite.yml, because this repository has one Guest and one role.First in the role, before the package, and flushed at once rather than at the play's own flush: a journal made persistent at the end of the play starts after the install and the first unseal it was meant to record.
Storage=persistentcreates/var/log/journalon that restart; the size cap stays journald's own (a tenth of the filesystem, at most 4G).Evidence
mise exec -- make check— exit 0,env fetch: every case passed.mise exec -- ansible-playbook -i inventories/prod/hosts --syntax-check site.yml—SYNTAX_EXIT=0.--check --diff), which is what amake service-checkrenders:/var/log/journalafter its first deploy. That needs a 144 rebuild, which is the Operator's, not this branch's.make service-checkagainst PROD needs the store, so it is the Operator's run before the merge.Merge Danger
Door: two-way. Drop-in only; removing it and restarting journald puts the Guest back on
auto.Blast Radius: one Guest, on its next deploy.
make servicerestartssystemd-journaldonce on 144 — no restart of the store, and nothing in the store's data path. The role writes the file idempotently, so a second run ischanged=0.Review started (round 1/5) on
014077d069— reading the diff now.repo olympus/infra-secrets · PR #40 · reviewed head
83ea8cc· round 1/5 · verdict mergeRecommendation: mergeDispatched at
014077d; the branch advanced to83ea8cc33 s later ("the journal is on disk before the package is installed"). I reviewed the PR as it stands and verified that the one defect present at the dispatched SHA is closed by that commit — recorded in §Resolved, not counted as live.Spec
Source: the PR description. SC-31 (
vikunja.thepit.space/tasks/331) was not fetchable — the Vikunja API refuses without a credential and this session carries no MCP token for it. Everything below is judged against the contract the description states, not against criteria I cannot read.Storage=persistentdrop-in declared in the role, not insite.ymlbao/service/roles/openbao/tasks/main.yml:26-46tasks/main.yml:11-51, handler flushed at:48-51handlers/main.yml:2-8journald.conf(5)(systemd 257.13): "defaults to 10% … capped to 4G"restart openbaonotification; nothing on the data pathFindings: none. No scope creep — both hunks are the change, and the handler is the only new one.
Standards
No
CODING_STANDARDS.mdand noCONTRIBUTING.md. Rules in force, and read:AGENTS.md§Checks, §Decisions (theworkshopADRs bind first — none of 0001-0007 touch journald or the service layer),docs/agents/domain.md. The new code follows the role's existing house conventions: numbered sections, why-comments,when: not ansible_check_modeon the handler as on its neighbour.bao/service/roles/openbao/tasks/main.yml:26-51: nothing in the gate covers this file.AGENTS.md§Checks fixesmake checkas env-pin + env-map + the fetch's tests, and CI'spr-checks / checkis that target and nothing more. A later edit that deletes the drop-in reds nothing; the only check that renders the role is the by-hand--check --diff. Repo-wide gap, not introduced here — advice, not a round trip.Resolved before this review (not live at head)
014077donly) —tasks/main.yml:21-25claimed "the install below and the store's first unseal are on disk", but the copy only notified the handler. With no flush, the handler ran at the existingmeta: flush_handlersin §6 — after the package install, the unit's first start and the initialisation. Evidence:--check --diffover the role at014077dplacesRUNNING HANDLER [restart journald]after "apply the unit and the environment before the wait", not before §1; an isolated probe (copy → notify → stat) reportsmarker exists before play flush: False, andTruewith a flush inserted.Precision: at
014077dthe drop-in still made the store's first unseal durable, because journald restarts ahead ofrestart openbaoin that same flush. What did not hold was the install and the first start.83ea8cc—tasks/main.yml:48-51addsmeta: flush_handlersimmediately after the copy; only the journald handler is pending there. Verified: the same probe shows the handler's effect before the next task, and the check-mode run putsRUNNING HANDLER [restart journald]at:50, ahead of §1. Only this one handler is pending at that point, so nothing else is restarted early.Verified by hand
mise exec -- make checkenv fetch: every case passed.(touches no Ansible file — reproduces the author's evidence, proves nothing about the role)ansible-playbook -i inventories/prod/hosts --syntax-check site.yml[WARNING] group and host both named bao— pre-existing)--check --diffagainst localhostpersistent.conf0 → 3flush_handlers)Falsebefore the play flush,Trueright after a flushcopytaskchanged=0, handler not notified — idempotent as claimedjournald.conf(5), systemd 257.13persistent→ "/var/log/journalhierarchy (which is created if needed)";SystemMaxUsedefault 10% capped at 4Gpr-checks / check (pull_request)success on both014077dand83ea8ccWhat I could not verify, and why
/var/log/journalafter its first deploy — needs the Guest, which is the Operator's run. The author says the same; it is not a finding, it is unproven scope.make service-checkagainst PROD — needs the store and its root token./var/log/journal— documented behaviour I read in the man page, not something I executed: this host gives me no root, and restartingsystemd-journaldon a shared machine is not a reviewer's act.Summary
One advisory, below the volume threshold; nothing blocks. The change is two files, +51 lines, every hunk accounted for, no secret and no store path in it. Merge at
83ea8cc.83ea8ccaf4a6a1c78e47