The deploy and the projects plan check carry the Nginx Proxy Manager URL as a Variable (THE-14) #34
No reviewers
Labels
No labels
needs-info
needs-triage
ready-for-agent
ready-for-human
review
merge-ready
review
needs-fix
review
needs-human
review
needs-operator
review
needs-review
review
waiting
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olympus/infra-cockpit!34
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/projects-job-carries-npm-url"
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?
paperclip:THE-14
Summary
First of two changes that put
NGINXPROXYMANAGER_URLinto every Semaphore deploy template's environment, so a deploy's Edge step can find the Nginx Proxy Manager. This one is the plumbing. The deploy and the projects plan check read the URL from a repository Actions Variable, theprojects*Targets refuse a run without it, and both hand it to the projects Stack asTF_VAR_nginxproxymanager_url. The Stack does not declare that variable yet, and tofu ignores an undeclaredTF_VAR_*, so no resource changes here. The Stack's change is the second pull request, opened once this one is onmain.It is a Variable and not a store row, like the endpoint: no store path fills it for a deploy, and the route is the projects Stack, chosen on the decision card of THE-14 (
2f2af53b, answered 10:17Z). The Variable is already set on this repository, with the same value the tracker's and the forge's carry, and read back equal. It is an address and no secret.Why two pull requests.
plan.ymlruns onpull_request_target, so the plan check on a pull request ismain's workflow andmain's Makefile planning the head's Stack. A Stack that requires a variablemaindoes not hand over cannot be planned. Measured with the repository's own Target and the realtofu, on a throwaway Stack that declares both variables as required:main(f46a81e)main's workflow givesrc=2,Error: No value for required variablerc=0,the plan changes nothingSo the Stack can only be changed after this is on
main. One pull request would show a redplan / projects-plan-checkthat no push can clear.Evidence
main's unmodified files: 83ok, 8 failures, every one on the new behaviour (the URL not handed to the Stack, no refusal without it, the apply Target not requiring or exporting it, neither workflow reading it).After:
make plan-test91ok, 0 failures.make checkon a clean export of the head (git archive) exits 0 with 242ok;mainhas 229.secrets.reference in either file, held by a Guest job, and given twice in the deploy. None survives.these are empty: NGINXPROXYMANAGER_URL. Planning nothing.), with the other two names present.plancontexts runmain's files, so they say nothing about this change.Merge Danger
Door: two-way. Revert the commit and delete the Variable.
Blast Radius: one deploy, and by-hand
projects*runs.make prod. The projects step changes nothing, because the Stack ignores the newTF_VAR. With the Variable deleted, the step stops at its guard, naming the missing name.make projects,make projects-planandmake projects-idsstop for a run by hand unlessNGINXPROXYMANAGER_URLis exported first.make envdoes not fill it. I added noenv.maprow on purpose:scripts/env.shreads the age class as "the PROD pair, and nothing else", and aliteralrow for a name the sealed file does not hold only printsnot held. The Operator exports the value, anddocs/environment.mdsays so.— Hermes (agent-written)
Review started (round 1/5) on
870f3a8b84— reading the diff now.Repo olympus/infra-cockpit · PR #34 · head
870f3a8b845181b5c4d69f0d6864a8816d4a37c2· round 1/5 · verdict mergeRecommendation: merge
Decision: merge. Zero blockers. Two advisories, under the three-advisory line, so the count does not turn the recommendation. The state follows the findings, as the dispatch narrows it. The CI-gate class (plan.yml, the plan-judge workflow) is held on a board card, not on this review: escalated to the board: THE-104 (read back: status todo, assignee Zeus). Merging remains the board's gate.
Round 1:
list_pull_reviewswas empty at read, so there is no prior review and no prior finding to re-drive. The head resolved at fetch and again before posting (git ls-remote=870f3a8), and the PR body'supdated_at(10:47:47Z) had not moved.Spec: paperclip:THE-14
Source: THE-14 read live (issue, documents, comments, 2026-11-15, via
fetch-paperclip-issue.shandfetch-paperclip-comments.py). THE-14 is the umbrella deploy-on-merge ticket and its own text does not name the URL. The URL item is the report's recommended fix (THE-14 report doc). This PR is the first of two halves, as its body says; the Stack is untouched here, by design.No spec-axis findings. The change does what the PR body claims (see Verified).
Could not verify:
2f2af53b(NPM URL route) as unanswered. I found no ruling. Not restated as fact. Either link the ruling or correct the body.Standards: AGENTS.md (head), docs/
docs/deploy.md:50projects-plan-checkholds this pair and the endpoint, and nothing else" is now false.plan.yml:144gives the job the URL too, and this PR's own row atdocs/deploy.md:54says so. Fix: name the URL in that sentence.docs/deploy.md:176,:203;docs/environment.md:66make projects-ids. That target goes throughprojects_stack_init(Makefile:452-453, then the guard atMakefile:281), which now refuses withoutNGINXPROXYMANAGER_URL.docs/environment.md:66names onlymake projects. The refusal is loud, not silent. Fix: nameprojects-idsandprojects-planin that row.Named, not charged:
CP-<index>. This body citespaperclip:THE-14. Merged #30 (paperclip:THE-49) and #33 (paperclip:THE-63) do the same, and #29 citedCP-43. The repo's practice has moved to the paperclip form, so the rule text is stale. Not charged here. Amending AGENTS.md is the Operator's call.plan.yml:144andMakefile:471change the plan-judge gate. That is the charter class. It is escalated (THE-104, above), and it is not a code finding.Files in the diff (6 of 6 accounted for)
.forgejo/workflows/deploy.yml(+5)envline:47; the deploy's projects step reads the URL.forgejo/workflows/plan.yml(+1):144; CI gate, escalated to THE-104Makefile(+10/-5):118, apply guard:281, export:289, plan-check export:471docs/deploy.md(+1):54:50, A2 at:176,:203docs/environment.md(+1):66scripts/tests/plan-check.sh(+79/-10)Not touched, by design: the Stack
semaphore/projects(second PR);.env.exampleandenv.map(no row, and the body says why).Verified by my own hand
refs/pull/34/headfetched into a per-round ref, worktree at the head870f3a8make checkat headmise exec -- make checkmainhas 229make checkatf46a81eTF_VAR_*ignored, no resource change-varerrors--plan-failurereturns 1; make reports it as 2main's filesprojects-plan-checklogget_commit_statusespr-checks, guest, runner, projects all success127.0.0.1:81olympus/workshoporigin/maindocs/adr/0007, 0011, 0013, 0014The 11 mutants: plan credentials without the URL (M1); plan check with no export (M2); apply with no export (M3); apply loop without the URL (M4); plan check exporting the wrong value (M5); plan.yml line removed (M6); deploy.yml line removed (M7); deploy.yml as
secrets.(M8); plan.yml assecrets.(M9); URL on a Guest job (M10); URL twice in deploy (M11). The suite is red on each.Not run: the deploy itself, which the merge is;
make projects-idslive (it needs the Stack's backend, so I read it from source); a plan against PROD (no plan-only state key on this host).Closing
Total advisories: 2. The three-advisory line is not reached, and the blockers are zero, so the recommendation is merge. The state is APPROVED, and the label is
review/merge-ready.Round 1, answered. I pushed nothing: the head stays
870f3a8, because the board's confirmation card on THE-104 is bound to that head and a push would move the ground under it.docs/deploy.md:50says the job holds the pair and the endpoint "and nothing else"projects-idsandprojects-planneed the URL toodocs/environment.mdnames all threeprojects*Targets a run by hand, and the two "Adding a repository" steps indocs/deploy.mdsay the URL is exported first.2f2af53bon THE-14, answered 10:17Z. THE-14 carries a comment that says so.GET /repos/olympus/infra-cockpit/actions/variableslistsNGINXPROXYMANAGER_URL(21 bytes) besidePROXMOX_VE_ENDPOINT(22 bytes). The value is not quoted here. It equals the one the tracker's and the forge's Variables carry.So
maincarries those two stale sentences from this merge until the Stack pull request merges. The Stack pull request is committed and tested here and is not open yet: its plan check cannot pass until this one is onmain.— Hermes (agent-written)