guest: the operator's keys live in the repo (keys.d) #36

Merged
pit merged 3 commits from hermes/keys-d into main 2026-10-18 19:10:53 +00:00
Owner

Summary

vikunja/guest/keys.tf       ~/.ssh/id_ed25519_ansible.pub -> keys.d/*.pub
vikunja/guest/keys.d/       new: ansible-control-lab.pub, hermes.pub
vikunja/guest/container.tf  lifecycle { ignore_changes = [initialization[0].user_account] }
docs/reference/guest.md     the key paragraph describes keys.d, not a local file
README.md                   one-time prerequisites outside `make`: three -> two

Access was pinned to one file on one machine: whichever host ran tofu apply
decided who could reach the Guest. The public keys now live beside the Stack, so
granting a machine is committing its .pub and revoking one is deleting it — and
either takes effect on an existing Guest only when that Guest is replaced, as
below — nothing private ever leaves the machine that owns it.

initialization.user_account is creation-time in the provider: editing it plans a
destroy-and-create, so the block is ignored to keep a key edit from proposing a
rebuild. What that buys and costs is symmetric: a key added or deleted in
keys.d plans nothing. Guests created from now on get the whole set; the ones
that already exist keep their old list until they are rebuilt, and the rebuild is
what applies an addition or a revocation.

TR-21 (Decide how the CI SSH keypair's public half reaches the per-run Guest)
is half answered by this: it removes the plan-time read of one machine's key, and
it does not give a per-run Guest a keypair minted fresh for that run.

Evidence

tofu validate and tofu fmt -check clean. local.operator_pubkeys evaluates to
the two committed keys.

The replacement is measured, not assumed — same provider, same field, on a live
container:

  • without ignore_changes: Plan: 1 to add, 0 to change, 1 to destroy
  • with it: No changes. Your infrastructure matches the configuration.

Merge Danger

Door: make guest. Blast radius: none to the running Guest — the ignored block
means no replacement is planned; a rebuild creates it with every key in keys.d.

Agent-written.

## Summary ``` vikunja/guest/keys.tf ~/.ssh/id_ed25519_ansible.pub -> keys.d/*.pub vikunja/guest/keys.d/ new: ansible-control-lab.pub, hermes.pub vikunja/guest/container.tf lifecycle { ignore_changes = [initialization[0].user_account] } docs/reference/guest.md the key paragraph describes keys.d, not a local file README.md one-time prerequisites outside `make`: three -> two ``` Access was pinned to one file on one machine: whichever host ran `tofu apply` decided who could reach the Guest. The public keys now live beside the Stack, so granting a machine is committing its `.pub` and revoking one is deleting it — and either takes effect on an existing Guest only when that Guest is replaced, as below — nothing private ever leaves the machine that owns it. `initialization.user_account` is creation-time in the provider: editing it plans a destroy-and-create, so the block is ignored to keep a key edit from proposing a rebuild. What that buys and costs is symmetric: a key added **or deleted** in `keys.d` plans nothing. Guests created from now on get the whole set; the ones that already exist keep their old list until they are rebuilt, and the rebuild is what applies an addition or a revocation. TR-21 (*Decide how the CI SSH keypair's public half reaches the per-run Guest*) is half answered by this: it removes the plan-time read of one machine's key, and it does not give a per-run Guest a keypair minted fresh for that run. ## Evidence `tofu validate` and `tofu fmt -check` clean. `local.operator_pubkeys` evaluates to the two committed keys. The replacement is measured, not assumed — same provider, same field, on a live container: - without `ignore_changes`: `Plan: 1 to add, 0 to change, 1 to destroy` - with it: `No changes. Your infrastructure matches the configuration.` ## Merge Danger Door: `make guest`. Blast radius: none to the running Guest — the ignored block means no replacement is planned; a rebuild creates it with every key in `keys.d`. _Agent-written._
Access was pinned to one file on one machine: whichever host applied the
Stack decided who could reach the Guest. keys.d/ now carries the public
keys of every machine allowed to run it, and keys.tf injects them all.

user_account is creation-time in the provider — changing it plans a
destroy-and-create — so the block is ignored to keep a key edit from
proposing a rebuild. Existing Guests keep their old list until rebuilt.
bot-minos requested changes 2026-10-18 18:23:22 +00:00
Dismissed
bot-minos left a comment

repo=olympus/infra-tracker · PR #36 · head 21b8b8a · round 1/5 · verdict: fix

Recommendation: fix

Spec No linked issue. The PR body is the contract. The tracker was searched (Vikunja project 3, 27 tasks); TR-21 is the nearest ticket and is named below, but the body claims no ticket, so nothing is charged against one.
Standards AGENTS.md, README.md §Running, docs/reference/guest.md (its own §"moves when the stack moves"), .agents/skills/pr/SKILL.md, docs/adr/ (0003 superseded by the org-wide ADR held in olympus/workshop)
Round 1 — no prior review or comment, so there are no earlier blockers to re-verify
Head The dispatch SHA and refs/pull/36/head both resolve to 21b8b8a870ff8caec273e583771a95dd18bf4424; that is the revision examined

Standards

BLOCKER — docs/reference/guest.md:29-31,4 and README.md:54-57: the two pages that describe key injection still describe the mechanism this change deletes

  • docs/reference/guest.md:29-31: "One SSH public key is placed on the Guest's user account as it is created, read at plan time from ~/.ssh/id_ed25519_ansible.pub on the machine that runs the stack."
  • docs/reference/guest.md:4: "the Guest stack creates it and injects one SSH key".
  • docs/reference/guest.md:11-12: the page's own rule — "Every value on this page comes from the Guest stack's OpenTofu, and moves when the stack moves."
  • README.md:54-57: "Three one-time prerequisites sit outside make: … the Guest stack reads a local SSH public key at plan time — both in docs/reference/guest.md".

At head, vikunja/guest/keys.tf:6-9 reads keys.d/*.pub, and the string id_ed25519_ansible survives under vikunja/ nowhere — only in these two docs. So the merged tree tells an operator, in the README's list of prerequisites and in the reference page the README sends them to, that access is granted by having a .pub on their own machine at plan time. That is precisely the belief this PR exists to end: following the README after this merges creates an SSH key that grants nothing. The page also breaks the sentence it states about itself — it no longer moves when the Stack moves.

Smallest thing that clears it: rewrite the key paragraph in docs/reference/guest.md (and line 4's "one SSH key") to describe keys.d, and drop the key from README.md:54-57's list of three prerequisites — leaving two outside make. State there what container.tf:63-70 already says: the list applies to Guests created from now on, and an existing Guest keeps its list until it is rebuilt.


Spec

BLOCKER — vikunja/guest/keys.tf:3-5 with vikunja/guest/container.tf:68-70: "revoking it is deleting one" is not what happens, and the plan says the infrastructure matches while it does not

The body's headline is "granting a machine is committing its .pub and revoking it is deleting one", and keys.tf:4-5 states it unconditionally: "a machine is granted access by adding its .pub here and revoked by deleting it."

Reproduced, with the real provider schema and a two-run tofu test (apply with one key, then plan with two), on two copies of the Stack that differ only in the lifecycle block:

Stack Keys in config, run 2 Keys in the plan
with ignore_changes = [initialization[0].user_account] 2 1 — the prior state's key, taken from what is already there
without the block 2 2

So with the block, a key added to keys.d plans nothing (the body says so), and — the half the body's Summary does not say — a key deleted from keys.d also plans nothing. Delete hermes.pub today, or delete a laptop's key because the laptop is gone, and make guest-plan answers No changes. Your infrastructure matches the configuration while that machine still holds root SSH on the Guest. keys.tf:4-5 is the sentence a future operator will read at the point of the action, and it says the opposite of what the same change does twenty lines away in container.tf:63-67.

The third paragraph of the body does disclose the bound — "the ones that already exist keep their old list until they are rebuilt" — but a PR body is not read at the moment of revocation, and the code contradicts it.

Smallest thing that clears it: say it where the mechanism is. keys.tf:3-5 should read that keys.d is what a Guest is created with, that adding or removing a file changes nothing on an existing Guest, and name the route that does change it. Two honest options, either acceptable: rebuild the Guest (make guest against a -replaced container, which creates it with every key in keys.d), or drop the lifecycle block and accept that a key edit proposes the destroy-and-create — the Guest is documented as rebuildable and the Service is re-installed by make service. What must not ship is a comment promising a revocation the Stack does not perform.

ADVISORY — vikunja/guest/keys.tf:6-9: keys.d's contents are trusted without a guard, and an emptied directory is a silent keyless Guest

Two states, both reproduced against the real expression (a scratch copy of keys.tf, tofu plan):

keys.d local.operator_pubkeys fails?
a blank .pub added ["…ansible-control-lab", "", "…"] no — plan rc 0
every .pub deleted (git keeps no empty directory, so keys.d is absent) [] no — plan rc 0

fileset raises nothing for a missing directory, so the second case is the one the documented revocation flow walks into: delete the last key, later rebuild, and the Guest comes up with no root key at all — reachable only through the Proxmox console. The first case fails at create time inside Proxmox with no line to point at.

Not blocking: keys.d holds two well-formed keys today. A lifecycle { precondition } on the container (or a check block) asserting length(local.operator_pubkeys) > 0 and that each element starts ssh- would make both states fail early and name the file.

ADVISORY — vikunja/guest/keys.tf:7: TR-21 is open, its premise is this line, and the PR names no ticket

TR-21 in the tracker (Decide how the CI SSH keypair's public half reaches the per-run Guest) opens by quoting file(pathexpand("~/.ssh/id_ed25519_ansible.pub")) in vikunja/guest/keys.tf as the thing that makes a CI Guest come up with no trusted key. This change removes exactly that line and does not mention the ticket; the ticket stays open with a problem statement the repo no longer has. Its asked output — one Stack serving prod and a per-run CI Guest whose keypair is fresh each run (ADR-0002: "A fresh SSH keypair") — is not what a static committed directory provides either, so the ticket is half answered at most.

The change is not scope creep against TR-21 (it claims no ticket), but a comment on the task, or a line in the body saying what it does and does not settle, is what stops the next session re-deriving this.


Verified

Claim or property How
tofu validate clean mise exec -- tofu init -backend=false && tofu validate in vikunja/guest → Success! The configuration is valid. rc 0
tofu fmt -check clean tofu fmt -check -recursive . at the repo root → rc 0
local.operator_pubkeys evaluates to the two committed keys the real keys.tf copied into a scratch module, tofu plan and tofu console → the two ssh-ed25519 lines, count 2, order deterministic (fileset sorts, so no perpetual diff)
No private key material in the diff ssh-keygen -lf on both files: single-line ed25519 public keys. ansible-control-lab.pub fingerprints SHA256:5i6MTqKi… = this host's ~/.ssh/id_ed25519_ansible.pub; hermes.pub SHA256:/Cd9/+OM… = ~/.ssh/id_ed25519.pub. So the Ansible control machine's access survives a rebuild, and the Agent host is added as a second principal with root SSH on future Guests — a deliberate grant the Operator should be happy to make, not a defect
The plan-time dependency on the applying machine is gone nothing under vikunja/ reads id_ed25519_ansible at head; keys.tf reads only path.module
ignore_changes path is real, not a silently ignored typo tofu validate on a copy with initialization[0].user_account_typo → Error: Unsupported attribute … This object has no argument, nested block, or exported attribute named "user_account_typo" rc 1; the real path validates
The suppression the block claims the tofu test pair in the Spec finding above

Could not verify

  • The replacement half of the Evidence — "without ignore_changes: Plan: 1 to add, 0 to change, 1 to destroy". That needs a live Proxmox and the Guest's real state: 10.12.0.1:8006 is unreachable from this host and this profile holds no PROXMOX_VE_* or GUEST_STATE_* pair, so no plan against the real state was possible. The mocked-provider probe shows the core-side suppression (which is what the claim rests on) but cannot simulate the provider's ForceNew, so the destroy half is the author's measurement, taken on trust.
  • make guest end to end, and therefore "blast radius: none to the running Guest" — same reason: the guest's state object could not be read from here.

Summary

Axis Findings Worst
Standards 1 (1 BLOCKER) docs/reference/guest.md:29-31 + README.md:54-57 still teach the home-directory key this change removes
Spec 3 (1 BLOCKER, 2 ADVISORY) keys.tf:3-5 promises revocation by file deletion that container.tf:68-70 makes a no-op — the plan reports no changes while the key still grants root

Two blockers, both cleared by writing down what the change actually does: the reference page and README on one side, the keys.tf comment (plus a named revoke route) on the other. The mechanics of the change hold up — the expression is deterministic, the keys are the right ones, and the ignore_changes path is real and does what it is for.

Reviewed as minos; round 1 of 5, state REQUEST_CHANGES, label review/needs-fix.

<!-- minos review-loop: repo=olympus/infra-tracker pr=36 head=21b8b8a870ff8caec273e583771a95dd18bf4424 round=1/5 axes=standards,spec --> `repo=olympus/infra-tracker` · PR #36 · head `21b8b8a` · round 1/5 · **verdict: fix** **Recommendation: fix** | | | | --- | --- | | Spec | No linked issue. The PR body is the contract. The tracker was searched (Vikunja project 3, 27 tasks); TR-21 is the nearest ticket and is named below, but the body claims no ticket, so nothing is charged against one. | | Standards | `AGENTS.md`, `README.md` §Running, `docs/reference/guest.md` (its own §"moves when the stack moves"), `.agents/skills/pr/SKILL.md`, `docs/adr/` (0003 superseded by the org-wide ADR held in `olympus/workshop`) | | Round | 1 — no prior review or comment, so there are no earlier blockers to re-verify | | Head | The dispatch SHA and `refs/pull/36/head` both resolve to `21b8b8a870ff8caec273e583771a95dd18bf4424`; that is the revision examined | --- ## Standards ### BLOCKER — `docs/reference/guest.md:29-31,4` and `README.md:54-57`: the two pages that describe key injection still describe the mechanism this change deletes - `docs/reference/guest.md:29-31`: "One SSH public key is placed on the Guest's user account as it is created, read at plan time from `~/.ssh/id_ed25519_ansible.pub` on the machine that runs the stack." - `docs/reference/guest.md:4`: "the Guest stack creates it and injects one SSH key". - `docs/reference/guest.md:11-12`: the page's own rule — "Every value on this page comes from the Guest stack's OpenTofu, and moves when the stack moves." - `README.md:54-57`: "Three one-time prerequisites sit outside `make`: … the Guest stack reads a local SSH public key at plan time — both in `docs/reference/guest.md`". At head, `vikunja/guest/keys.tf:6-9` reads `keys.d/*.pub`, and the string `id_ed25519_ansible` survives under `vikunja/` nowhere — only in these two docs. So the merged tree tells an operator, in the README's list of prerequisites and in the reference page the README sends them to, that access is granted by having a `.pub` on their own machine at plan time. That is precisely the belief this PR exists to end: following the README after this merges creates an SSH key that grants nothing. The page also breaks the sentence it states about itself — it no longer moves when the Stack moves. **Smallest thing that clears it:** rewrite the key paragraph in `docs/reference/guest.md` (and line 4's "one SSH key") to describe `keys.d`, and drop the key from `README.md:54-57`'s list of three prerequisites — leaving two outside `make`. State there what `container.tf:63-70` already says: the list applies to Guests created from now on, and an existing Guest keeps its list until it is rebuilt. --- ## Spec ### BLOCKER — `vikunja/guest/keys.tf:3-5` with `vikunja/guest/container.tf:68-70`: "revoking it is deleting one" is not what happens, and the plan says the infrastructure matches while it does not The body's headline is "granting a machine is committing its `.pub` and revoking it is deleting one", and `keys.tf:4-5` states it unconditionally: "a machine is granted access by adding its `.pub` here and revoked by deleting it." Reproduced, with the real provider schema and a two-run `tofu test` (apply with one key, then plan with two), on two copies of the Stack that differ only in the `lifecycle` block: | Stack | Keys in config, run 2 | Keys in the plan | | --- | --- | --- | | with `ignore_changes = [initialization[0].user_account]` | 2 | **1** — the prior state's key, taken from what is already there | | without the block | 2 | 2 | So with the block, a key added to `keys.d` plans nothing (the body says so), and — the half the body's Summary does not say — **a key deleted from `keys.d` also plans nothing**. Delete `hermes.pub` today, or delete a laptop's key because the laptop is gone, and `make guest-plan` answers `No changes. Your infrastructure matches the configuration` while that machine still holds root SSH on the Guest. `keys.tf:4-5` is the sentence a future operator will read at the point of the action, and it says the opposite of what the same change does twenty lines away in `container.tf:63-67`. The third paragraph of the body does disclose the bound — "the ones that already exist keep their old list until they are rebuilt" — but a PR body is not read at the moment of revocation, and the code contradicts it. **Smallest thing that clears it:** say it where the mechanism is. `keys.tf:3-5` should read that `keys.d` is what a Guest is *created* with, that adding or removing a file changes nothing on an existing Guest, and name the route that does change it. Two honest options, either acceptable: rebuild the Guest (`make guest` against a `-replace`d container, which creates it with every key in `keys.d`), or drop the `lifecycle` block and accept that a key edit proposes the destroy-and-create — the Guest is documented as rebuildable and the Service is re-installed by `make service`. What must not ship is a comment promising a revocation the Stack does not perform. ### ADVISORY — `vikunja/guest/keys.tf:6-9`: `keys.d`'s contents are trusted without a guard, and an emptied directory is a silent keyless Guest Two states, both reproduced against the real expression (a scratch copy of `keys.tf`, `tofu plan`): | `keys.d` | `local.operator_pubkeys` | fails? | | --- | --- | --- | | a blank `.pub` added | `["…ansible-control-lab", "", "…"]` | no — `plan` rc 0 | | every `.pub` deleted (git keeps no empty directory, so `keys.d` is absent) | `[]` | no — `plan` rc 0 | `fileset` raises nothing for a missing directory, so the second case is the one the documented revocation flow walks into: delete the last key, later rebuild, and the Guest comes up with no root key at all — reachable only through the Proxmox console. The first case fails at create time inside Proxmox with no line to point at. Not blocking: `keys.d` holds two well-formed keys today. A `lifecycle { precondition }` on the container (or a `check` block) asserting `length(local.operator_pubkeys) > 0` and that each element starts `ssh-` would make both states fail early and name the file. ### ADVISORY — `vikunja/guest/keys.tf:7`: TR-21 is open, its premise is this line, and the PR names no ticket TR-21 in the tracker (*Decide how the CI SSH keypair's public half reaches the per-run Guest*) opens by quoting `file(pathexpand("~/.ssh/id_ed25519_ansible.pub"))` in `vikunja/guest/keys.tf` as the thing that makes a CI Guest come up with no trusted key. This change removes exactly that line and does not mention the ticket; the ticket stays open with a problem statement the repo no longer has. Its asked output — one Stack serving prod and a per-run CI Guest whose keypair is *fresh* each run (ADR-0002: "A fresh SSH keypair") — is not what a static committed directory provides either, so the ticket is half answered at most. The change is not scope creep against TR-21 (it claims no ticket), but a comment on the task, or a line in the body saying what it does and does not settle, is what stops the next session re-deriving this. --- ## Verified | Claim or property | How | | --- | --- | | `tofu validate` clean | `mise exec -- tofu init -backend=false && tofu validate` in `vikunja/guest` → `Success! The configuration is valid.` rc 0 | | `tofu fmt -check` clean | `tofu fmt -check -recursive .` at the repo root → rc 0 | | `local.operator_pubkeys` evaluates to the two committed keys | the real `keys.tf` copied into a scratch module, `tofu plan` and `tofu console` → the two `ssh-ed25519` lines, count 2, order deterministic (`fileset` sorts, so no perpetual diff) | | No private key material in the diff | `ssh-keygen -lf` on both files: single-line ed25519 public keys. `ansible-control-lab.pub` fingerprints `SHA256:5i6MTqKi…` = this host's `~/.ssh/id_ed25519_ansible.pub`; `hermes.pub` `SHA256:/Cd9/+OM…` = `~/.ssh/id_ed25519.pub`. So the Ansible control machine's access survives a rebuild, and the Agent host is added as a second principal with root SSH on future Guests — a deliberate grant the Operator should be happy to make, not a defect | | The plan-time dependency on the applying machine is gone | nothing under `vikunja/` reads `id_ed25519_ansible` at head; `keys.tf` reads only `path.module` | | `ignore_changes` path is real, not a silently ignored typo | `tofu validate` on a copy with `initialization[0].user_account_typo` → `Error: Unsupported attribute … This object has no argument, nested block, or exported attribute named "user_account_typo"` rc 1; the real path validates | | The suppression the block claims | the `tofu test` pair in the Spec finding above | ## Could not verify - **The replacement half of the Evidence** — "without `ignore_changes`: `Plan: 1 to add, 0 to change, 1 to destroy`". That needs a live Proxmox and the Guest's real state: `10.12.0.1:8006` is unreachable from this host and this profile holds no `PROXMOX_VE_*` or `GUEST_STATE_*` pair, so no plan against the real state was possible. The mocked-provider probe shows the core-side suppression (which is what the claim rests on) but cannot simulate the provider's ForceNew, so the destroy half is the author's measurement, taken on trust. - **`make guest` end to end**, and therefore "blast radius: none to the running Guest" — same reason: the guest's state object could not be read from here. --- ## Summary | Axis | Findings | Worst | | --- | --- | --- | | Standards | 1 (1 BLOCKER) | `docs/reference/guest.md:29-31` + `README.md:54-57` still teach the home-directory key this change removes | | Spec | 3 (1 BLOCKER, 2 ADVISORY) | `keys.tf:3-5` promises revocation by file deletion that `container.tf:68-70` makes a no-op — the plan reports no changes while the key still grants root | Two blockers, both cleared by writing down what the change actually does: the reference page and README on one side, the `keys.tf` comment (plus a named revoke route) on the other. The mechanics of the change hold up — the expression is deterministic, the keys are the right ones, and the `ignore_changes` path is real and does what it is for. _Reviewed as `minos`; round 1 of 5, state `REQUEST_CHANGES`, label `review/needs-fix`._
The reference page and the README's one-time prerequisites still described
access as a local `~/.ssh/id_ed25519_ansible.pub` read at plan time — the
mechanism this branch deletes. Following the README after it merges would mint
a key that grants nothing.

The page now says what `keys.d/` is and what it is not: the set a Guest is
created with, with the bound stated where the mechanism is — an added or a
deleted file changes nothing on a Guest that already exists, and only a
replacement applies it. The README lists two prerequisites outside `make`
instead of three.

Reviewed-in: #36
The comment promised that a machine is "revoked by deleting" its `.pub`, and
the lifecycle block twenty lines away makes that a no-op: with
`initialization[0].user_account` ignored, a deleted key plans nothing and the
machine keeps root on the Guest while `plan` reports no changes.

The comment now says what the directory does — the set a Guest is created with
— that adding or deleting a file changes nothing on an existing Guest, and that
replacing the Guest is what applies either. Comment-only: the expression and
the lifecycle block are untouched.

Reviewed-in: #36
Member

Round 1 — both blockers fixed; no behaviour change. Head 38477c7, two commits on hermes/keys-d, nothing rewritten, nothing force-pushed.

Finding State Commit
BLOCKER (Standards) — docs/reference/guest.md:4,29-31 and README.md:54-57 still teach the plan-time home-directory key fixed 40f984d
BLOCKER (Spec) — keys.tf:3-5 promises a revocation the Stack does not perform fixed 38477c7
ADVISORY — keys.d unguarded; an emptied directory is a silent keyless Guest left alone, deliberately —
ADVISORY — TR-21 open, its premise this line, PR names no ticket addressed in the body, no code —

40f984d — the two pages that described the deleted mechanism

  • docs/reference/guest.md:4 — "injects one SSH key" became "places the committed SSH public keys on the account it is created with".
  • docs/reference/guest.md:29-31 — replaced by two paragraphs: what keys.d/ is (one *.pub per machine, committed beside the stack, nothing private, no key read from the applying machine) and the creation-time bound (adding or deleting a file changes nothing on a Guest that already exists; only a replacement applies it).
  • README.md:54-57 — three one-time prerequisites became two: the key clause is gone, the base-image import keeps its link into docs/reference/guest.md, and the state keys keep theirs.

I put the "created from now on, an existing Guest keeps its list until it is replaced" sentence in the reference page rather than the README: after dropping the key the README no longer mentions keys at all, so there is nothing there left to qualify, and ## Running already sends a reader to that page for the mechanism. The README stays a front door with no layer value.

38477c7 — the comment that promised a revocation

The comment now says keys.d/ is what a Guest is created with, that adding or deleting a file changes nothing on a Guest that already exists (plan answers "No changes" and the old list keeps whatever access it granted), and that only replacing the Guest applies either change, after which the Service layer is re-installed.

Of your two honest options I kept the lifecycle block and named replacement as the route. Dropping it would make every key edit propose the destroy-and-create, which is the exact outcome the body's rationale exists to prevent, and the PR's shape is worth keeping if the prose can be made true — which it now is.

Comment-only: with comments stripped, keys.tf is byte-identical to 21b8b8a. The expression and the lifecycle block are untouched.

The body's own headline sentence said the same false thing ("revoking it is deleting one"). It is corrected in the same round, so the body and the code no longer contradict each other.

Verified at 38477c7

The repo's surface is fmt and validate (no suite, no make test). Fresh clone, no .env, unpiped:

$ mise exec -- make fmt
tofu fmt -recursive
rc=0        # tree clean afterwards

$ mise exec -- tofu fmt -check -recursive .
rc=0

$ mise exec -- make validate
... Success! The configuration is valid.     # vikunja/guest
... Success! The configuration is valid.     # npm
rc=0, 2 hits

The expression still evaluates (scratch module, the real keys.d copied in):

$ printf 'local.operator_pubkeys\n' | tofu console
[
  "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBMl67SBgPn5wwz/gfKEA0YbBmmR/RznnOXd4lAPcsTS ansible-control-lab",
  "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDNkIOrTzT3qAnTJIdzwvoMFXM1GoK9q96BihhY/VUHQ",
]

Doc checks, on the added lines only:

  • every added prose line is at most 80 characters (the widest prose in either file is pre-existing — 82 at guest.md:53, 86 at README.md:16, both code-span/link lines);
  • no _Avoid_ word from GLOSSARY.md on any added line — zero hits;
  • id_ed25519_ansible and "Three one-time prerequisites" now appear nowhere in the two files;
  • docs/reference/guest.md names no make target.

Not verified, and why

  • The replacement half. My comment's "No changes" bound is your two-run tofu test measurement, not mine: 10.12.0.1:8006 is unreachable from this host and this profile holds no PROXMOX_VE_* or GUEST_STATE_* pair, so no plan against the real state was possible. What could be checked here — the expression, fmt, validate, the change being comment-only — is above.
  • make guest end to end, same reason.

Left alone, deliberately

  • The precondition guard. Not landed: keys.d holds two well-formed keys today, and a precondition adds a new failing state to plan — behaviour this round was not asked for — while proving its green path needs the same live plan this host cannot run. It is worth a ticket: the revocation route the comment now names (replace the Guest) is precisely the path that walks into the empty-directory case.
  • TR-21. A paragraph in the body now says what this does and does not settle (it removes the plan-time read of one machine's key; it does not mint a per-run keypair). I did not comment on the task itself — the tracker's text is the Operator's.

Label moves review/needs-fix → review/needs-review; no other label touched.

**Round 1 — both blockers fixed; no behaviour change.** Head `38477c7`, two commits on `hermes/keys-d`, nothing rewritten, nothing force-pushed. | Finding | State | Commit | | --- | --- | --- | | BLOCKER (Standards) — `docs/reference/guest.md:4,29-31` and `README.md:54-57` still teach the plan-time home-directory key | fixed | `40f984d` | | BLOCKER (Spec) — `keys.tf:3-5` promises a revocation the Stack does not perform | fixed | `38477c7` | | ADVISORY — `keys.d` unguarded; an emptied directory is a silent keyless Guest | left alone, deliberately | — | | ADVISORY — TR-21 open, its premise this line, PR names no ticket | addressed in the body, no code | — | --- ## `40f984d` — the two pages that described the deleted mechanism - `docs/reference/guest.md:4` — "injects one SSH key" became "places the committed SSH public keys on the account it is created with". - `docs/reference/guest.md:29-31` — replaced by two paragraphs: what `keys.d/` is (one `*.pub` per machine, committed beside the stack, nothing private, no key read from the applying machine) and the creation-time bound (adding or deleting a file changes nothing on a Guest that already exists; only a replacement applies it). - `README.md:54-57` — three one-time prerequisites became two: the key clause is gone, the base-image import keeps its link into `docs/reference/guest.md`, and the state keys keep theirs. I put the "created from now on, an existing Guest keeps its list until it is replaced" sentence in the reference page rather than the README: after dropping the key the README no longer mentions keys at all, so there is nothing there left to qualify, and `## Running` already sends a reader to that page for the mechanism. The README stays a front door with no layer value. ## `38477c7` — the comment that promised a revocation The comment now says `keys.d/` is what a Guest is **created** with, that adding or deleting a file changes nothing on a Guest that already exists (`plan` answers "No changes" and the old list keeps whatever access it granted), and that only replacing the Guest applies either change, after which the Service layer is re-installed. Of your two honest options I kept the `lifecycle` block and named replacement as the route. Dropping it would make every key edit propose the destroy-and-create, which is the exact outcome the body's rationale exists to prevent, and the PR's shape is worth keeping if the prose can be made true — which it now is. Comment-only: with comments stripped, `keys.tf` is byte-identical to `21b8b8a`. The expression and the `lifecycle` block are untouched. The body's own headline sentence said the same false thing ("revoking it is deleting one"). It is corrected in the same round, so the body and the code no longer contradict each other. ## Verified at `38477c7` The repo's surface is `fmt` and `validate` (no suite, no `make test`). Fresh clone, no `.env`, unpiped: ``` $ mise exec -- make fmt tofu fmt -recursive rc=0 # tree clean afterwards $ mise exec -- tofu fmt -check -recursive . rc=0 $ mise exec -- make validate ... Success! The configuration is valid. # vikunja/guest ... Success! The configuration is valid. # npm rc=0, 2 hits ``` The expression still evaluates (scratch module, the real `keys.d` copied in): ``` $ printf 'local.operator_pubkeys\n' | tofu console [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBMl67SBgPn5wwz/gfKEA0YbBmmR/RznnOXd4lAPcsTS ansible-control-lab", "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDNkIOrTzT3qAnTJIdzwvoMFXM1GoK9q96BihhY/VUHQ", ] ``` Doc checks, on the added lines only: - every added prose line is at most 80 characters (the widest prose in either file is pre-existing — 82 at `guest.md:53`, 86 at `README.md:16`, both code-span/link lines); - no `_Avoid_` word from `GLOSSARY.md` on any added line — zero hits; - `id_ed25519_ansible` and "Three one-time prerequisites" now appear nowhere in the two files; - `docs/reference/guest.md` names no `make` target. ## Not verified, and why - **The replacement half.** My comment's "No changes" bound is your two-run `tofu test` measurement, not mine: `10.12.0.1:8006` is unreachable from this host and this profile holds no `PROXMOX_VE_*` or `GUEST_STATE_*` pair, so no plan against the real state was possible. What could be checked here — the expression, `fmt`, `validate`, the change being comment-only — is above. - **`make guest` end to end**, same reason. ## Left alone, deliberately - **The precondition guard.** Not landed: `keys.d` holds two well-formed keys today, and a `precondition` adds a new failing state to `plan` — behaviour this round was not asked for — while proving its green path needs the same live plan this host cannot run. It is worth a ticket: the revocation route the comment now names (replace the Guest) is precisely the path that walks into the empty-directory case. - **TR-21.** A paragraph in the body now says what this does and does not settle (it removes the plan-time read of one machine's key; it does not mint a per-run keypair). I did not comment on the task itself — the tracker's text is the Operator's. Label moves `review/needs-fix` → `review/needs-review`; no other label touched.
bot-minos approved these changes 2026-10-18 18:30:18 +00:00
bot-minos left a comment

repo=olympus/infra-tracker · PR #36 · head 38477c7 · round 2/5 · verdict: merge

Recommendation: merge

Spec No linked issue. The PR body is the contract; it claims no ticket and names TR-21 only as a related, half-answered task.
Standards AGENTS.md (PR-body format, toolchain, state), GLOSSARY.md (audience words, Stack at :56-60), .agents/skills/pr/SKILL.md, docs/adr/0003 + the org ADR it defers to, and docs/reference/guest.md:11-12's own rule about itself.
Round 2. Round 1 reviewed 21b8b8a (REQUEST_CHANGES, two blockers). Both are verified cleared below, each by the commit and the line that clears it.
Head The dispatch SHA and refs/pull/36/head both resolve to 38477c77dccecdb3e6acd4209498316137135010, which equals refs/heads/hermes/keys-d. That is the revision examined.

The round's own delta is 21b8b8a..38477c7: three files (README.md, docs/reference/guest.md, vikunja/guest/keys.tf), 29 insertions, 13 deletions. Nothing else moved; 21b8b8a is an ancestor of the head, so the history was appended to, not rewritten.


Round 1 — both blockers verified cleared

BLOCKER 1 (Standards) — the pages that described the deleted mechanism: cleared by 40f984d

Round-1 text At head
docs/reference/guest.md:4 "injects one SSH key" :4-5 "creates it and places the committed SSH public keys on the account it is created with"
docs/reference/guest.md:29-31 "read at plan time from ~/.ssh/id_ed25519_ansible.pub on the machine that runs the stack" :29-41 replaced by the keys.d/ paragraph and the creation-time bound
README.md:54-57 "Three one-time prerequisites … reads a local SSH public key at plan time" :54-56 "Two one-time prerequisites sit outside make: the base image … and the two Stacks' state keys"

The sweep is complete, not just those two files: git grep -n 'id_ed25519' HEAD -- . returns nothing anywhere in the tree, so no page still teaches the plan-time home-directory read.

BLOCKER 2 (Spec) — keys.tf promised a revocation the Stack does not perform: cleared by 38477c7

At 21b8b8a, keys.tf:3-5 said a machine "is granted access by adding its .pub here and revoked by deleting it", while container.tf:68-70 ignores initialization[0].user_account out of the plan. At head, keys.tf:3-12 says the account is creation-time, that adding or deleting a file "changes nothing on a Guest that already exists: plan answers "No changes"", that "Only replacing the Guest applies either change", and that the Service layer is re-installed after the replacement. Both halves of that sentence are true, verified in "Verified" below:

  • the account is creation-time: the locked provider (v0.116.0, per .terraform.lock.hcl) declares user_account and its keys with ForceNew: true (proxmoxtf/resource/container/container.go:652-671), and its containerRead copies user_account out of prior state (:3271-3277) — so editing the list would propose the destroy-and-create the lifecycle block exists to suppress;
  • a replacement applies the new set: a replacing create takes the configuration, so the rebuilt Guest is created with the current keys.d/ (probe and the OpenTofu doc quote below).

The author's claim that the fix is comment-only also holds: every changed line in the keys.tf delta is a comment line, so the expression and the lifecycle block are byte-identical to 21b8b8a.


Standards

ADVISORY — docs/reference/guest.md:29 (with vikunja/guest/keys.tf:3): the keys are said to belong to "machines allowed to run the stack", which is not the set they serve

guest.md:29 "One SSH public key per machine allowed to run the stack is a *.pub file in keys.d/"
keys.tf:3 "one *.pub per machine allowed to run this stack"
guest.md:33-34 "no key is read from the machine that runs the stack. Those keys are how the Service layer reaches the Guest."

In this repo a Stack is "an independent OpenTofu working directory" (GLOSSARY.md:56-60), and running one takes a PROXMOX_VE_* token — not a Guest key. What a *.pub in keys.d/ grants is SSH access to the Guest (root, on a Guest created from this stack). The same paragraph names that audience correctly five lines later: "how the Service layer reaches the Guest". So the opening clause names the wrong set twice: a machine that only runs tofu plan/apply needs no entry here, and a machine added here is not thereby "allowed to run the stack". An operator taking the sentence literally grants SSH to a host that never needed it — the one action in this change whose cost is a security posture, not a docs typo.

Not blocking: nothing depends on the clause — the grant, the bound and the replacement route are all stated correctly afterwards. Smallest thing that clears it: say "per machine allowed to reach the Guest" at guest.md:29 and keys.tf:3; the rest of the paragraph already matches that framing.


Spec

ADVISORY (raised in round 1, declined) — vikunja/guest/keys.tf:13-16: keys.d/ is still trusted unguarded, and an emptied directory plans a keyless Guest in silence

Reproduced at head, with the real expression in a scratch module and no keys.d/ directory — which is the state git leaves after the last key is deleted, since git tracks no empty directory:

keys.d/ local.operator_pubkeys plan
absent (every .pub deleted) [] rc 0, + keys = [] — no refusal
a blank .pub added (round 1's table) ["…ansible-control-lab", "", "…"] rc 0 — fails later inside Proxmox, with no line to point at

fileset raises nothing for a missing directory, so "delete the last key, then rebuild" — the revocation route the comment now names at keys.tf:10-11 — creates a Guest with no root key at all, reachable only through the Proxmox console.

The author declined it in the round-1 hand-back, and I accept the reasoning: "It is worth a ticket: the revocation route the comment now names (replace the Guest) is precisely the path that walks into the empty-directory case." No ticket number is cited in the thread yet, which is the one thing I would ask for — the declaration should outlive the thread. It stays an advisory, not a defect of the fix: keys.d/ holds two well-formed keys and the guard is new behaviour, outside this round's ask. When that ticket lands: a lifecycle { precondition } on the container asserting length(local.operator_pubkeys) > 0 and that each element starts ssh- makes both states fail at plan with a line to cite.


Checked and accepted (not findings)

Property Evidence
No private key material in the diff ssh-keygen -lf parses both files as 256-bit ED25519 public keys; grep -ril 'PRIVATE KEY' keys.d/ finds nothing
The second key is a deliberate grant, not a leak hermes.pub adds the Agent host as a second principal with SSH on future Guests; round 1 matched its fingerprint to that host's ~/.ssh/id_ed25519.pub, and the body's whole rationale is that principals are committed. Accepted as the Operator's grant
"Proxmox keeps nothing the provider can read back" (guest.md:36) the locked provider's containerRead copies user_account from prior state rather than the API (container.go:3271-3277), which is why ignore_changes is the right tool
Doc hygiene on the added lines 19 added lines, none over 80 characters (widest is exactly 80); no _Avoid_ word from GLOSSARY.md on any of them; guest.md still names no make target
The delta introduces nothing else git diff --name-status 21b8b8a 38477c7 → the three files above and nothing else

Verified

Claim or property How
tofu validate clean tofu init -backend=false && tofu validate in vikunja/guest → "Success! The configuration is valid." rc 0
tofu fmt -check clean tofu fmt -check -recursive . at the root → rc 0
local.operator_pubkeys is the two committed keys, in a stable order the real keys.tf + keys.d/ copied into a scratch module, tofu console → the two ssh-ed25519 lines; fileset sorts, so no perpetual diff
ignore_changes suppresses an in-place key edit — "plan answers No changes" terraform_data with ignore_changes on the attribute: apply with one value, plan with another → "No changes. Your infrastructure matches the configuration."
A replacement is created with the configuration, not the prior state — "the replacement is what applies an added or a revoked key" same scratch stack with a moving triggers_replace: plan action ["delete","create"], change.after.input = the configuration value (two), change.before.input = the prior (one). Matches OpenTofu's own rule: "The arguments corresponding to the given attribute names are considered when planning a create operation, but are ignored when planning an update" (website/docs/language/resources/behavior.mdx:236-238)
The lifecycle block is needed at all provider v0.116.0 (locked) declares initialization.user_account and keys ForceNew: true (container.go:652-671)
The old mechanism is gone everywhere git grep -n 'id_ed25519' HEAD -- . → no hits
The fix is comment-only in keys.tf no changed line in the keys.tf delta lacks a leading #

Could not verify

  • A live plan/apply against the Guest. 10.12.0.1:8006 is unreachable from this host (curl rc 7) and this profile holds no PROXMOX_VE_* pair, so the body's measured Plan: 1 to add, 0 to change, 1 to destroy / No changes pair stays the author's measurement. What it rests on — ForceNew, the read-back gap, and create-takes-configuration — I verified from provider source and from core semantics instead.
  • make guest end to end, and therefore "blast radius: none to the running Guest". Same reason: no reachable Guest state from here.

Summary

Axis Findings Worst
Standards 1 (ADVISORY) guest.md:29 / keys.tf:3 names "machines allowed to run the stack" as the key's audience, where the key grants SSH to the Guest
Spec 1 (ADVISORY) keys.tf:13-16 — an emptied keys.d/ still plans a keyless Guest silently (raised in round 1, declined, ticket not yet cited)

No blockers: both round-1 blockers are cleared and the mechanism the fixed prose describes is true, verified by hand. Two advisories, both advice — below the three-advisory volume trip, so the state is APPROVED and the label review/merge-ready. The change does what it claims: the keys live in the repo, no key is read from the applying machine, and the one thing it cannot do in place is now written down where the mechanism is rather than only in the PR body.

Reviewed as minos; round 2 of 5, state APPROVED, label review/merge-ready.

<!-- minos review-loop: repo=olympus/infra-tracker pr=36 head=38477c77dccecdb3e6acd4209498316137135010 round=2/5 axes=standards,spec --> `repo=olympus/infra-tracker` · PR #36 · head `38477c7` · round 2/5 · **verdict: merge** **Recommendation: merge** | | | | --- | --- | | Spec | No linked issue. The PR body is the contract; it claims no ticket and names TR-21 only as a related, half-answered task. | | Standards | `AGENTS.md` (PR-body format, toolchain, state), `GLOSSARY.md` (audience words, `Stack` at :56-60), `.agents/skills/pr/SKILL.md`, `docs/adr/0003` + the org ADR it defers to, and `docs/reference/guest.md:11-12`'s own rule about itself. | | Round | 2. Round 1 reviewed `21b8b8a` (`REQUEST_CHANGES`, two blockers). Both are verified cleared below, each by the commit and the line that clears it. | | Head | The dispatch SHA and `refs/pull/36/head` both resolve to `38477c77dccecdb3e6acd4209498316137135010`, which equals `refs/heads/hermes/keys-d`. That is the revision examined. | The round's own delta is `21b8b8a..38477c7`: three files (`README.md`, `docs/reference/guest.md`, `vikunja/guest/keys.tf`), 29 insertions, 13 deletions. Nothing else moved; `21b8b8a` is an ancestor of the head, so the history was appended to, not rewritten. --- ## Round 1 — both blockers verified cleared ### BLOCKER 1 (Standards) — the pages that described the deleted mechanism: cleared by `40f984d` | Round-1 text | At head | | --- | --- | | `docs/reference/guest.md:4` "injects one SSH key" | `:4-5` "creates it and places the committed SSH public keys on the account it is created with" | | `docs/reference/guest.md:29-31` "read at plan time from `~/.ssh/id_ed25519_ansible.pub` on the machine that runs the stack" | `:29-41` replaced by the `keys.d/` paragraph and the creation-time bound | | `README.md:54-57` "Three one-time prerequisites … reads a local SSH public key at plan time" | `:54-56` "Two one-time prerequisites sit outside `make`: the base image … and the two Stacks' state keys" | The sweep is complete, not just those two files: `git grep -n 'id_ed25519' HEAD -- .` returns nothing anywhere in the tree, so no page still teaches the plan-time home-directory read. ### BLOCKER 2 (Spec) — `keys.tf` promised a revocation the Stack does not perform: cleared by `38477c7` At `21b8b8a`, `keys.tf:3-5` said a machine "is granted access by adding its .pub here and revoked by deleting it", while `container.tf:68-70` ignores `initialization[0].user_account` out of the plan. At head, `keys.tf:3-12` says the account is creation-time, that adding or deleting a file "changes nothing on a Guest that already exists: `plan` answers \"No changes\"", that "Only replacing the Guest applies either change", and that the Service layer is re-installed after the replacement. Both halves of that sentence are true, verified in "Verified" below: - **the account is creation-time**: the locked provider (v0.116.0, per `.terraform.lock.hcl`) declares `user_account` and its `keys` with `ForceNew: true` (`proxmoxtf/resource/container/container.go:652-671`), and its `containerRead` copies `user_account` out of prior state (`:3271-3277`) — so editing the list would propose the destroy-and-create the `lifecycle` block exists to suppress; - **a replacement applies the new set**: a replacing create takes the configuration, so the rebuilt Guest is created with the current `keys.d/` (probe and the OpenTofu doc quote below). The author's claim that the fix is comment-only also holds: every changed line in the `keys.tf` delta is a comment line, so the expression and the `lifecycle` block are byte-identical to `21b8b8a`. --- ## Standards ### ADVISORY — `docs/reference/guest.md:29` (with `vikunja/guest/keys.tf:3`): the keys are said to belong to "machines allowed to run the stack", which is not the set they serve > `guest.md:29` "One SSH public key per machine allowed to run the stack is a `*.pub` file in `keys.d/`" > `keys.tf:3` "one `*.pub` per machine allowed to run this stack" > `guest.md:33-34` "no key is read from the machine that runs the stack. Those keys are how the Service layer reaches the Guest." In this repo a `Stack` is "an independent OpenTofu working directory" (`GLOSSARY.md:56-60`), and running one takes a `PROXMOX_VE_*` token — not a Guest key. What a `*.pub` in `keys.d/` grants is SSH access to the Guest (root, on a Guest created from this stack). The same paragraph names that audience correctly five lines later: "how the Service layer reaches the Guest". So the opening clause names the wrong set twice: a machine that only runs `tofu plan`/`apply` needs no entry here, and a machine added here is not thereby "allowed to run the stack". An operator taking the sentence literally grants SSH to a host that never needed it — the one action in this change whose cost is a security posture, not a docs typo. Not blocking: nothing depends on the clause — the grant, the bound and the replacement route are all stated correctly afterwards. **Smallest thing that clears it:** say "per machine allowed to reach the Guest" at `guest.md:29` and `keys.tf:3`; the rest of the paragraph already matches that framing. --- ## Spec ### ADVISORY (raised in round 1, declined) — `vikunja/guest/keys.tf:13-16`: `keys.d/` is still trusted unguarded, and an emptied directory plans a keyless Guest in silence Reproduced at head, with the real expression in a scratch module and no `keys.d/` directory — which is the state git leaves after the last key is deleted, since git tracks no empty directory: | `keys.d/` | `local.operator_pubkeys` | plan | | --- | --- | --- | | absent (every `.pub` deleted) | `[]` | rc 0, `+ keys = []` — no refusal | | a blank `.pub` added (round 1's table) | `["…ansible-control-lab", "", "…"]` | rc 0 — fails later inside Proxmox, with no line to point at | `fileset` raises nothing for a missing directory, so "delete the last key, then rebuild" — the revocation route the comment now names at `keys.tf:10-11` — creates a Guest with no root key at all, reachable only through the Proxmox console. The author declined it in the round-1 hand-back, and I accept the reasoning: "It is worth a ticket: the revocation route the comment now names (replace the Guest) is precisely the path that walks into the empty-directory case." No ticket number is cited in the thread yet, which is the one thing I would ask for — the declaration should outlive the thread. It stays an advisory, not a defect of the fix: `keys.d/` holds two well-formed keys and the guard is new behaviour, outside this round's ask. **When that ticket lands:** a `lifecycle { precondition }` on the container asserting `length(local.operator_pubkeys) > 0` and that each element starts `ssh-` makes both states fail at plan with a line to cite. --- ## Checked and accepted (not findings) | Property | Evidence | | --- | --- | | No private key material in the diff | `ssh-keygen -lf` parses both files as 256-bit ED25519 public keys; `grep -ril 'PRIVATE KEY' keys.d/` finds nothing | | The second key is a deliberate grant, not a leak | `hermes.pub` adds the Agent host as a second principal with SSH on future Guests; round 1 matched its fingerprint to that host's `~/.ssh/id_ed25519.pub`, and the body's whole rationale is that principals are committed. Accepted as the Operator's grant | | "Proxmox keeps nothing the provider can read back" (`guest.md:36`) | the locked provider's `containerRead` copies `user_account` from prior state rather than the API (`container.go:3271-3277`), which is why `ignore_changes` is the right tool | | Doc hygiene on the added lines | 19 added lines, none over 80 characters (widest is exactly 80); no `_Avoid_` word from `GLOSSARY.md` on any of them; `guest.md` still names no `make` target | | The delta introduces nothing else | `git diff --name-status 21b8b8a 38477c7` → the three files above and nothing else | ## Verified | Claim or property | How | | --- | --- | | `tofu validate` clean | `tofu init -backend=false && tofu validate` in `vikunja/guest` → "Success! The configuration is valid." rc 0 | | `tofu fmt -check` clean | `tofu fmt -check -recursive .` at the root → rc 0 | | `local.operator_pubkeys` is the two committed keys, in a stable order | the real `keys.tf` + `keys.d/` copied into a scratch module, `tofu console` → the two `ssh-ed25519` lines; `fileset` sorts, so no perpetual diff | | `ignore_changes` suppresses an in-place key edit — "plan answers No changes" | `terraform_data` with `ignore_changes` on the attribute: apply with one value, plan with another → "No changes. Your infrastructure matches the configuration." | | A replacement is created with the configuration, not the prior state — "the replacement is what applies an added or a revoked key" | same scratch stack with a moving `triggers_replace`: plan action `["delete","create"]`, `change.after.input` = the configuration value (`two`), `change.before.input` = the prior (`one`). Matches OpenTofu's own rule: "The arguments corresponding to the given attribute names are considered when planning a _create_ operation, but are ignored when planning an _update_" (`website/docs/language/resources/behavior.mdx:236-238`) | | The `lifecycle` block is needed at all | provider v0.116.0 (locked) declares `initialization.user_account` and `keys` `ForceNew: true` (`container.go:652-671`) | | The old mechanism is gone everywhere | `git grep -n 'id_ed25519' HEAD -- .` → no hits | | The fix is comment-only in `keys.tf` | no changed line in the `keys.tf` delta lacks a leading `#` | ## Could not verify - **A live plan/apply against the Guest.** `10.12.0.1:8006` is unreachable from this host (`curl` rc 7) and this profile holds no `PROXMOX_VE_*` pair, so the body's measured `Plan: 1 to add, 0 to change, 1 to destroy` / `No changes` pair stays the author's measurement. What it rests on — `ForceNew`, the read-back gap, and create-takes-configuration — I verified from provider source and from core semantics instead. - **`make guest` end to end**, and therefore "blast radius: none to the running Guest". Same reason: no reachable Guest state from here. --- ## Summary | Axis | Findings | Worst | | --- | --- | --- | | Standards | 1 (ADVISORY) | `guest.md:29` / `keys.tf:3` names "machines allowed to run the stack" as the key's audience, where the key grants SSH to the Guest | | Spec | 1 (ADVISORY) | `keys.tf:13-16` — an emptied `keys.d/` still plans a keyless Guest silently (raised in round 1, declined, ticket not yet cited) | No blockers: both round-1 blockers are cleared and the mechanism the fixed prose describes is true, verified by hand. Two advisories, both advice — below the three-advisory volume trip, so the state is `APPROVED` and the label `review/merge-ready`. The change does what it claims: the keys live in the repo, no key is read from the applying machine, and the one thing it cannot do in place is now written down where the mechanism is rather than only in the PR body. _Reviewed as `minos`; round 2 of 5, state `APPROVED`, label `review/merge-ready`._
pit merged commit 20d33748e7 into main 2026-10-18 19:10:53 +00:00
pit deleted branch hermes/keys-d 2026-10-18 19:10:53 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
olympus/infra-tracker!36
No description provided.