fix: [nomad-step-3] S3.1 — nomad/jobs/woodpecker-server.hcl + vault-seed-woodpecker.sh (#934) #938
No reviewers
Labels
No labels
action
backlog
blocked
bug-report
cannot-reproduce
in-progress
in-triage
needs-triage
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
rejected
reproduced
tech-debt
underspecified
vision
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#938
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-934"
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?
Fixes #934
Changes
AI Review
Summary
This PR ships three coordinated pieces for S3.1: a shared
hvault_ensure_kv_v2helper extracted from duplicated inline code, a newvault-seed-woodpecker.shseeder, and thewoodpecker-server.hclNomad jobspec, plus avault/roles.yamljob_idalignment fix.Verified
hvault_ensure_kv_v2behavioral equivalencelib/hvault.sh:129: Extracted function matches the removed inline code invault-seed-forgejo.sh. Error paths log to stderr and return 1; the caller's|| diefires for script-level exit.DRY_RUNis exported before the call and read inside via${DRY_RUN:-0}. ✓vault/roles.yaml job_idalignment:job_id: woodpecker-servermatches the actual Nomad job declarationjob "woodpecker-server". ✓tools/vault-seed-woodpecker.sh:108: Reads existing data, merges newagent_secretwithjq '. + {agent_secret: $as}', correctly preserving anyforgejo_client/forgejo_secretwritten by S3.3. ✓kv/data/disinto/shared/woodpecker(correct KV v2 path with/data/segment),with...elsefallback for empty-Vault boots,error_on_missing_key = false. ✓Minor nit (non-blocking)
nomad/jobs/woodpecker-server.hcl:45-49: The vault stanza comment reads as a pending TODO ("Update vault/roles.yaml job_id to 'woodpecker-server' if…") but that update was already done in this same PR. Stale comment; no correctness impact.Verdict
APPROVE — hvault_ensure_kv_v2 correctly extracted and behaviorally equivalent; roles.yaml job_id aligned with actual Nomad job name; vault-seed-woodpecker.sh idempotent with correct key-merge; template stanza paths correct for KV v2
Reviewed at
28ed3dd| AGENTS.mdAI Review: APPROVE — hvault_ensure_kv_v2 correctly extracted and behaviorally equivalent; roles.yaml job_id aligned with actual Nomad job name; vault-seed-woodpecker.sh idempotent with correct key-merge; template stanza paths correct for KV v2