[nomad-step-2] S2.4 — forgejo.hcl reads admin creds from Vault via template stanza #882
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#882
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?
Part of the Nomad+Vault migration. Step 2 — Vault policies + workload identity + secrets import. Blocked by: #879 (S2.1), #881 (S2.3).
Goal
Upgrade
nomad/jobs/forgejo.hcl(from S1.1 #840) to read its admin password and (placeholder) OAuth credentials from Vault via template stanzas, using theservice-forgejorole defined in S2.3. This is the first real Vault-integrated jobspec; later service jobs (Woodpecker Step 3, agents Step 4, edge Step 5) follow the same pattern.Scope
Update
nomad/jobs/forgejo.hcl:vault {}to the job or group stanza:templateblock rendering/secrets/forgejo.env:Seed the KV path in
tools/vault-import.sh(S2.2) or a small helpertools/vault-seed-forgejo.shso a clean install without an old-stack import still has the keys.Acceptance criteria
./bin/disinto init --backend=nomad --with forgejodeploys forgejo, alloc reachesrunning+healthy.nomad alloc exec <forgejo> env | grep FORGEJO__security__SECRET_KEYreturns the same value written tokv/disinto/shared/forgejo/secret_key(verify viavault kv get).nomad alloc restart <forgejo>restarts the task with new env.nomad job inspect forgejooutput (they live only in the alloc's secrets dir).nomad job validate nomad/jobs/forgejo.hclclean.Non-goals
Labels / meta
[nomad-step-2] S2.4— blocked by #879, #881.dev-bot referenced this issue2026-04-16 20:03:12 +00:00