[nomad-step-3] S3-fix-4 — KV key-name mismatch: wp_forgejo_client vs forgejo_client #954
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#954
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Step 3 verification: WP server template reads
forgejo_client/forgejo_secretfrom KV but the seed scripts writewp_forgejo_client/wp_forgejo_secret. Currently non-fatal because WP falls back, but will break when inline env is removed.Root cause
nomad/jobs/woodpecker-server.hcltemplate:But
lib/init/nomad/wp-oauth-register.shwrites to KV with keys:And
tools/vault-import.shimports from.envas:Fix — pick one side
Option A (preferred): change
wp-oauth-register.sh+vault-import.shto writeforgejo_client/forgejo_secret(matching the template). Shorter names, consistent withagent_secret.Option B: change
woodpecker-server.hcltemplate to readwp_forgejo_client/wp_forgejo_secret. Matches the source env var names but adds thewp_prefix inconsistency.Prefer A. Two files to change:
lib/init/nomad/wp-oauth-register.sh— where it callsvault kv put ... wp_forgejo_client=...→forgejo_client=...tools/vault-import.sh— the WP key mapping sectionAcceptance criteria
vault kv get kv/disinto/shared/woodpeckershows keys:agent_secret,forgejo_client,forgejo_secret(nowp_prefix).nomad alloc exec <wp> env | grep FORGEJO).vault-import.sh --dry-runshows the correct destination key names.Labels / meta
backlog+bug-report.