Skip to content

chore(kube): pin runner images and harden cache cleanup#7754

Merged
h0lybyte merged 1 commit intodevfrom
trunk/arc-runner-hardening-1772918150
Mar 7, 2026
Merged

chore(kube): pin runner images and harden cache cleanup#7754
h0lybyte merged 1 commit intodevfrom
trunk/arc-runner-hardening-1772918150

Conversation

@h0lybyte
Copy link
Member

@h0lybyte h0lybyte commented Mar 7, 2026

Summary

  • Pin floating image tags to specific versions to prevent supply chain drift
  • Harden cache cleanup CronJob with security context

Changes

Image Pinning

Image Before After
actions-runner :latest :2.332.0
docker (DinD) :dind :29.2.1-dind
alpine (cleanup) :3.19 :3.21

Cache Cleanup Hardening

  • Added pod securityContext: runAsNonRoot (UID 1000), seccomp RuntimeDefault
  • Added container securityContext: no privilege escalation, read-only FS, drop ALL capabilities
  • Added activeDeadlineSeconds: 300 (5 min timeout)
  • Set backoffLimit: 0 + restartPolicy: Never (fail fast)

Risk

Low — image pins are the latest stable versions. CronJob hardening only restricts the cleanup container (read-only FS is fine since it only reads/deletes from the mounted PVC).

Test plan

  • Runner pods start with pinned image versions
  • CI workflows complete successfully on arc-runner-set
  • Cache cleanup CronJob runs at 3 AM UTC without errors
  • Docker builds work with docker:29.2.1-dind

🤖 Generated with Claude Code

Pin floating image tags to prevent supply chain drift:
- actions-runner:latest → actions-runner:2.332.0
- docker:dind → docker:29.2.1-dind
- alpine:3.19 → alpine:3.21

Harden cache cleanup CronJob:
- Add securityContext (non-root, read-only FS, drop ALL caps, seccomp)
- Add activeDeadlineSeconds: 300
- Set backoffLimit: 0 and restartPolicy: Never
@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@h0lybyte h0lybyte merged commit 6c3c1b0 into dev Mar 7, 2026
5 checks passed
@h0lybyte h0lybyte deleted the trunk/arc-runner-hardening-1772918150 branch March 7, 2026 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant