add iuclabs-release tag-only runner scale set #589

Merged
benvin merged 2 commits from benvin/iuclabs-release-runners into main 2026-11-18 23:00:05 +11:00
Member

IUCLabs release workflows must upload to artifactapi, which the default runner set cannot reach. A separate tag-only scale set keeps that access away from branch and PR jobs.

  • add iuclabs-release scale set (0-2 runners) with RUNNER_MODE=release; iuclabs-k8s sets RUNNER_MODE=default
  • job-started hook refuses any job when RUNNER_MODE is unset, empty or unknown
  • release mode allows only push of refs/tags/v[0-9]*
  • release egress allows traefik-internal pods on 443, which reaches every internal gateway host, not only artifactapi; L4 cannot narrow it and the alternative is plain HTTP to the api pods carrying a bearer token
  • hook tests cover both modes and missing/invalid mode
IUCLabs release workflows must upload to artifactapi, which the default runner set cannot reach. A separate tag-only scale set keeps that access away from branch and PR jobs. - add `iuclabs-release` scale set (0-2 runners) with `RUNNER_MODE=release`; `iuclabs-k8s` sets `RUNNER_MODE=default` - job-started hook refuses any job when `RUNNER_MODE` is unset, empty or unknown - release mode allows only `push` of `refs/tags/v[0-9]*` - release egress allows traefik-internal pods on 443, which reaches every internal gateway host, not only artifactapi; L4 cannot narrow it and the alternative is plain HTTP to the api pods carrying a bearer token - hook tests cover both modes and missing/invalid mode
unkin-agent added 1 commit 2026-11-16 23:03:44 +11:00
add iuclabs-release runner scale set gated to v* tag pushes
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/kubeconform Pipeline was successful
dcc7057897
Author
Member
  • apps/base/iuclabs-runners/job-started.sh:14 — gate is default-off: unset or empty RUNNER_RELEASE_ONLY skips it, so a dropped/renamed env on the release scale set silently runs as a normal runner with the artifactapi egress → make the release set opt in fail-closed (e.g. release scaleset mounts a separate hook/configmap, or the hook requires an explicit RUNNER_MODE=default|release and refuses when unset).
  • apps/base/iuclabs-runners/components/iuclabs-release/networkpolicy.yaml:47 — egress to all traefik-internal pods on 443 reaches every internal gateway host (gitea, authentik, etc.), not only artifactapi → accept explicitly in the PR body (L4 cannot narrow it) or rely on the hook gate only.
  • nit: apps/base/iuclabs-runners/job-started.sh:21 — refs/tags/v* also matches e.g. refs/tags/vagrant → tighten to refs/tags/v[0-9]* if release tags are always semver.
- apps/base/iuclabs-runners/job-started.sh:14 — gate is default-off: unset or empty `RUNNER_RELEASE_ONLY` skips it, so a dropped/renamed env on the release scale set silently runs as a normal runner with the artifactapi egress → make the release set opt in fail-closed (e.g. release scaleset mounts a separate hook/configmap, or the hook requires an explicit `RUNNER_MODE=default|release` and refuses when unset). - apps/base/iuclabs-runners/components/iuclabs-release/networkpolicy.yaml:47 — egress to all traefik-internal pods on 443 reaches every internal gateway host (gitea, authentik, etc.), not only artifactapi → accept explicitly in the PR body (L4 cannot narrow it) or rely on the hook gate only. - nit: apps/base/iuclabs-runners/job-started.sh:21 — `refs/tags/v*` also matches e.g. `refs/tags/vagrant` → tighten to `refs/tags/v[0-9]*` if release tags are always semver.
unkin-agent added 1 commit 2026-11-16 23:08:39 +11:00
Require explicit RUNNER_MODE in runner job-started hook
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/kubeconform Pipeline was successful
d1565b3026
Author
Member
  • apps/base/iuclabs-runners/job-started.sh:17 — release gate only checks the tag name; anyone who can push a v<digit>* tag runs an arbitrary workflow on the artifactapi-reachable set, so the isolation is only as strong as GitHub tag protection → nit: confirm a tag ruleset restricts v* creation on IUCLabs repos (outside this diff).
- apps/base/iuclabs-runners/job-started.sh:17 — release gate only checks the tag name; anyone who can push a `v<digit>*` tag runs an arbitrary workflow on the artifactapi-reachable set, so the isolation is only as strong as GitHub tag protection → nit: confirm a tag ruleset restricts `v*` creation on IUCLabs repos (outside this diff).
benvin merged commit ef2e6f2c80 into main 2026-11-18 23:00:05 +11:00
benvin deleted branch benvin/iuclabs-release-runners 2026-11-18 23:00:08 +11:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unkin/argocd-apps#589