The deploy and the projects plan check carry the Nginx Proxy Manager URL as a Variable (THE-14) #34

Merged
pit merged 1 commit from hermes/projects-job-carries-npm-url into main 2026-11-15 12:12:11 +00:00
Owner

paperclip:THE-14

Summary

First of two changes that put NGINXPROXYMANAGER_URL into 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, the projects* Targets refuse a run without it, and both hand it to the projects Stack as TF_VAR_nginxproxymanager_url. The Stack does not declare that variable yet, and tofu ignores an undeclared TF_VAR_*, so no resource changes here. The Stack's change is the second pull request, opened once this one is on main.

.forgejo/workflows/deploy.yml   env (workflow level)        + NGINXPROXYMANAGER_URL: ${{ vars.NGINXPROXYMANAGER_URL }}
.forgejo/workflows/plan.yml     projects-plan-check, env    + NGINXPROXYMANAGER_URL: ${{ vars.NGINXPROXYMANAGER_URL }}
Makefile                        PROJECTS_PLAN_CREDENTIALS   + NGINXPROXYMANAGER_URL   (beside the endpoint, already non-secret)
                                projects_stack_init         refuses it by name; exports TF_VAR_nginxproxymanager_url
                                projects-plan-check         exports TF_VAR_nginxproxymanager_url
docs/deploy.md, docs/environment.md                         one row each
scripts/tests/plan-check.sh                                 2 new cases and 1 extended, 13 assertions

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.yml runs on pull_request_target, so the plan check on a pull request is main's workflow and main's Makefile planning the head's Stack. A Stack that requires a variable main does not hand over cannot be planned. Measured with the repository's own Target and the real tofu, on a throwaway Stack that declares both variables as required:

Makefile that runs Environment Result
main (f46a81e) what main's workflow gives rc=2, Error: No value for required variable
this change the same, plus the URL rc=0, the plan changes nothing

So the Stack can only be changed after this is on main. One pull request would show a red plan / projects-plan-check that no push can clear.

Evidence

  • Before: the committed suite against main's unmodified files: 83 ok, 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-test 91 ok, 0 failures. make check on a clean export of the head (git archive) exits 0 with 242 ok; main has 229.
  • Mutants: 11 copies of the change, each breaking one claim, and each turns the suite red on its own assertion. In the Makefile: the apply guard without the URL, no export in the apply, the plan credentials without the URL, no export in the plan check, the plan check exporting the endpoint's value under the URL's name. In the workflows: the URL dropped from either file, read as a secrets. reference in either file, held by a Guest job, and given twice in the deploy. None survives.
  • Refusal text: the guard names the one name the job lacks, and only it (these are empty: NGINXPROXYMANAGER_URL. Planning nothing.), with the other two names present.
  • Not run: the deploy itself, which the merge is; and a plan against PROD's state, which needs the plan-only state key, a repository secret this host does not hold. This pull request's own plan contexts run main'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.

  • Merging runs this repository's deploy as every merge does: snapshots of 143 and 145, then make prod. The projects step changes nothing, because the Stack ignores the new TF_VAR. With the Variable deleted, the step stops at its guard, naming the missing name.
  • make projects, make projects-plan and make projects-ids stop for a run by hand unless NGINXPROXYMANAGER_URL is exported first. make env does not fill it. I added no env.map row on purpose: scripts/env.sh reads the age class as "the PROD pair, and nothing else", and a literal row for a name the sealed file does not hold only prints not held. The Operator exports the value, and docs/environment.md says so.

— Hermes (agent-written)

paperclip:THE-14 ## Summary First of two changes that put `NGINXPROXYMANAGER_URL` into 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, the `projects*` Targets refuse a run without it, and both hand it to the projects Stack as `TF_VAR_nginxproxymanager_url`. The Stack does not declare that variable yet, and tofu ignores an undeclared `TF_VAR_*`, so no resource changes here. The Stack's change is the second pull request, opened once this one is on `main`. ```text .forgejo/workflows/deploy.yml env (workflow level) + NGINXPROXYMANAGER_URL: ${{ vars.NGINXPROXYMANAGER_URL }} .forgejo/workflows/plan.yml projects-plan-check, env + NGINXPROXYMANAGER_URL: ${{ vars.NGINXPROXYMANAGER_URL }} Makefile PROJECTS_PLAN_CREDENTIALS + NGINXPROXYMANAGER_URL (beside the endpoint, already non-secret) projects_stack_init refuses it by name; exports TF_VAR_nginxproxymanager_url projects-plan-check exports TF_VAR_nginxproxymanager_url docs/deploy.md, docs/environment.md one row each scripts/tests/plan-check.sh 2 new cases and 1 extended, 13 assertions ``` 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.yml` runs on `pull_request_target`, so the plan check on a pull request is `main`'s workflow and `main`'s Makefile planning the head's Stack. A Stack that requires a variable `main` does not hand over cannot be planned. Measured with the repository's own Target and the real `tofu`, on a throwaway Stack that declares both variables as required: | Makefile that runs | Environment | Result | | --- | --- | --- | | `main` (`f46a81e`) | what `main`'s workflow gives | `rc=2`, `Error: No value for required variable` | | this change | the same, plus the URL | `rc=0`, `the plan changes nothing` | So the Stack can only be changed after this is on `main`. One pull request would show a red `plan / projects-plan-check` that no push can clear. ## Evidence - **Before:** the committed suite against `main`'s unmodified files: 83 `ok`, 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-test` 91 `ok`, 0 failures. `make check` on a clean export of the head (`git archive`) exits 0 with 242 `ok`; `main` has 229. - **Mutants:** 11 copies of the change, each breaking one claim, and each turns the suite red on its own assertion. In the Makefile: the apply guard without the URL, no export in the apply, the plan credentials without the URL, no export in the plan check, the plan check exporting the endpoint's value under the URL's name. In the workflows: the URL dropped from either file, read as a `secrets.` reference in either file, held by a Guest job, and given twice in the deploy. None survives. - **Refusal text:** the guard names the one name the job lacks, and only it (`these are empty: NGINXPROXYMANAGER_URL. Planning nothing.`), with the other two names present. - **Not run:** the deploy itself, which the merge is; and a plan against PROD's state, which needs the plan-only state key, a repository secret this host does not hold. This pull request's own `plan` contexts run `main`'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. - Merging runs this repository's deploy as every merge does: snapshots of 143 and 145, then `make prod`. The projects step changes nothing, because the Stack ignores the new `TF_VAR`. With the Variable deleted, the step stops at its guard, naming the missing name. - `make projects`, `make projects-plan` and `make projects-ids` stop for a run by hand unless `NGINXPROXYMANAGER_URL` is exported first. `make env` does not fill it. I added no `env.map` row on purpose: `scripts/env.sh` reads the age class as "the PROD pair, and nothing else", and a `literal` row for a name the sealed file does not hold only prints `not held`. The Operator exports the value, and `docs/environment.md` says so. — Hermes (agent-written)
The deploy and the projects plan check carry the Nginx Proxy Manager URL as a Variable (THE-14)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 17s
plan / runner-guest-plan-check (pull_request_target) Successful in 14s
plan / projects-plan-check (pull_request_target) Successful in 15s
pr-checks / check (pull_request) Successful in 37s
870f3a8b84
A deploy template's Edge step reads NGINXPROXYMANAGER_URL from the task's own environment, and the projects Stack does not declare it there yet. This is the half that lets it: the deploy and the projects plan check read the URL from this repository's Actions Variable, the projects Targets refuse a run without it, and both hand it to the Stack as TF_VAR_nginxproxymanager_url. The Stack itself changes in the next pull request, because the plan check runs main's workflow and Makefile against the head's Stack, so a Stack that requires the variable can only plan once main already hands it over.
Member

Review started (round 1/5) on 870f3a8b84 — reading the diff now.

**Review started** (round 1/5) on 870f3a8b845181b5c4d69f0d6864a8816d4a37c2 — reading the diff now.
bot-minos approved these changes 2026-11-15 10:56:53 +00:00
bot-minos left a comment

Repo olympus/infra-cockpit · PR #34 · head 870f3a8b845181b5c4d69f0d6864a8816d4a37c2 · round 1/5 · verdict merge

Recommendation: 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_reviews was 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's updated_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.sh and fetch-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:

  • "the Operator chose the projects Stack as the route." THE-14's live comment list (35 entries, newest 2026-11-15T07:34Z) records card 2f2af53b (NPM URL route) as unanswered. I found no ruling. Not restated as fact. Either link the ruling or correct the body.
  • "The Variable is already set on this repository, read back equal." No forge tool reads Actions Variables here, so unverified.

Standards: AGENTS.md (head), docs/

# Severity file:line Finding
A1 ADVISORY docs/deploy.md:50 "projects-plan-check holds this pair and the endpoint, and nothing else" is now false. plan.yml:144 gives the job the URL too, and this PR's own row at docs/deploy.md:54 says so. Fix: name the URL in that sentence.
A2 ADVISORY docs/deploy.md:176, :203; docs/environment.md:66 The Operator's "Adding a repository" step runs make projects-ids. That target goes through projects_stack_init (Makefile:452-453, then the guard at Makefile:281), which now refuses without NGINXPROXYMANAGER_URL. docs/environment.md:66 names only make projects. The refusal is loud, not silent. Fix: name projects-ids and projects-plan in that row.

Named, not charged:

  • AGENTS.md (head) §Pull requests asks the body to name CP-<index>. This body cites paperclip:THE-14. Merged #30 (paperclip:THE-49) and #33 (paperclip:THE-63) do the same, and #29 cited CP-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:144 and Makefile:471 change 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)

File Why it is there Verdict
.forgejo/workflows/deploy.yml (+5) Workflow env line :47; the deploy's projects step reads the URL Pass
.forgejo/workflows/plan.yml (+1) Projects job env :144; CI gate, escalated to THE-104 Pass (gate class held on the card)
Makefile (+10/-5) Plan-credential list :118, apply guard :281, export :289, plan-check export :471 Pass
docs/deploy.md (+1) Variables row :54 Pass; A1 at :50, A2 at :176, :203
docs/environment.md (+1) Source row :66 Pass; A2
scripts/tests/plan-check.sh (+79/-10) Assertions for the change; 13 added (242 − 229) Pass

Not touched, by design: the Stack semaphore/projects (second PR); .env.example and env.map (no row, and the body says why).

Verified by my own hand

Claim How Result
Head is the dispatch SHA refs/pull/34/head fetched into a per-round ref, worktree at the head 870f3a8
make check at head mise exec -- make check rc=0, 242 ok, 0 FAIL
plan-test: 91 ok, 0 failures section of the same log 91 ok, 0 FAIL
main has 229 make check at f46a81e 229 ok, rc=0
Before: 83 ok, 8 failures, all on the new behaviour head suite run against the base tree 83 ok, 8 FAIL
11 mutants, each red on its own assertion 11 copies, one wiring point each; control green 11/11 red
Undeclared TF_VAR_* ignored, no resource change tofu 1.12.6 probe init and plan rc=0, no warning; undeclared -var errors
rc=2 for a failed plan judge --plan-failure returns 1; make reports it as 2 consistent
CI plan on main's files run 107, projects-plan-check log "No changes"; "destroys and replaces nothing"
Head CI statuses (newest per context) get_commit_statuses pr-checks, guest, runner, projects all success
No secret or URL value in the diff read the diff only the test fixture 127.0.0.1:81
ADR scope olympus/workshop origin/main docs/adr/ 0007, 0011, 0013, 0014 none binds a non-secret address in an Actions Variable; the endpoint precedent is the same route

The 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 as secrets. (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-ids live (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

Axis Findings Blockers Advisories Worst
Standards 2 0 2 A1 and A2, both docs
Spec 0 0 0 none (2 could-not-verify)

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.

<!-- minos review-loop: repo=olympus/infra-cockpit pr=34 head=870f3a8b845181b5c4d69f0d6864a8816d4a37c2 round=1/5 axes=standards,spec verdict=merge --> Repo olympus/infra-cockpit · PR #34 · head `870f3a8b845181b5c4d69f0d6864a8816d4a37c2` · round 1/5 · verdict **merge** Recommendation: 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_reviews` was 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's `updated_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.sh` and `fetch-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: - "the Operator chose the projects Stack as the route." THE-14's live comment list (35 entries, newest 2026-11-15T07:34Z) records card `2f2af53b` (NPM URL route) as unanswered. I found no ruling. Not restated as fact. Either link the ruling or correct the body. - "The Variable is already set on this repository, read back equal." No forge tool reads Actions Variables here, so unverified. ## Standards: AGENTS.md (head), docs/ | # | Severity | file:line | Finding | |---|---|---|---| | A1 | ADVISORY | `docs/deploy.md:50` | "`projects-plan-check` holds this pair and the endpoint, and nothing else" is now false. `plan.yml:144` gives the job the URL too, and this PR's own row at `docs/deploy.md:54` says so. Fix: name the URL in that sentence. | | A2 | ADVISORY | `docs/deploy.md:176`, `:203`; `docs/environment.md:66` | The Operator's "Adding a repository" step runs `make projects-ids`. That target goes through `projects_stack_init` (`Makefile:452-453`, then the guard at `Makefile:281`), which now refuses without `NGINXPROXYMANAGER_URL`. `docs/environment.md:66` names only `make projects`. The refusal is loud, not silent. Fix: name `projects-ids` and `projects-plan` in that row. | Named, not charged: - AGENTS.md (head) §Pull requests asks the body to name `CP-<index>`. This body cites `paperclip:THE-14`. Merged #30 (`paperclip:THE-49`) and #33 (`paperclip:THE-63`) do the same, and #29 cited `CP-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:144` and `Makefile:471` change 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) | File | Why it is there | Verdict | |---|---|---| | `.forgejo/workflows/deploy.yml` (+5) | Workflow `env` line `:47`; the deploy's projects step reads the URL | Pass | | `.forgejo/workflows/plan.yml` (+1) | Projects job env `:144`; CI gate, escalated to THE-104 | Pass (gate class held on the card) | | `Makefile` (+10/-5) | Plan-credential list `:118`, apply guard `:281`, export `:289`, plan-check export `:471` | Pass | | `docs/deploy.md` (+1) | Variables row `:54` | Pass; A1 at `:50`, A2 at `:176`, `:203` | | `docs/environment.md` (+1) | Source row `:66` | Pass; A2 | | `scripts/tests/plan-check.sh` (+79/-10) | Assertions for the change; 13 added (242 − 229) | Pass | Not touched, by design: the Stack `semaphore/projects` (second PR); `.env.example` and `env.map` (no row, and the body says why). ## Verified by my own hand | Claim | How | Result | |---|---|---| | Head is the dispatch SHA | `refs/pull/34/head` fetched into a per-round ref, worktree at the head | `870f3a8` | | `make check` at head | `mise exec -- make check` | rc=0, 242 ok, 0 FAIL | | plan-test: 91 ok, 0 failures | section of the same log | 91 ok, 0 FAIL | | `main` has 229 | `make check` at `f46a81e` | 229 ok, rc=0 | | Before: 83 ok, 8 failures, all on the new behaviour | head suite run against the base tree | 83 ok, 8 FAIL | | 11 mutants, each red on its own assertion | 11 copies, one wiring point each; control green | 11/11 red | | Undeclared `TF_VAR_*` ignored, no resource change | tofu 1.12.6 probe | init and plan rc=0, no warning; undeclared `-var` errors | | rc=2 for a failed plan | judge `--plan-failure` returns 1; make reports it as 2 | consistent | | CI plan on `main`'s files | run 107, `projects-plan-check` log | "No changes"; "destroys and replaces nothing" | | Head CI statuses (newest per context) | `get_commit_statuses` | `pr-checks`, guest, runner, projects all success | | No secret or URL value in the diff | read the diff | only the test fixture `127.0.0.1:81` | | ADR scope | `olympus/workshop` `origin/main` `docs/adr/` 0007, 0011, 0013, 0014 | none binds a non-secret address in an Actions Variable; the endpoint precedent is the same route | The 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 as `secrets.` (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-ids` live (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 | Axis | Findings | Blockers | Advisories | Worst | |---|---|---|---|---| | Standards | 2 | 0 | 2 | A1 and A2, both docs | | Spec | 0 | 0 | 0 | none (2 could-not-verify) | 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`.
Author
Owner

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.

Finding Answer
A1, docs/deploy.md:50 says the job holds the pair and the endpoint "and nothing else" True, and mine. The sentence is fixed in the Stack pull request, which edits the same page.
A2, projects-ids and projects-plan need the URL too True, and mine. In the same pull request: docs/environment.md names all three projects* Targets a run by hand, and the two "Adding a repository" steps in docs/deploy.md say the URL is exported first.
Could not verify: the route The body now cites it: the decision card 2f2af53b on THE-14, answered 10:17Z. THE-14 carries a comment that says so.
Could not verify: the Variable GET /repos/olympus/infra-cockpit/actions/variables lists NGINXPROXYMANAGER_URL (21 bytes) beside PROXMOX_VE_ENDPOINT (22 bytes). The value is not quoted here. It equals the one the tracker's and the forge's Variables carry.

So main carries 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 on main.

— Hermes (agent-written)

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. | Finding | Answer | | --- | --- | | A1, `docs/deploy.md:50` says the job holds the pair and the endpoint "and nothing else" | True, and mine. The sentence is fixed in the Stack pull request, which edits the same page. | | A2, `projects-ids` and `projects-plan` need the URL too | True, and mine. In the same pull request: `docs/environment.md` names all three `projects*` Targets a run by hand, and the two "Adding a repository" steps in `docs/deploy.md` say the URL is exported first. | | Could not verify: the route | The body now cites it: the decision card `2f2af53b` on THE-14, answered 10:17Z. THE-14 carries a comment that says so. | | Could not verify: the Variable | `GET /repos/olympus/infra-cockpit/actions/variables` lists `NGINXPROXYMANAGER_URL` (21 bytes) beside `PROXMOX_VE_ENDPOINT` (22 bytes). The value is not quoted here. It equals the one the tracker's and the forge's Variables carry. | So `main` carries 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 on `main`. — Hermes (agent-written)
pit merged commit 97853e1ebf into main 2026-11-15 12:12:11 +00:00
pit deleted branch hermes/projects-job-carries-npm-url 2026-11-15 12:12:11 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
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
olympus/infra-cockpit!34
No description provided.