docs(ci): add Forgejo runner hardening audit #685
No reviewers
Labels
No labels
W6d-automerge-calibration
agent/claude-code
agent/codex
agent/hermes
agent/iskra
agent/ollama
agent/patchwarden
automerge-candidate
class/security-sensitive
cutover-gate
dependency/blocked
dependency/blocks-others
dependency/cross-repo
dependency/needs-confirmation
domain:agents
domain:ci
domain:docs
domain:forgejo
domain:infra
domain:memory
domain:runtime
domain:signal
domain:ux
flow/architecture
flow/blocked
flow/deployed
flow/done
flow/implementation
flow/intake
flow/maintained
flow/observed
flow/ready
flow/refining
flow/retired
flow/review
iterating
judge/codex-candidate
judge/hermes-candidate
judge/low-confidence
judge/needs-refinement
judge/operator-needed
judge/p0
judge/p1
judge/p2
judge/p3
judge/park
judge/patchwarden-candidate
judge/stale-priority
kind/adr
kind/bug
kind/chore
kind/feature
kind/infra
kind/ops
kind/refactor
kind/research
large-impact
merge/auto
merge/manual
merge/manual-dependency-conflict
merge/manual-failing-tests
merge/manual-merge-conflict
merge/manual-missing-review
merge/manual-operator-preference
merge/manual-red-zone
merge/manual-security-sensitive
merge/manual-unclear-scope
merge/manual-unknown
meta
mode:operator-only
mode:patchwarden-iskra-approved
mode:safe-auto
needs-operator-decision
needs-triage
not-ready
observed/erroring
observed/needs-followup
observed/pending
observed/retire-candidate
observed/unused
observed/used
operator-emotional
owner-attention
phase/02
phase/03
priority:p0
priority:p1
priority:p2
priority:p3
proposed
ready-for-agent
ready-for-operator
recovery
review:claude-reviewed
review:codex-reviewed
review:dziadek-reviewed
review:needs-human
risk/exposure
risk/process
risk/product
risk/runtime
safety:external-write
safety:no-prod-mutation
safety:prod-impact
safety:secret-touch
size/large
size/medium
size/small
size/tiny
size/unknown
source/adr
source/agent-generated
source/manual
source/operator-chat
source/voice-note
status:blocked
status:codex-ready
status:merged:pending-evidence
status:needs-evidence
status:operator-needed
status:parked
tier/full
tier/lite
tier/stacked
tier:0-platform-substrate
tier:1-iskra-value-layer
tier:2-tools-products-modules
type:bug
type:chore
type:docs
type:feat
type:policy
type:research
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pdurlej/platform!685
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "codex/675-runner-hardening-audit"
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?
Canary status: missing — fire canary 3+3 manually before merge
Summary
Adds a read-only Forgejo runner hardening audit for #675 and records the current rs2000 Docker runner risk as explicit, test-backed evidence.
This intentionally does not remove the Docker socket, restart runners, change Infisical tokens, or mutate RS2000. It turns the current risk into a deterministic report and documents the safe next sequence: build/apply separation first, then socket removal/proxy or build-only runner.
What changed
platformctl.ci.runner_hardening_auditwith JSON/Markdown output.docker:hostlabel;runnerHardeningPolicyto.forgejo/ci-policy.yaml.docs/ci/runner-contract.mdandrunbooks/forgejo-actions-runner.mdwith the #675 hardening gate and audit command.Canary Context Pack
Product story
The platform should stop treating the Forgejo Docker runner's host-compromise surface as implicit tribal knowledge. The operator and future agents need a boring, reproducible report before touching runner runtime or CI trust boundaries.
What changed
This PR adds read-only evidence and documentation only. The audit reports current runner hardening findings and can be run before/after later hardening PRs.
Why it changed
Issue #675 identified the Docker runner as a high-value privilege-escalation surface: raw Docker socket, persistent state, and Infisical token access on a runner that executes agent-authored workflow code.
Files touched
.forgejo/ci-policy.yamlcontrol-plane/platformctl/ci/runner_hardening_audit.pycontrol-plane/platformctl/tests/test_runner_hardening_audit.pycontrol-plane/platformctl/tests/test_forgejo_ci_scripts_contract.pydocs/ci/runner-contract.mdrunbooks/forgejo-actions-runner.mdRelevant context
infra/forgejo-runner/docker-compose.ymlinfra/forgejo-runner/config.yamldocs/ci/runner-contract.mdrunbooks/forgejo-actions-runner.md.forgejo/ci-policy.yamlRuntime evidence
No runtime mutation. No token access. No runner restart.
Local validation:
Results:
platformctl validate all --json: exitCode 0Note:
uvcurrently panicked locally in macOSsystem-configurationbefore Python startup, so validation was rerun with the system Python already carrying the repo dependencies. The observed failure was inuv, not in the tests.Known constraints
The audit intentionally reports current high/critical findings. It is evidence for #675, not a merge-blocking default check yet.
Explicit out-of-scope
Requested decision
Merge if the read-only audit and documented hardening sequence are useful as the first safe artifact for #675.
Merge blockers
Spec sources read
infra/forgejo-runner/docker-compose.yml— current versioned runner compose shape.infra/forgejo-runner/config.yaml— current runner container mount allowlist.docs/ci/runner-contract.md— CI trust boundary contract.runbooks/forgejo-actions-runner.md— runner operations/runbook context..forgejo/ci-policy.yaml— existing CI policy structure.Refs #675
Patchwarden PR sanity
advisory_findings685cfa7392f97ddaaba7807240ef975e5bcdc2eeb00presentDeterministic findings
No deterministic findings.
Model reviewers
global-glm/glm-5.1:cloudStatus:
okVerdict:
NOT_OKblockerEmpty diff prevents evidence-based reviewDiff section is empty despite PR claiming changes to 6+ files including control-plane/platformctl/ci/runner_hardening_audit.py, tests, and policy fileshighCanary status explicitly missingPR description states: 'Canary status: missing — fire canary 3+3 manually before merge'global-deepseek/deepseek-v4-pro:cloudokOKredteam/kimi-k2.6:cloudokOKPolicy notes
PLATFORMCTL_PR_SANITY_REDTEAM_MODELis configured.