rented gateway evidence harvest dials with no SSH identity — oc_droplet_evidence must use the per-run rent-operator/id_ed25519 (seen on drive 20260828T051317Z) #926

Closed
opened 2026-08-28 06:12:14 +00:00 by matou-build-agent · 3 comments

Separate concrete defect seen during the #923 drive (20260828T051317Z).

Symptom

The gateway-side evidence harvest could not authenticate to the rented gateway: logs/gateway-journal.txt, gateway-caddy.txt, gateway-stall.txt, gateway-units.txt all read root@209.38.87.90: Permission denied (publickey,keyboard-interactive), while logs/gateway-do-forensics.txt proves the box was up and tcp/22: a FRESH connect succeeded. Result: the red had zero gateway-side evidence.

Cause

oc_droplet_evidence dials with no identity (scripts/lib/rehearsal-droplet.sh:450, :463, :477, :496, :537). On the rented path the box trusts only the app's per-run key — the sibling harvester at scripts/lib/rehearsal-droplet.sh:980-981 already knows it as $run_dir/state/rent-operator/id_ed25519.

Fix

Thread that per-run identity into oc_droplet_evidence's ssh dials on the rented path. Offline seam tests for this surface exist: scripts/tests/device-evidence-order-test.sh, scripts/tests/droplet-evidence-order-test.sh — red-first there.

Separate concrete defect seen during the #923 drive (`20260828T051317Z`). ## Symptom The gateway-side evidence harvest could not authenticate to the rented gateway: `logs/gateway-journal.txt`, `gateway-caddy.txt`, `gateway-stall.txt`, `gateway-units.txt` all read `root@209.38.87.90: Permission denied (publickey,keyboard-interactive)`, while `logs/gateway-do-forensics.txt` proves the box was up and `tcp/22: a FRESH connect succeeded`. Result: the red had **zero** gateway-side evidence. ## Cause `oc_droplet_evidence` dials with no identity (`scripts/lib/rehearsal-droplet.sh:450`, `:463`, `:477`, `:496`, `:537`). On the rented path the box trusts only the app's per-run key — the sibling harvester at `scripts/lib/rehearsal-droplet.sh:980-981` already knows it as `$run_dir/state/rent-operator/id_ed25519`. ## Fix Thread that per-run identity into `oc_droplet_evidence`'s ssh dials on the rented path. Offline seam tests for this surface exist: `scripts/tests/device-evidence-order-test.sh`, `scripts/tests/droplet-evidence-order-test.sh` — red-first there.
Author
Member

This was generated by AI during triage.

Agent Brief

Category: bug
Summary: Thread the per-run rented-operator SSH identity into the gateway evidence harvest so oc_droplet_evidence's dials authenticate on the rented path

Current behavior:
On the rented path the gateway-side evidence harvest (oc_droplet_evidence) dials the rented gateway with no SSH identity. The rented box trusts only the app's per-run key, so every harvest read fails Permission denied (publickey,keyboard-interactive) — gateway-journal.txt, gateway-caddy.txt, gateway-stall.txt, gateway-units.txt all come back empty even when the box is provably up (gateway-do-forensics.txt shows tcp/22: a FRESH connect succeeded). A red on the rented path lands with zero gateway-side evidence. Seen on drive 20260828T051317Z.

Desired behavior:
On the rented path, oc_droplet_evidence's SSH dials present the per-run rented-operator identity that the sibling harvester already uses ($run_dir/state/rent-operator/id_ed25519), so the gateway journals/caddy/stall/units evidence is captured. The self-hosted path (which does not use that key) is unchanged.

Key interfaces:

  • oc_droplet_evidence — its ssh dials must take the per-run identity on the rented path. Reuse the exact identity the sibling rented harvester resolves (state/rent-operator/id_ed25519 under the run dir); don't introduce a second key-resolution path.
  • Keep the dial identity-disciplined (ADR 0126) — the identity is threaded, not a loosened host-key policy.

Acceptance criteria:

  • scripts/tests/device-evidence-order-test.sh and scripts/tests/droplet-evidence-order-test.sh are extended red-first to assert the rented-path harvest dials with the per-run identity, then pass with the fix.
  • On a rented-path red, the four gateway evidence files are non-empty when the box is reachable on tcp/22.
  • The self-hosted evidence path is unchanged.

Out of scope:

  • The other rented-path defects from the same drive (#925 flake ingest, #927 config-flake capture, #928 journey.json).
  • Any change to host-key checking / auth posture.

Ruled by agent under ADR 0174 — veto anytime.
Ruling: ready-for-agent. This is a two-way door — the change (thread an already-available per-run identity into one harvest verb) is revertible by a commit, and it is provable by existing offline seam tests (device-evidence-order-test.sh, droplet-evidence-order-test.sh), red-first. It is not on the one-way-door list (no personal credentials — the key is a per-run app key already on disk; no security widening; no data destruction; no live door required to prove it). Safe for the swarm.

> *This was generated by AI during triage.* ## Agent Brief **Category:** bug **Summary:** Thread the per-run rented-operator SSH identity into the gateway evidence harvest so `oc_droplet_evidence`'s dials authenticate on the rented path **Current behavior:** On the rented path the gateway-side evidence harvest (`oc_droplet_evidence`) dials the rented gateway with **no SSH identity**. The rented box trusts only the app's per-run key, so every harvest read fails `Permission denied (publickey,keyboard-interactive)` — `gateway-journal.txt`, `gateway-caddy.txt`, `gateway-stall.txt`, `gateway-units.txt` all come back empty even when the box is provably up (`gateway-do-forensics.txt` shows `tcp/22: a FRESH connect succeeded`). A red on the rented path lands with **zero** gateway-side evidence. Seen on drive `20260828T051317Z`. **Desired behavior:** On the rented path, `oc_droplet_evidence`'s SSH dials present the per-run rented-operator identity that the sibling harvester already uses (`$run_dir/state/rent-operator/id_ed25519`), so the gateway journals/caddy/stall/units evidence is captured. The self-hosted path (which does not use that key) is unchanged. **Key interfaces:** - `oc_droplet_evidence` — its ssh dials must take the per-run identity on the rented path. Reuse the exact identity the sibling rented harvester resolves (`state/rent-operator/id_ed25519` under the run dir); don't introduce a second key-resolution path. - Keep the dial identity-disciplined (ADR 0126) — the identity is threaded, not a loosened host-key policy. **Acceptance criteria:** - [ ] `scripts/tests/device-evidence-order-test.sh` and `scripts/tests/droplet-evidence-order-test.sh` are extended **red-first** to assert the rented-path harvest dials with the per-run identity, then pass with the fix. - [ ] On a rented-path red, the four gateway evidence files are non-empty when the box is reachable on tcp/22. - [ ] The self-hosted evidence path is unchanged. **Out of scope:** - The other rented-path defects from the same drive (#925 flake ingest, #927 config-flake capture, #928 journey.json). - Any change to host-key checking / auth posture. --- Ruled by agent under ADR 0174 — veto anytime. **Ruling:** `ready-for-agent`. This is a two-way door — the change (thread an already-available per-run identity into one harvest verb) is revertible by a commit, and it is **provable by existing offline seam tests** (`device-evidence-order-test.sh`, `droplet-evidence-order-test.sh`), red-first. It is not on the one-way-door list (no personal credentials — the key is a per-run app key already on disk; no security widening; no data destruction; no live door required to *prove* it). Safe for the swarm.
Author
Member

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

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

close-report for #926 — status success

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

envelope
{
  "issue": 926,
  "status": "success",
  "commits": [
    "6b3a3261ea87f478cc9c7b688b6eb3dca68f2d25"
  ],
  "changed_files": [
    "scripts/lib/rehearsal-droplet.sh",
    "scripts/tests/droplet-evidence-order-test.sh",
    "scripts/tests/device-evidence-order-test.sh"
  ],
  "tests": [
    {
      "command": "bash scripts/tests/droplet-evidence-order-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash scripts/tests/device-evidence-order-test.sh",
      "exit_code": 0
    }
  ],
  "criteria": {
    "scripts/tests/device-evidence-order-test.sh and droplet-evidence-order-test.sh extended red-first to assert the rented-path harvest dials with the per-run identity, then pass with the fix": "Both extended red-first (verified failing before the fix: dials lacked -i state/rent-operator/id_ed25519); green after (droplet: 5 checks, device: 8 checks). See scripts/tests/droplet-evidence-order-test.sh rented-path+self-hosted blocks and scripts/tests/device-evidence-order-test.sh test 5b.",
    "On a rented-path red, the four gateway evidence files are non-empty when the box is reachable on tcp/22": "oc_droplet_evidence now threads -i $run_dir/state/rent-operator/id_ed25519 into all four box-reaching ssh dials (journal/caddy/stall/units) when the per-run key is on disk (rented path); the dials authenticate instead of Permission-denied, so the harvest captures. scripts/lib/rehearsal-droplet.sh:431-447 + the four dials.",
    "The self-hosted evidence path is unchanged": "The identity is added only when $run_dir/state/rent-operator/id_ed25519 exists (rented path); on the self-hosted path the file is absent so no -i is added and -o flags are byte-for-byte unchanged. Pinned by the droplet test's self-hosted block and device test 5 (default harvest unchanged)."
  },
  "summary": "oc_droplet_evidence threads the per-run rent-operator identity into its rented-path ssh dials so the four gateway evidence files authenticate and capture.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #926 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 926, "status": "success", "commits": [ "6b3a3261ea87f478cc9c7b688b6eb3dca68f2d25" ], "changed_files": [ "scripts/lib/rehearsal-droplet.sh", "scripts/tests/droplet-evidence-order-test.sh", "scripts/tests/device-evidence-order-test.sh" ], "tests": [ { "command": "bash scripts/tests/droplet-evidence-order-test.sh", "exit_code": 0 }, { "command": "bash scripts/tests/device-evidence-order-test.sh", "exit_code": 0 } ], "criteria": { "scripts/tests/device-evidence-order-test.sh and droplet-evidence-order-test.sh extended red-first to assert the rented-path harvest dials with the per-run identity, then pass with the fix": "Both extended red-first (verified failing before the fix: dials lacked -i state/rent-operator/id_ed25519); green after (droplet: 5 checks, device: 8 checks). See scripts/tests/droplet-evidence-order-test.sh rented-path+self-hosted blocks and scripts/tests/device-evidence-order-test.sh test 5b.", "On a rented-path red, the four gateway evidence files are non-empty when the box is reachable on tcp/22": "oc_droplet_evidence now threads -i $run_dir/state/rent-operator/id_ed25519 into all four box-reaching ssh dials (journal/caddy/stall/units) when the per-run key is on disk (rented path); the dials authenticate instead of Permission-denied, so the harvest captures. scripts/lib/rehearsal-droplet.sh:431-447 + the four dials.", "The self-hosted evidence path is unchanged": "The identity is added only when $run_dir/state/rent-operator/id_ed25519 exists (rented path); on the self-hosted path the file is absent so no -i is added and -o flags are byte-for-byte unchanged. Pinned by the droplet test's self-hosted block and device test 5 (default harvest unchanged)." }, "summary": "oc_droplet_evidence threads the per-run rent-operator identity into its rented-path ssh dials so the four gateway evidence files authenticate and capture.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
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.

Dependencies

No dependencies set.

Reference
Matou/idss#926
No description provided.