The projects Stack declares the Nginx Proxy Manager URL into every deploy template's environment (THE-14) #35

Merged
pit merged 3 commits from hermes/projects-stack-declares-npm-url into main 2026-11-15 14:08:29 +00:00
Owner

paperclip:THE-14

Summary

Second 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. The first, #34, is on main and its deploy went green: the deploy and the projects plan check already read the URL from a repository Variable and hand it to the projects Stack as TF_VAR_nginxproxymanager_url. This change makes the Stack declare that variable and write it into the five deploy environments. It could not ride in #34: the plan check on a pull request is main's workflow and main's Makefile planning the head's Stack, so a Stack that requires the URL could only be planned once main handed it over (the measurement is in #34's body). The Operator chose this route, the projects Stack, on card 2f2af53b on THE-14, answered at 10:17:58Z.

semaphore/projects/variables.tf   + variable "nginxproxymanager_url"   required, no default; a base URL: http(s)://host[:port] and nothing after it
semaphore/projects/projects.tf    environment, every repository        + NGINXPROXYMANAGER_URL = var.nginxproxymanager_url
docs/deploy.md, docs/environment.md                                    the plan-check row, the environment row, the `projects-ids` and "Adding a repository" steps
scripts/tests/plan-check.sh       the sandbox carries the real Stack files; 2 new cases, 25 new assertions

Every repository's environment carries both endpoints, as it already carried the Proxmox one: a repository whose deploy has no Edge ignores the URL, and a new repository stays one line in variables.tf. The variable has no default, like the endpoint, so a plan made without the URL cannot be made. It is validated as a base URL because the nginxproxymanager provider documents its url as a protocol and a port with no path. The plan prints the value into the CI log, which is public, so the rule also refuses credentials (user:pw@), a query, a fragment and whitespace. Review round 1 found that the first version, ^https?://[^/]+$, accepted all four; the loop's fixer closed it in f606f5e and 4fb84fb, and the rule now reads ^https?://[^/?#@[:space:]]+$. The reviewer's optional advisory is left as it is: an empty port (http://npm.lan:) still plans.

It also carries the two documentation advisories from #34's review: docs/deploy.md said the projects plan check holds the key pair and the endpoint "and nothing else", and projects-plan and projects-ids need the URL exported as well. #34's head stayed untouched on purpose, because the board's confirmation card named it.

On the live system the merge gives each of the five semaphoreui_project_environment.deploy objects one more key, in place. This pull request's plan / projects-plan-check plans it against PROD's state and reports Plan: 0 to add, 5 to change, 0 to destroy. (run 112). The provider's schema agrees (semaphoreui/semaphore 0.3.10: only project_id forces a replacement).

Evidence

main (97853e1) this head (4fb84fb)
make check, clean git archive export 242 ok 267 ok, 0 FAIL, no Broken pipe
this head's plan suite 98 ok, 18 FAIL against main's Stack files 116 ok, 0 FAIL

main's tree is #34's head byte for byte (git diff --stat between them is empty), so 242 is the figure the review measured. The 18 failures are all the new behaviour: the variable is not declared, the environment does not carry it, and eight malformed values (127.0.0.1:81, ftp://127.0.0.1:81, a trailing /, a path, user:pw@, a query, a fragment, a space in the host) are accepted, each of them failing twice (the refusal, and the Stack's own sentence).

  • Mutants: 25 copies of the change, each breaking one claim, and each turns the suite red on an assertion that names it; none survives and none failed to apply. They are #34's 11, run again against this head, and 14 for the Stack: the validation accepting a path, a query, a fragment, credentials, whitespace, a bare host:port, anything, or demanding https; the new variable or the endpoint given a default; the environment without the URL, wired to the wrong variable, commented out, or without the endpoint.

  • The real Stack, planned offline the way the plan job plans it (-refresh=false, an empty state so every object is a create, a placeholder Semaphore token):

    Input Result
    a base URL Plan: 40 to add, 0 to change, 0 to destroy (5 repositories, 8 objects each); all five environments carry NGINXPROXYMANAGER_URL and PROXMOX_VE_ENDPOINT
    no URL Error: No value for required variable
    a URL with a path Error: Invalid value for variable, with the Stack's own sentence
  • The rule, probed with the real tofu on this head's variables.tf, one plan per value, in a module that holds nothing else:

    Value Result
    http://127.0.0.1:81, https://npm.lan, http://npm.lan:8081, https://[::1]:81 planned
    127.0.0.1:81, ftp://127.0.0.1:81, http://, http://127.0.0.1:81/, http://127.0.0.1:81/api refused
    http://user:pw@npm.lan:81, http://npm.lan?x=1, http://npm.lan#frag, http://npm lan refused (planned under the first version)
    http://npm.lan:, http://:81 planned: an empty port and an empty host, which carry no secret, are left as they were
  • The live value passes the rule: the Variable on this repository is 21 bytes and matches ^https?://[^/?#@[:space:]]+$, checked locally with the value read and not printed.

  • The live plan (plan / projects-plan-check, run 112 at this head, the same as run 110 at the first): main's workflow, which hands over the URL, plans this Stack against PROD's state with the plan-only key. It reports the five semaphoreui_project_environment.deploy objects, one per repository, as will be updated in-place, each gaining only "NGINXPROXYMANAGER_URL" while its other element stays; then Plan: 0 to add, 5 to change, 0 to destroy. and plan-check: the plan destroys and replaces nothing. So the update is in place, as the schema says. That context is not required by the branch protection; it is green.

  • Not observed: the deploy itself, which the merge is.

Merge Danger

Door: two-way. Revert the commit: the next deploy removes the key again, in place, and the Variable stays harmless.

Blast Radius: one deploy, and the five deploy templates' environments.

  • Merging runs this repository's deploy as every merge does. The one before it (#34, run 109) went green in 4m21s: make semaphore-idle found no task running and waited 0 s, snapshots of 143 and 145, both Guest applies 0 added, 0 changed, 0 destroyed, the service layer, the projects Stack, and verify passed. It restarted nothing: no handler ran, and the only changed tasks were the apt cache refresh.
  • The projects step updates five environments in place and changes nothing else, as the plan context above reads. The deploy refuses a replace or a destroy, so a plan that did more than that stops before an apply.
  • What it unblocks: the next tracker deploy gets the URL in its task environment, so its edge step can run through Semaphore for the first time (the forge's will too, once it deploys on merge). That step has its own plan judge and its own snapshot, and it belongs to that merge, not to this one.

— Hermes (agent-written)

paperclip:THE-14 ## Summary Second 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. The first, #34, is on `main` and its deploy went green: the deploy and the projects plan check already read the URL from a repository Variable and hand it to the projects Stack as `TF_VAR_nginxproxymanager_url`. This change makes the Stack declare that variable and write it into the five `deploy` environments. It could not ride in #34: the plan check on a pull request is `main`'s workflow and `main`'s Makefile planning the head's Stack, so a Stack that requires the URL could only be planned once `main` handed it over (the measurement is in #34's body). The Operator chose this route, the projects Stack, on card `2f2af53b` on THE-14, answered at 10:17:58Z. ```text semaphore/projects/variables.tf + variable "nginxproxymanager_url" required, no default; a base URL: http(s)://host[:port] and nothing after it semaphore/projects/projects.tf environment, every repository + NGINXPROXYMANAGER_URL = var.nginxproxymanager_url docs/deploy.md, docs/environment.md the plan-check row, the environment row, the `projects-ids` and "Adding a repository" steps scripts/tests/plan-check.sh the sandbox carries the real Stack files; 2 new cases, 25 new assertions ``` Every repository's environment carries both endpoints, as it already carried the Proxmox one: a repository whose deploy has no Edge ignores the URL, and a new repository stays one line in `variables.tf`. The variable has no default, like the endpoint, so a plan made without the URL cannot be made. It is validated as a base URL because the `nginxproxymanager` provider documents its `url` as a protocol and a port with no path. The plan prints the value into the CI log, which is public, so the rule also refuses credentials (`user:pw@`), a query, a fragment and whitespace. Review round 1 found that the first version, `^https?://[^/]+$`, accepted all four; the loop's fixer closed it in `f606f5e` and `4fb84fb`, and the rule now reads `^https?://[^/?#@[:space:]]+$`. The reviewer's optional advisory is left as it is: an empty port (`http://npm.lan:`) still plans. It also carries the two documentation advisories from #34's review: `docs/deploy.md` said the projects plan check holds the key pair and the endpoint "and nothing else", and `projects-plan` and `projects-ids` need the URL exported as well. #34's head stayed untouched on purpose, because the board's confirmation card named it. On the live system the merge gives each of the five `semaphoreui_project_environment.deploy` objects one more key, in place. This pull request's `plan / projects-plan-check` plans it against PROD's state and reports `Plan: 0 to add, 5 to change, 0 to destroy.` (run 112). The provider's schema agrees (`semaphoreui/semaphore` 0.3.10: only `project_id` forces a replacement). ## Evidence | | `main` (`97853e1`) | this head (`4fb84fb`) | | --- | --- | --- | | `make check`, clean `git archive` export | 242 `ok` | 267 `ok`, 0 FAIL, no `Broken pipe` | | this head's plan suite | 98 `ok`, 18 FAIL against `main`'s Stack files | 116 `ok`, 0 FAIL | `main`'s tree is #34's head byte for byte (`git diff --stat` between them is empty), so 242 is the figure the review measured. The 18 failures are all the new behaviour: the variable is not declared, the environment does not carry it, and eight malformed values (`127.0.0.1:81`, `ftp://127.0.0.1:81`, a trailing `/`, a path, `user:pw@`, a query, a fragment, a space in the host) are accepted, each of them failing twice (the refusal, and the Stack's own sentence). - **Mutants:** 25 copies of the change, each breaking one claim, and each turns the suite red on an assertion that names it; none survives and none failed to apply. They are #34's 11, run again against this head, and 14 for the Stack: the validation accepting a path, a query, a fragment, credentials, whitespace, a bare `host:port`, anything, or demanding `https`; the new variable or the endpoint given a default; the environment without the URL, wired to the wrong variable, commented out, or without the endpoint. - **The real Stack, planned offline** the way the plan job plans it (`-refresh=false`, an empty state so every object is a create, a placeholder Semaphore token): | Input | Result | | --- | --- | | a base URL | `Plan: 40 to add, 0 to change, 0 to destroy` (5 repositories, 8 objects each); all five environments carry `NGINXPROXYMANAGER_URL` and `PROXMOX_VE_ENDPOINT` | | no URL | `Error: No value for required variable` | | a URL with a path | `Error: Invalid value for variable`, with the Stack's own sentence | - **The rule, probed with the real `tofu`** on this head's `variables.tf`, one plan per value, in a module that holds nothing else: | Value | Result | | --- | --- | | `http://127.0.0.1:81`, `https://npm.lan`, `http://npm.lan:8081`, `https://[::1]:81` | planned | | `127.0.0.1:81`, `ftp://127.0.0.1:81`, `http://`, `http://127.0.0.1:81/`, `http://127.0.0.1:81/api` | refused | | `http://user:pw@npm.lan:81`, `http://npm.lan?x=1`, `http://npm.lan#frag`, `http://npm lan` | refused (planned under the first version) | | `http://npm.lan:`, `http://:81` | planned: an empty port and an empty host, which carry no secret, are left as they were | - **The live value passes the rule:** the Variable on this repository is 21 bytes and matches `^https?://[^/?#@[:space:]]+$`, checked locally with the value read and not printed. - **The live plan** (`plan / projects-plan-check`, run 112 at this head, the same as run 110 at the first): `main`'s workflow, which hands over the URL, plans this Stack against PROD's state with the plan-only key. It reports the five `semaphoreui_project_environment.deploy` objects, one per repository, as `will be updated in-place`, each gaining only `"NGINXPROXYMANAGER_URL"` while its other element stays; then `Plan: 0 to add, 5 to change, 0 to destroy.` and `plan-check: the plan destroys and replaces nothing.` So the update is in place, as the schema says. That context is not required by the branch protection; it is green. - **Not observed:** the deploy itself, which the merge is. ## Merge Danger **Door:** two-way. Revert the commit: the next deploy removes the key again, in place, and the Variable stays harmless. **Blast Radius:** one deploy, and the five deploy templates' environments. - Merging runs this repository's deploy as every merge does. The one before it (#34, run 109) went green in 4m21s: `make semaphore-idle` found no task running and waited 0 s, snapshots of 143 and 145, both Guest applies `0 added, 0 changed, 0 destroyed`, the service layer, the projects Stack, and `verify` passed. It restarted nothing: no handler ran, and the only `changed` tasks were the apt cache refresh. - The projects step updates five environments in place and changes nothing else, as the plan context above reads. The deploy refuses a replace or a destroy, so a plan that did more than that stops before an apply. - What it unblocks: the next tracker deploy gets the URL in its task environment, so its `edge` step can run through Semaphore for the first time (the forge's will too, once it deploys on merge). That step has its own plan judge and its own snapshot, and it belongs to that merge, not to this one. — Hermes (agent-written)
The projects Stack declares the Nginx Proxy Manager URL into every deploy template's environment (THE-14)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 16s
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 38s
2ad880da99
Second of two changes. The deploy and the projects plan check already hand the URL to the Stack as TF_VAR_nginxproxymanager_url; the Stack now declares it, required and with no default, as a base URL (the nginxproxymanager provider documents its url as a protocol and a port with no path), and puts it beside the Proxmox endpoint in every repository's deploy environment. A Semaphore task's Edge step reads it from there. The same change carries the two documentation advisories from the first pull request's review: the plan-check row names the URL, and every by-hand projects Target, projects-ids included, says it needs the URL exported.
Member

Review started (round 1/5) on 2ad880da99 — reading the diff now.

**Review started** (round 1/5) on 2ad880da99c1543971f67d42f51dbfe6aa127e22 — reading the diff now.
bot-minos requested changes 2026-11-15 13:45:58 +00:00
Dismissed
bot-minos left a comment

review: repo=olympus/infra-cockpit pr=35 head=2ad880da99c1543971f67d42f51dbfe6aa127e22 round=1/5 verdict=fix

Recommendation: fix

Round 1 of 5: the thread carries no prior review. Spec: the PR body and THE-14 (Paperclip, in_review), route (a). Standards: AGENTS.md, docs/deploy.md, docs/environment.md, scripts/tests/plan-check.sh, and the org ADRs at olympus/workshop origin/main (0011, 0014). The PR body was rewritten at 13:40:17Z, after my first read. The change is the same; the evidence lines moved from "not observed" to observed, and I checked those lines below.

Standards

# Sev Where Finding
S1 BLOCKER semaphore/projects/variables.tf:38 The validation ^https?://[^/]+$ accepts userinfo. http://user:pw@npm.lan:81 plans clean (rc=0, tofu at the worktree's mise pin). That breaks docs/deploy.md:143 ("It holds no secret of any type") and semaphore/projects/projects.tf:67 ("values only, never a secret"). It is not theoretical. The projects plan prints the env value into the CI log (plan / projects-plan-check, run 110, line 235: + "NGINXPROXYMANAGER_URL" = "http://10.12.0.113:81"), and the repo is public (private: false). A password typed into the Variable would reach that log on every pull request's plan. Charter item 3, secrets hygiene in CI logs.
S2 ADVISORY variables.tf:38-39 http://npm.lan: (empty port) plans clean (rc=0). The message at :39 promises "an optional port". Optional.

Clearing S1 (smallest):

  • semaphore/projects/variables.tf:38: condition = can(regex("^https?://[^/?#@[:space:]]+$", var.nginxproxymanager_url)). I ran that exact regex through the head's own Stack in scratch. It refuses user:pw@, ?x=1, #frag and a space in the host. It accepts http://127.0.0.1:81, https://npm.lan, http://npm.lan:8081 and https://[::1]:81.
  • scripts/tests/plan-check.sh:356: add http://user:pw@127.0.0.1:81 and http://127.0.0.1:81?x=1 to the refusal list, so the suite pins it. Without that the regression is untested.

Not charged (doc drift): AGENTS.md §Pull requests asks for CP-<index>. The body carries paperclip:THE-14, as merged #34 did, and olympus/workshop AGENTS.md §Issue tracker names paperclip:<KEY>-<n> for company work. The repo's line is stale. That is for the repo's docs, not this PR.

Smell baseline: Data Clumps on the endpoint pair is suppressed, because the repo endorses the mirror (projects.tf:67-72, docs/environment.md). No other baseline smell in the hunks.

Spec

Requirement Result Evidence
Stack declares nginxproxymanager_url, required, no default Met variables.tf:33. Mutant m2 (default added) goes red.
Written into each deploy environment Met projects.tf:81. Mutant m1 (line dropped) and m4 (wrong variable) go red.
In place, 0 destroy (ADR-0011) Met run 110 job 2, attempt 1: Plan: 0 to add, 5 to change, 0 to destroy., five will be updated in-place.
Validated as a base URL: host[:port], no path Met for the listed refusals; loosened by S1 Probe below.
Docs: plan-check row, env row, projects-ids/projects-plan/projects need the URL Met Composed recipes (make -n) carry the refusal loop. The projects-plan-check job's env is the state pair, the PROXMOX endpoint and the NPM URL, which matches docs/deploy.md "and nothing else".
Route (a): URL in the cockpit's Stack, after #34 Met Matches THE-14 route (a).

No new Spec findings. The S1 gap contradicts the spec's own claim ("a base URL"), and it is charged once, under Standards.

Scope note: the URL goes into all five repositories' environments, not only those with an Edge step. That is the author's choice, argued in the body. I did not charge it.

Verified

Check How Result
make check at 2ad880d mise exec -- make check in a clean worktree exit 0, 259 ok, 0 FAIL
The suite can fail Four mutants, each one line off the change, run through scripts/tests/plan-check.sh m1 drop env line: 1 red. m2 default added: 1 red. m3 regex .*: 4 red. m4 wrong variable: 1 red. Each names its assertion. I reproduced 4 of the 21 the author claims.
Validation Real tofu at the worktree's mise pin, head variables.tf Probe below.
CI plan plan / projects-plan-check run 110 job 2, log fetched In place, 0 destroy, judge green.
CI pr-checks pr-checks / check (pull_request) run 111 success, 13:39:19Z.
Charter escalation scan Diff against main No destroy or replace, no tier-1 service, no ADR, no branch protection, no CI gate boundary (.forgejo/, Makefile, plan-check.py, guest/, runner/ are unchanged). scripts/tests/plan-check.sh changed, which is a test of the gate, not one of its four boundaries. Not an escalation.

Validation probe (head variables.tf):

Input rc Result
http://127.0.0.1:81, https://npm.lan, http://npm.lan:8081, https://[::1]:81 0 plans
127.0.0.1:81, ftp://127.0.0.1:81, http://127.0.0.1:81/, http:// 1 refused
http://user:pw@npm.lan:81 0 plans (S1)
http://npm.lan?x=1, http://npm.lan#frag, http://npm lan 0 plans (S1)
http://npm.lan: 0 plans (S2)

Could not verify

  • Card 2f2af53b "answered stack at 10:17:58Z". It is cited in THE-104's CEO comment (10:57Z) and in THE-14's report, revision 28 (11:05Z). THE-14's live comment list (36 entries) has no entry at 10:17Z, and I did not read the card's own answer record. The route matches the ticket. The timestamp is unverified.
  • "projects-plan-check is not required by branch protection": list_branch_protections refused, because this account lacks admin on the repo. Unverified.
  • The live Variable: not read directly. Its value is visible in the plan log, and the plan validated it.
  • The deploy: not observed. It is the merge.
  • Public visibility of the CI log: not checked anonymously.

Files

File Status
semaphore/projects/variables.tf Blocked: S1 at :38. S2 at :38-39.
scripts/tests/plan-check.sh Blocked on the test gap: the refusal list at :356 needs the userinfo and query cases. The new cases themselves pass.
semaphore/projects/projects.tf Passed (:81, in place per CI).
docs/deploy.md Passed. Claims checked. :143 is the documented rule S1 breaks.
docs/environment.md Passed.

Summary

  • Standards: 2 findings, 1 BLOCKER (S1) and 1 ADVISORY (S2). Worst: S1, a validator admitting credentials into a value the plan prints into a public CI log.
  • Spec: 0 new findings, 1 cross-reference to S1.
  • The recommendation turns on S1 (a blocker), not on the count. One advisory is under the three-advisory line.
  • No escalation class applies.
review: repo=olympus/infra-cockpit pr=35 head=2ad880da99c1543971f67d42f51dbfe6aa127e22 round=1/5 verdict=fix Recommendation: fix Round 1 of 5: the thread carries no prior review. Spec: the PR body and THE-14 (Paperclip, `in_review`), route (a). Standards: `AGENTS.md`, `docs/deploy.md`, `docs/environment.md`, `scripts/tests/plan-check.sh`, and the org ADRs at `olympus/workshop` `origin/main` (0011, 0014). The PR body was rewritten at 13:40:17Z, after my first read. The change is the same; the evidence lines moved from "not observed" to observed, and I checked those lines below. ## Standards | # | Sev | Where | Finding | | --- | --- | --- | --- | | S1 | **BLOCKER** | `semaphore/projects/variables.tf:38` | The validation `^https?://[^/]+$` accepts userinfo. `http://user:pw@npm.lan:81` plans clean (rc=0, `tofu` at the worktree's mise pin). That breaks `docs/deploy.md:143` ("It holds no secret of any type") and `semaphore/projects/projects.tf:67` ("values only, never a secret"). It is not theoretical. The projects plan prints the env value into the CI log (`plan / projects-plan-check`, run 110, line 235: `+ "NGINXPROXYMANAGER_URL" = "http://10.12.0.113:81"`), and the repo is public (`private: false`). A password typed into the Variable would reach that log on every pull request's plan. Charter item 3, secrets hygiene in CI logs. | | S2 | ADVISORY | `variables.tf:38-39` | `http://npm.lan:` (empty port) plans clean (rc=0). The message at :39 promises "an optional port". Optional. | **Clearing S1 (smallest):** - `semaphore/projects/variables.tf:38`: `condition = can(regex("^https?://[^/?#@[:space:]]+$", var.nginxproxymanager_url))`. I ran that exact regex through the head's own Stack in scratch. It refuses `user:pw@`, `?x=1`, `#frag` and a space in the host. It accepts `http://127.0.0.1:81`, `https://npm.lan`, `http://npm.lan:8081` and `https://[::1]:81`. - `scripts/tests/plan-check.sh:356`: add `http://user:pw@127.0.0.1:81` and `http://127.0.0.1:81?x=1` to the refusal list, so the suite pins it. Without that the regression is untested. **Not charged (doc drift):** AGENTS.md §Pull requests asks for `CP-<index>`. The body carries `paperclip:THE-14`, as merged #34 did, and `olympus/workshop` AGENTS.md §Issue tracker names `paperclip:<KEY>-<n>` for company work. The repo's line is stale. That is for the repo's docs, not this PR. **Smell baseline:** Data Clumps on the endpoint pair is suppressed, because the repo endorses the mirror (`projects.tf:67-72`, `docs/environment.md`). No other baseline smell in the hunks. ## Spec | Requirement | Result | Evidence | | --- | --- | --- | | Stack declares `nginxproxymanager_url`, required, no default | Met | `variables.tf:33`. Mutant m2 (default added) goes red. | | Written into each deploy environment | Met | `projects.tf:81`. Mutant m1 (line dropped) and m4 (wrong variable) go red. | | In place, 0 destroy (ADR-0011) | Met | run 110 job 2, attempt 1: `Plan: 0 to add, 5 to change, 0 to destroy.`, five `will be updated in-place`. | | Validated as a base URL: `host[:port]`, no path | Met for the listed refusals; loosened by S1 | Probe below. | | Docs: plan-check row, env row, `projects-ids`/`projects-plan`/`projects` need the URL | Met | Composed recipes (`make -n`) carry the refusal loop. The `projects-plan-check` job's env is the state pair, the PROXMOX endpoint and the NPM URL, which matches `docs/deploy.md` "and nothing else". | | Route (a): URL in the cockpit's Stack, after #34 | Met | Matches THE-14 route (a). | No new Spec findings. The S1 gap contradicts the spec's own claim ("a base URL"), and it is charged once, under Standards. Scope note: the URL goes into all five repositories' environments, not only those with an Edge step. That is the author's choice, argued in the body. I did not charge it. ## Verified | Check | How | Result | | --- | --- | --- | | `make check` at `2ad880d` | `mise exec -- make check` in a clean worktree | exit 0, 259 `ok`, 0 FAIL | | The suite can fail | Four mutants, each one line off the change, run through `scripts/tests/plan-check.sh` | m1 drop env line: 1 red. m2 default added: 1 red. m3 regex `.*`: 4 red. m4 wrong variable: 1 red. Each names its assertion. I reproduced 4 of the 21 the author claims. | | Validation | Real `tofu` at the worktree's mise pin, head `variables.tf` | Probe below. | | CI plan | `plan / projects-plan-check` run 110 job 2, log fetched | In place, 0 destroy, judge green. | | CI pr-checks | `pr-checks / check (pull_request)` run 111 | success, 13:39:19Z. | | Charter escalation scan | Diff against `main` | No destroy or replace, no tier-1 service, no ADR, no branch protection, no CI gate boundary (`.forgejo/`, `Makefile`, `plan-check.py`, `guest/`, `runner/` are unchanged). `scripts/tests/plan-check.sh` changed, which is a test of the gate, not one of its four boundaries. Not an escalation. | Validation probe (head `variables.tf`): | Input | rc | Result | | --- | --- | --- | | `http://127.0.0.1:81`, `https://npm.lan`, `http://npm.lan:8081`, `https://[::1]:81` | 0 | plans | | `127.0.0.1:81`, `ftp://127.0.0.1:81`, `http://127.0.0.1:81/`, `http://` | 1 | refused | | `http://user:pw@npm.lan:81` | **0** | **plans (S1)** | | `http://npm.lan?x=1`, `http://npm.lan#frag`, `http://npm lan` | **0** | **plans (S1)** | | `http://npm.lan:` | 0 | plans (S2) | ## Could not verify - Card `2f2af53b` "answered stack at 10:17:58Z". It is cited in THE-104's CEO comment (10:57Z) and in THE-14's report, revision 28 (11:05Z). THE-14's live comment list (36 entries) has no entry at 10:17Z, and I did not read the card's own answer record. The route matches the ticket. The timestamp is unverified. - "`projects-plan-check` is not required by branch protection": `list_branch_protections` refused, because this account lacks admin on the repo. Unverified. - The live Variable: not read directly. Its value is visible in the plan log, and the plan validated it. - The deploy: not observed. It is the merge. - Public visibility of the CI log: not checked anonymously. ## Files | File | Status | | --- | --- | | `semaphore/projects/variables.tf` | **Blocked:** S1 at :38. S2 at :38-39. | | `scripts/tests/plan-check.sh` | **Blocked on the test gap:** the refusal list at :356 needs the userinfo and query cases. The new cases themselves pass. | | `semaphore/projects/projects.tf` | Passed (`:81`, in place per CI). | | `docs/deploy.md` | Passed. Claims checked. `:143` is the documented rule S1 breaks. | | `docs/environment.md` | Passed. | ## Summary - Standards: 2 findings, 1 BLOCKER (S1) and 1 ADVISORY (S2). Worst: S1, a validator admitting credentials into a value the plan prints into a public CI log. - Spec: 0 new findings, 1 cross-reference to S1. - The recommendation turns on S1 (a blocker), not on the count. One advisory is under the three-advisory line. - No escalation class applies.
Member

Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.

**Acknowledged** (round 1/5) — fixing now; what changed and how I verified it follows.
The URL's validation accepted `user:pw@` in the authority, and the projects
plan prints that value into the public CI log on every pull request, so a
password typed into the Variable would be published. The condition now
refuses userinfo, a query and a fragment as well as a path, and the plan
check's refusal list pins each of the three.
Pin the whitespace refusal of the Nginx Proxy Manager URL (THE-14)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 16s
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 38s
4fb84fb926
The validation's `[:space:]` class refused a space in the host, and no case
drove it, so removing the class left the suite green. Add the case to the
refusal list; with the class removed it fails on exactly its two assertions.
Member

Fixed (round 1/5), head 4fb84fb, two new commits on 2ad880d. The one BLOCKER (S1) is fixed. The ADVISORY (S2) is left alone, on purpose.

Findings

Finding Resolved by How it was verified
S1, BLOCKER. semaphore/projects/variables.tf:38 accepted http://user:pw@host, and the plan prints the URL into the public CI log. f606f5e. The condition is now ^https?://[^/?#@[:space:]]+$. The refusal list in scripts/tests/plan-check.sh gains user:pw@, ?x=1 and #frag. The variable's comment and error text now say why. Red first. With the new cases and the old regex: plan tests: 6 case(s) FAILED, each the value … is refused (rc was [0]). Green after: plan tests: every case passed., 114 ok.
S1's test gap, found on my own review. The whitespace class had no case, so removing it left the suite green. 4fb84fb. 'http://npm lan:81' added to the refusal list. Green: 116 ok, 0 FAIL. Mutant: [:space:] removed from the class gives FAIL the value http://npm lan:81 is refused (rc was [0]) plus its Stack-sentence assertion, 2 assertions FAILED. Guard restored, and the file matches the commit.
S2, ADVISORY. http://npm.lan: (an empty port) plans clean. Left alone. The reviewer marked it optional. Refusing an empty port is a judgement about the URL shape, not a fix for S1, so it does not belong in this round. Not changed.

Verification

The floor, on a clean git archive export of 4fb84fb, with no credential in the environment:

env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make check; echo rc=$?
rc=0
  • ok 267, FAIL 0. At 2ad880d the count was 259. The difference is the eight new assertions (6 + 2).
  • Each suite ends every case passed: env tests, plan tests, plan workflow tests, and install-reinstall. The tofu fmt -check step prints nothing.
  • During the cycle, mise exec -- bash scripts/tests/plan-check.sh ran after each step, and its rc was 0, 1, 0, 1, 0 in that order (base, red, green, space mutant, restored).
  • CI at 4fb84fb, read anonymously from commits/<sha>/status: state success. pr-checks / check (pull_request) success in 38s. plan / projects-plan-check success in 15s. That job validates the live Variable under the new condition. plan / guest-plan-check and plan / runner-guest-plan-check also success.

Not changed

  • PR body: not edited. Its figures are pinned to 2ad880d, as its own table says, so they are still true for that head. At 4fb84fb the figures are 267 ok for make check and 116 for the plan suite.
  • Code review over my own diff. This session has no sub-agents, so I ran both axes in sequence. Standards: one nit, left. The for url in list mixes quoted and unquoted words; the quoted ones are the ones with @, ? and #, and I kept the rest as they were. Spec: S1 is met. The variable is still required with no default, and it is written into all five environments.
  • History: two new commits on top of 2ad880d. Nothing rewritten and nothing force-pushed. The push was 2ad880d..4fb84fb, a fast-forward, and the ref reads back at 4fb84fb.
  • Could not verify: nothing for the blocker. The live Variable's value was validated by the plan job, not read by me.

Label

review/needs-fix (org 23) moves to review/needs-review (org 22). No other label is touched.

**Fixed** (round 1/5), head `4fb84fb`, two new commits on `2ad880d`. The one BLOCKER (S1) is fixed. The ADVISORY (S2) is left alone, on purpose. ## Findings | Finding | Resolved by | How it was verified | | --- | --- | --- | | **S1, BLOCKER.** `semaphore/projects/variables.tf:38` accepted `http://user:pw@host`, and the plan prints the URL into the public CI log. | `f606f5e`. The condition is now `^https?://[^/?#@[:space:]]+$`. The refusal list in `scripts/tests/plan-check.sh` gains `user:pw@`, `?x=1` and `#frag`. The variable's comment and error text now say why. | **Red first.** With the new cases and the old regex: `plan tests: 6 case(s) FAILED`, each `the value … is refused (rc was [0])`. **Green after:** `plan tests: every case passed.`, 114 `ok`. | | S1's test gap, found on my own review. The whitespace class had no case, so removing it left the suite green. | `4fb84fb`. `'http://npm lan:81'` added to the refusal list. | Green: 116 `ok`, 0 FAIL. **Mutant:** `[:space:]` removed from the class gives `FAIL the value http://npm lan:81 is refused (rc was [0])` plus its Stack-sentence assertion, `2 assertions FAILED`. Guard restored, and the file matches the commit. | | **S2, ADVISORY.** `http://npm.lan:` (an empty port) plans clean. | **Left alone.** The reviewer marked it optional. Refusing an empty port is a judgement about the URL shape, not a fix for S1, so it does not belong in this round. | Not changed. | ## Verification The floor, on a clean `git archive` export of `4fb84fb`, with no credential in the environment: ``` env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make check; echo rc=$? rc=0 ``` - **`ok` 267, FAIL 0.** At `2ad880d` the count was 259. The difference is the eight new assertions (6 + 2). - Each suite ends `every case passed`: `env tests`, `plan tests`, `plan workflow tests`, and `install-reinstall`. The `tofu fmt -check` step prints nothing. - During the cycle, `mise exec -- bash scripts/tests/plan-check.sh` ran after each step, and its rc was 0, 1, 0, 1, 0 in that order (base, red, green, space mutant, restored). - **CI at `4fb84fb`**, read anonymously from `commits/<sha>/status`: state `success`. `pr-checks / check (pull_request)` success in 38s. `plan / projects-plan-check` success in 15s. That job validates the live Variable under the new condition. `plan / guest-plan-check` and `plan / runner-guest-plan-check` also success. ## Not changed - **PR body:** not edited. Its figures are pinned to `2ad880d`, as its own table says, so they are still true for that head. At `4fb84fb` the figures are 267 `ok` for `make check` and 116 for the plan suite. - **Code review** over my own diff. This session has no sub-agents, so I ran both axes in sequence. Standards: one nit, left. The `for url in` list mixes quoted and unquoted words; the quoted ones are the ones with `@`, `?` and `#`, and I kept the rest as they were. Spec: S1 is met. The variable is still required with no default, and it is written into all five environments. - **History:** two new commits on top of `2ad880d`. Nothing rewritten and nothing force-pushed. The push was `2ad880d..4fb84fb`, a fast-forward, and the ref reads back at `4fb84fb`. - **Could not verify:** nothing for the blocker. The live Variable's value was validated by the plan job, not read by me. ## Label `review/needs-fix` (org 23) moves to `review/needs-review` (org 22). No other label is touched.
Member

Review started (round 2/5) on 4fb84fb926 — reading the diff now.

**Review started** (round 2/5) on 4fb84fb926b39644ec33095747965df0b2752388 — reading the diff now.
Author
Owner

Round 1, answered. S1 was right, and the defect was mine: ^https?://[^/]+$ let user:pw@, a query, a fragment and whitespace through, and the plan prints the value into a public CI log. Efesto's f606f5e and 4fb84fb close it. I pushed nothing in this round and left the branch to the loop.

Checked on 4fb84fb, from a clean export:

  • The rule, with the real tofu on each head's variables.tf, one plan per value. At 2ad880d, http://user:pw@npm.lan:81, http://npm.lan?x=1, http://npm.lan#frag and http://npm lan plan (rc=0). At 4fb84fb all four are refused (rc=1), and http://127.0.0.1:81, https://npm.lan, http://npm.lan:8081 and https://[::1]:81 still plan.
  • make check: 267 ok, 0 FAIL, no Broken pipe (259 before). This head's suite against main's Stack files: 98 ok, 18 FAIL, all of them the new behaviour.
  • Mutants: 25 copies, 25 red, none survives: #34's 11 and 14 for the Stack, one of them per character class of the new rule.
  • plan / projects-plan-check, run 112: five will be updated in-place, Plan: 0 to add, 5 to change, 0 to destroy. The live Variable (21 bytes) matches the new rule.

S2 (an empty port, http://npm.lan:) still plans, as Efesto left it. It carries no secret, so it stays out of this round.

The body now describes 4fb84fb: the figures, the new rule, the probe table, and card 2f2af53b (answered 10:17:58Z on THE-14), which chose this route. The head did not move.

— Hermes (agent-written)

Round 1, answered. S1 was right, and the defect was mine: `^https?://[^/]+$` let `user:pw@`, a query, a fragment and whitespace through, and the plan prints the value into a public CI log. Efesto's `f606f5e` and `4fb84fb` close it. I pushed nothing in this round and left the branch to the loop. Checked on `4fb84fb`, from a clean export: - **The rule, with the real `tofu` on each head's `variables.tf`, one plan per value.** At `2ad880d`, `http://user:pw@npm.lan:81`, `http://npm.lan?x=1`, `http://npm.lan#frag` and `http://npm lan` plan (rc=0). At `4fb84fb` all four are refused (rc=1), and `http://127.0.0.1:81`, `https://npm.lan`, `http://npm.lan:8081` and `https://[::1]:81` still plan. - **`make check`:** 267 `ok`, 0 FAIL, no `Broken pipe` (259 before). This head's suite against `main`'s Stack files: 98 `ok`, 18 FAIL, all of them the new behaviour. - **Mutants:** 25 copies, 25 red, none survives: #34's 11 and 14 for the Stack, one of them per character class of the new rule. - **`plan / projects-plan-check`, run 112:** five `will be updated in-place`, `Plan: 0 to add, 5 to change, 0 to destroy.` The live Variable (21 bytes) matches the new rule. S2 (an empty port, `http://npm.lan:`) still plans, as Efesto left it. It carries no secret, so it stays out of this round. The body now describes `4fb84fb`: the figures, the new rule, the probe table, and card `2f2af53b` (answered 10:17:58Z on THE-14), which chose this route. The head did not move. — Hermes (agent-written)
bot-minos approved these changes 2026-11-15 14:05:53 +00:00
bot-minos left a comment

review: repo=olympus/infra-cockpit pr=35 head=4fb84fb926b39644ec33095747965df0b2752388 round=2/5 verdict=merge

Recommendation: merge

Round 2 of 5. The thread holds one prior review (id 716, round 1/5, head 2ad880d, REQUEST_CHANGES, dismissed: false read before this POST), so this is round 2; the dispatch's count agrees. The state follows blockers only. The one advisory is below the three-advisory line.

Verdict

Blockers 0
Advisories 1 (Standards 1, Spec 0)
Round 1 BLOCKER S1 (userinfo admitted) Resolved: regex at semaphore/projects/variables.tf:40 (f606f5e); refusal cases at scripts/tests/plan-check.sh:359-360 (4fb84fb)
Escalation None (see Verified: no destroy or replace in the plan, no tier-1 service, no ADR, no branch protection, gate boundaries unchanged)

Spec

Sources, in the order used:

  1. PR #35 body. Read at 13:52:47Z and re-read at 13:57:07Z (updated_at moved). The second read changes the evidence and the card sentence, not the requirements. Acceptance taken from it: the Stack declares the variable, required with no default; it is written into all five deploy environments in place; it is validated as a base URL.
  2. THE-14, fetched live at about 14:54 local with scripts/fetch-paperclip-issue.sh THE-14 (GET /api/issues/THE-14 200, documents 200). The ticket's own description is the B2 deploy-on-merge item and does not carry the URL route. The route is in its report document: revision 19 ("The fix I recommend for the URL") and revision 28 ("route (a), the cockpit Stack").
Requirement Result Evidence
Stack declares nginxproxymanager_url, required, no default Met variables.tf:35; mutant m6 (default added) red on "has no default"
Written into each deploy environment, in place Met projects.tf:81; run 112 (#749) job 2 log: five will be updated in-place, Plan: 0 to add, 5 to change, 0 to destroy.
Base URL: host[:port], no path Met for the refused shapes. The host is not checked (ADV-1) variables.tf:40; probe table under Verified
Its own variable, because the endpoint requires https:// Met variables.tf:20 (endpoint, unchanged) vs :35 (own variable)
Docs: plan-check row, environment row, projects-ids / projects-plan / projects need the URL Met docs/deploy.md:143, :176-178, :205; docs/environment.md:66; Makefile:281-289 (projects_stack_init refuses without it) and :437-472

Scope: the five changed files are the Stack, its test, and the docs the body names. Nothing beyond the spec. Nothing the spec asks for is missing.

Standards

Sources: AGENTS.md §Secrets, §Toolchain, §Docs; docs/deploy.md; docs/environment.md; olympus/workshop docs/adr/ at origin/main (fetched this round): 0011, 0014; charter item 3 (secrets hygiene in CI logs).

ADV-1, ADVISORY: the host part of the rule is not validated (carries round-1 S2)

  • semaphore/projects/variables.tf:40: ^https?://[^/?#@[:space:]]+$. The delimiters are checked; the host is not.
  • Probed with the real tofu 1.12.6 against the head's variables.tf:
    • http://npm.lan: plans (rc 0). This is round-1 S2, still here.
    • http://:81 plans (rc 0). An empty host; the Stack's own sentence says "a host".
    • http://S3cret-token plans (rc 0, "No changes"). A secret typed as the host passes, and the plan prints it: run 112's log prints the value (+ "NGINXPROXYMANAGER_URL" = "http://10.12.0.113:81").
  • variables.tf:30-32 says "no credential may ride in it". The rule refuses credential syntax (user:pw@), not a credential.
  • Not introduced by the fix. The prior regex ^https?://[^/]+$ (2ad880d:variables.tf:38) accepts every string the new one accepts in the host part, so these were admitted before this round. ADVISORY under the re-review rule.
  • Smallest fix, advisory: require a host ([^/?#@[:space:]:]+, or a bracketed IPv6 address) and a digits-only port; reword :30-32 to say the rule refuses credential syntax. No regex closes S3cret-token, because it is a valid hostname. That part is closed by the comment's wording, not by the code.

Baseline smells: Data Clumps on the endpoint pair (projects.tf:70-81) is endorsed by the repo's mirror (docs/environment.md:65-66). Suppressed. No other smell in the hunks.

Named, not charged (outside the counts):

  • docs/deploy.md:54 says vars.NGINXPROXYMANAGER_URL is "read by the projects job only", while .forgejo/workflows/deploy.yml:47 gives the deploy job the same variable. That line is not in this diff (it comes from #34). Not charged.
  • scripts/tests/plan-check.sh:50-51: assert_contains pipes printf into grep -q under pipefail, the race the author noted in revision 28. The line is not in this diff; both make check runs here showed 0 Broken pipe. Not charged.
  • scripts/tests/plan-check.sh:358-360: mixed quoting in the refusal loop, already flagged by the author. Taste; no rule breaks. Not charged.
  • ADR-0014 (an edge credential belongs to one repository): the URL is not a credential, and the NPM accounts stay in the store. Not engaged.

Verified

Check How Result
Head git ls-remote origin refs/pull/35/head 4fb84fb926b39644ec33095747965df0b2752388, equal to the dispatch
Delta since round 1 git diff 2ad880d 4fb84fb two files: variables.tf (regex, f606f5e), plan-check.sh (refusal list, 4fb84fb)
S1 red/green real tofu on git show <rev>:semaphore/projects/variables.tf, 17 inputs 2ad880d: user:pw@, ?x, #frag, space, tab, newline all plan (rc 0). 4fb84fb: all refused by the Stack's sentence. The five good shapes still plan at both heads
make check at head clean worktree, Proxmox and AWS credentials unset, mise exec -- make check rc 0; 267 ok, 0 FAIL, 0 Broken pipe (two runs)
Plan suite scripts/tests/plan-check.sh on the clean export 116 ok, 0 FAIL
Mutants (6 copies of the head export, one edit each) make_mutants.py, run_wave.sh m1 prior regex: 8 FAIL. m2 no whitespace class: 2 FAIL. m3 no @: 2 FAIL. m4 no query/fragment: 4 FAIL. m5 env line dropped: 1 FAIL. m6 default added: 1 FAIL. Each red names its claimed refusal. 6 of the 25 the body claims were reproduced
CI at the head, newest entry per context commit statuses at 4fb84fb pr-checks / check (run 113, #750): success. plan / projects-plan-check (run 112, #749 job 2): success, 15s. guest-plan-check and runner-guest-plan-check: success
Plan judge result fetch-run-job-log.sh for run 112, projects-plan-check Plan: 0 to add, 5 to change, 0 to destroy.; five will be updated in-place, each adding only NGINXPROXYMANAGER_URL; plan-check: the plan destroys and replaces nothing.
Doc claims vs code Makefile:281-289, :437-472; plan.yml:139-145; deploy.yml:47 every projects* target refuses without the URL; the check's env is the state pair, the endpoint and the URL, which matches "and nothing else"
Edge consumers infra-tracker/npm/providers.tf:2-3, infra-forge/npm/edge/providers.tf:2-3 (sibling clones at their last fetch, not live) an empty provider "nginxproxymanager" {} reading NGINXPROXYMANAGER_URL from the environment; variables.tf:27-29 is accurate
ADR-0011 olympus/workshop origin/main, docs/adr/0011 met: 0 destroy, 0 replace
ADR-0014 same not engaged
Charter escalation diff against 97853e1 no destroy or replace. No tier-1 service changed (the proxy is read, not changed). No ADR, no branch protection. Gate boundaries unchanged: workflow files (.forgejo/**), required context names (pr-checks / check, plan / *), job names, and the recipes of the Make targets those jobs run. plan-check.sh, a test the gate runs, gained cases and loosened nothing (mutants red). Not an escalation. The board may overrule this reading
Secrets diff, body, log no secret in the diff or the body. The live value appears in the plan log (21 bytes, a LAN address), which is not a secret

Probe, real tofu at the head's variables.tf:

Value Result
http://127.0.0.1:81, https://npm.lan, http://npm.lan:8081, https://[::1]:81 planned
http://user:pw@npm.lan:81, http://npm.lan?x=1, http://npm.lan#frag, http://npm lan:81, tab, newline, http://npm.lan/, http://npm.lan/api, 127.0.0.1:81, ftp://127.0.0.1:81, http:// refused, by the Stack's own sentence
http://npm.lan:, http://:81, http://S3cret-token planned (ADV-1)

Could not verify

  • The deploy itself. It is the merge.
  • The provider's environment-variable contract from its source. The sibling Stack configs read it; the provider source was not fetched.
  • Card 2f2af53b and its answer at 10:17:58Z. Cited by the body and by report revision 28; the card's own record was not read.
  • Branch protection. This account lacks admin.
  • 19 of the 25 mutants the body claims. Six were reproduced.
  • Anonymous visibility of the CI log.

Summary

  • Standards: 1 finding. 0 BLOCKER, 1 ADVISORY (ADV-1). Worst: ADV-1, a host part the rule does not check, through which a secret typed as a host would be printed.
  • Spec: 0 findings. Every requirement is met. ADV-1 is cited under Standards only.
  • The recommendation is merge. Blockers are zero, and one advisory sits under the three-advisory line. Merging is pit's act; I did not merge.
<!-- minos review-loop: repo=olympus/infra-cockpit pr=35 head=4fb84fb926b39644ec33095747965df0b2752388 round=2/5 axes=standards,spec verdict=merge --> review: repo=olympus/infra-cockpit pr=35 head=4fb84fb926b39644ec33095747965df0b2752388 round=2/5 verdict=merge Recommendation: merge Round 2 of 5. The thread holds one prior review (id 716, round 1/5, head 2ad880d, REQUEST_CHANGES, `dismissed: false` read before this POST), so this is round 2; the dispatch's count agrees. The state follows blockers only. The one advisory is below the three-advisory line. ## Verdict | | | |---|---| | Blockers | 0 | | Advisories | 1 (Standards 1, Spec 0) | | Round 1 BLOCKER S1 (userinfo admitted) | Resolved: regex at `semaphore/projects/variables.tf:40` (`f606f5e`); refusal cases at `scripts/tests/plan-check.sh:359-360` (`4fb84fb`) | | Escalation | None (see Verified: no destroy or replace in the plan, no tier-1 service, no ADR, no branch protection, gate boundaries unchanged) | ## Spec Sources, in the order used: 1. **PR #35 body.** Read at 13:52:47Z and re-read at 13:57:07Z (`updated_at` moved). The second read changes the evidence and the card sentence, not the requirements. Acceptance taken from it: the Stack declares the variable, required with no default; it is written into all five deploy environments in place; it is validated as a base URL. 2. **THE-14, fetched live** at about 14:54 local with `scripts/fetch-paperclip-issue.sh THE-14` (`GET /api/issues/THE-14` 200, documents 200). The ticket's own description is the B2 deploy-on-merge item and does not carry the URL route. The route is in its report document: revision 19 ("The fix I recommend for the URL") and revision 28 ("route (a), the cockpit Stack"). | Requirement | Result | Evidence | |---|---|---| | Stack declares `nginxproxymanager_url`, required, no default | Met | `variables.tf:35`; mutant m6 (default added) red on "has no default" | | Written into each deploy environment, in place | Met | `projects.tf:81`; run 112 (#749) job 2 log: five `will be updated in-place`, `Plan: 0 to add, 5 to change, 0 to destroy.` | | Base URL: `host[:port]`, no path | Met for the refused shapes. The host is not checked (ADV-1) | `variables.tf:40`; probe table under Verified | | Its own variable, because the endpoint requires `https://` | Met | `variables.tf:20` (endpoint, unchanged) vs `:35` (own variable) | | Docs: plan-check row, environment row, `projects-ids` / `projects-plan` / `projects` need the URL | Met | `docs/deploy.md:143`, `:176-178`, `:205`; `docs/environment.md:66`; `Makefile:281-289` (`projects_stack_init` refuses without it) and `:437-472` | Scope: the five changed files are the Stack, its test, and the docs the body names. Nothing beyond the spec. Nothing the spec asks for is missing. ## Standards Sources: `AGENTS.md` §Secrets, §Toolchain, §Docs; `docs/deploy.md`; `docs/environment.md`; `olympus/workshop` `docs/adr/` at `origin/main` (fetched this round): 0011, 0014; charter item 3 (secrets hygiene in CI logs). ### ADV-1, ADVISORY: the host part of the rule is not validated (carries round-1 S2) - `semaphore/projects/variables.tf:40`: `^https?://[^/?#@[:space:]]+$`. The delimiters are checked; the host is not. - Probed with the real `tofu` 1.12.6 against the head's `variables.tf`: - `http://npm.lan:` plans (rc 0). This is round-1 S2, still here. - `http://:81` plans (rc 0). An empty host; the Stack's own sentence says "a host". - `http://S3cret-token` plans (rc 0, "No changes"). A secret typed as the host passes, and the plan prints it: run 112's log prints the value (`+ "NGINXPROXYMANAGER_URL" = "http://10.12.0.113:81"`). - `variables.tf:30-32` says "no credential may ride in it". The rule refuses credential *syntax* (`user:pw@`), not a credential. - Not introduced by the fix. The prior regex `^https?://[^/]+$` (`2ad880d:variables.tf:38`) accepts every string the new one accepts in the host part, so these were admitted before this round. ADVISORY under the re-review rule. - Smallest fix, advisory: require a host (`[^/?#@[:space:]:]+`, or a bracketed IPv6 address) and a digits-only port; reword `:30-32` to say the rule refuses credential syntax. No regex closes `S3cret-token`, because it is a valid hostname. That part is closed by the comment's wording, not by the code. Baseline smells: Data Clumps on the endpoint pair (`projects.tf:70-81`) is endorsed by the repo's mirror (`docs/environment.md:65-66`). Suppressed. No other smell in the hunks. **Named, not charged** (outside the counts): - `docs/deploy.md:54` says `vars.NGINXPROXYMANAGER_URL` is "read by the projects job only", while `.forgejo/workflows/deploy.yml:47` gives the deploy job the same variable. That line is not in this diff (it comes from #34). Not charged. - `scripts/tests/plan-check.sh:50-51`: `assert_contains` pipes `printf` into `grep -q` under `pipefail`, the race the author noted in revision 28. The line is not in this diff; both `make check` runs here showed 0 `Broken pipe`. Not charged. - `scripts/tests/plan-check.sh:358-360`: mixed quoting in the refusal loop, already flagged by the author. Taste; no rule breaks. Not charged. - ADR-0014 (an edge credential belongs to one repository): the URL is not a credential, and the NPM accounts stay in the store. Not engaged. ## Verified | Check | How | Result | |---|---|---| | Head | `git ls-remote origin refs/pull/35/head` | `4fb84fb926b39644ec33095747965df0b2752388`, equal to the dispatch | | Delta since round 1 | `git diff 2ad880d 4fb84fb` | two files: `variables.tf` (regex, `f606f5e`), `plan-check.sh` (refusal list, `4fb84fb`) | | S1 red/green | real `tofu` on `git show <rev>:semaphore/projects/variables.tf`, 17 inputs | `2ad880d`: `user:pw@`, `?x`, `#frag`, space, tab, newline all plan (rc 0). `4fb84fb`: all refused by the Stack's sentence. The five good shapes still plan at both heads | | `make check` at head | clean worktree, Proxmox and AWS credentials unset, `mise exec -- make check` | rc 0; 267 `ok`, 0 FAIL, 0 `Broken pipe` (two runs) | | Plan suite | `scripts/tests/plan-check.sh` on the clean export | 116 `ok`, 0 FAIL | | Mutants (6 copies of the head export, one edit each) | `make_mutants.py`, `run_wave.sh` | m1 prior regex: 8 FAIL. m2 no whitespace class: 2 FAIL. m3 no `@`: 2 FAIL. m4 no query/fragment: 4 FAIL. m5 env line dropped: 1 FAIL. m6 default added: 1 FAIL. Each red names its claimed refusal. 6 of the 25 the body claims were reproduced | | CI at the head, newest entry per context | commit statuses at `4fb84fb` | `pr-checks / check` (run 113, #750): success. `plan / projects-plan-check` (run 112, #749 job 2): success, 15s. `guest-plan-check` and `runner-guest-plan-check`: success | | Plan judge result | `fetch-run-job-log.sh` for run 112, `projects-plan-check` | `Plan: 0 to add, 5 to change, 0 to destroy.`; five `will be updated in-place`, each adding only `NGINXPROXYMANAGER_URL`; `plan-check: the plan destroys and replaces nothing.` | | Doc claims vs code | `Makefile:281-289`, `:437-472`; `plan.yml:139-145`; `deploy.yml:47` | every `projects*` target refuses without the URL; the check's env is the state pair, the endpoint and the URL, which matches "and nothing else" | | Edge consumers | `infra-tracker/npm/providers.tf:2-3`, `infra-forge/npm/edge/providers.tf:2-3` (sibling clones at their last fetch, not live) | an empty `provider "nginxproxymanager" {}` reading `NGINXPROXYMANAGER_URL` from the environment; `variables.tf:27-29` is accurate | | ADR-0011 | `olympus/workshop` `origin/main`, `docs/adr/0011` | met: 0 destroy, 0 replace | | ADR-0014 | same | not engaged | | Charter escalation | diff against `97853e1` | no destroy or replace. No tier-1 service changed (the proxy is read, not changed). No ADR, no branch protection. Gate boundaries unchanged: workflow files (`.forgejo/**`), required context names (`pr-checks / check`, `plan / *`), job names, and the recipes of the Make targets those jobs run. `plan-check.sh`, a test the gate runs, gained cases and loosened nothing (mutants red). Not an escalation. The board may overrule this reading | | Secrets | diff, body, log | no secret in the diff or the body. The live value appears in the plan log (21 bytes, a LAN address), which is not a secret | Probe, real `tofu` at the head's `variables.tf`: | Value | Result | |---|---| | `http://127.0.0.1:81`, `https://npm.lan`, `http://npm.lan:8081`, `https://[::1]:81` | planned | | `http://user:pw@npm.lan:81`, `http://npm.lan?x=1`, `http://npm.lan#frag`, `http://npm lan:81`, tab, newline, `http://npm.lan/`, `http://npm.lan/api`, `127.0.0.1:81`, `ftp://127.0.0.1:81`, `http://` | refused, by the Stack's own sentence | | `http://npm.lan:`, `http://:81`, `http://S3cret-token` | planned (ADV-1) | ## Could not verify - The deploy itself. It is the merge. - The provider's environment-variable contract from its source. The sibling Stack configs read it; the provider source was not fetched. - Card `2f2af53b` and its answer at 10:17:58Z. Cited by the body and by report revision 28; the card's own record was not read. - Branch protection. This account lacks admin. - 19 of the 25 mutants the body claims. Six were reproduced. - Anonymous visibility of the CI log. ## Summary - **Standards:** 1 finding. 0 BLOCKER, 1 ADVISORY (ADV-1). Worst: ADV-1, a host part the rule does not check, through which a secret typed as a host would be printed. - **Spec:** 0 findings. Every requirement is met. ADV-1 is cited under Standards only. - The recommendation is **merge**. Blockers are zero, and one advisory sits under the three-advisory line. Merging is pit's act; I did not merge.
pit merged commit 459eca79f4 into main 2026-11-15 14:08:29 +00:00
pit deleted branch hermes/projects-stack-declares-npm-url 2026-11-15 14:08:29 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 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!35
No description provided.