Roadmap 1.1: Provision a VM for the CI runner #82
Open
opened 2026-12-03 04:39:32 +01:00 by claude-bot
·
0 comments
No Branch/Tag Specified
main
docs/rustfs-attach-user-policy
feature/automate-openbao-backups
feature/deploy-openbao-ha
chore/clarify-vip-comments
enhancement/enable-secrets-encryption
chore/update-k8s-infra-provider
chore/update-monitoring-provider
bug/fix-proxmox-refresh-targets
chore/update-proxmox-infra-tls
chore/update-k8s-bootstrap-packages
chore/update-k8s-apps-provider
chore/update-pulumi-sdk
chore/stack-config-repo
chore/monitoring-config-repo
enhancement/protect-monitoring-resources
docs/add-cluster-rebuild-runbook
enhancement/k8s-infra-control-plane-vip
enhancement/monitoring-control-plane-vip
enhancement/k8s-apps-control-plane-vip
enhancement/secure-bootstrap-credentials
bug/stop-k8s-provider-replacement
enhancement/harden-k8s-bootstrap
chore/add-secret-scanning
chore/upgrade-pfsense-provider-bridge
docs/update-deploy-triggers
chore/add-ci-wait-command
enhancement/auto-deploy-proxmox-infra
chore/add-merge-skill
chore/allow-readonly-commands
feature/add-ansible-control-node
enhancement/protect-vm-templates
enhancement/protect-k3s-vms
bug/stop-bootstrap-reruns
bug/ignore-disk-speed-diff
chore/allow-git-write-commands
bug/longhorn-storage-exhaustion
feature/longhorn-ui-ingress
bug/heimdall-failover
feature/control-plane-vip-via-haproxy
No results found.
Labels
Clear labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
security-roadmap
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Portfolio security roadmap (steps 1-3)
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Medium
3
The priority is medium
Priority
Low
4
The priority is low
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Status
Abandoned
3
Somebody has started to work on this but abandoned work
Milestone
No items
No Milestone
Security Roadmap 1: Secure container supply chain
Projects
Clear projects
No projects
Security Roadmap
Backlog
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: kasun/homelab-infrastructure-as-code#82
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Why
The Gitea runner currently runs as the
gitea/runner:latestcontainer on the Docker host, next to Gitea, Postgres and all other services. A job that reaches the Docker socket effectively has root on that host. Build and deploy jobs should run on a dedicated machine with its own blast radius.The runner stays outside the k3s cluster on purpose:
01and02create and repair the cluster, so the runner can't depend on it. This is the homelab version of an enterprise management plane; recovery when everything is down ispulumi upfrom the workstation.Enterprise practice: isolated build agents with their own kernel, separated from production workloads, provisioned as code.
Design
nesting+keyctl, which widens the shared-kernel attack surface towards the Proxmox host. The runner holds the most powerful credentials (Proxmox, pfSense, Pulumi), so it gets its own kernelcontainer.docker_host: "-"), andcapacity: 1Steps
01-proxmox-infra: full clone of the Ubuntu Noble template on pve-b550, 2 vCPU, 4 GB RAM, 20 GB disk, fixed MAC with a pfSense DHCP reservation, SSH key login only (no password). The Ansible node gets a dedicated key used only for this VM (runnerAnsibleSshPublicKey), so its access can be revoked on its ownproxmox-infra:runnerIpin the private config repo and push it before the PRTools
Pulumi (Proxmox provider), Proxmox VE firewall.
Done when
pulumi upcreates the VM and it gets its reserved IPnc -zv <docker host> 3000and5432work,nc -zv <docker host> 22and any other LAN host (e.g. TrueNAS) time out. Postgres has to stay reachable because it holds the Pulumi state; limit it further with a Postgres user that can only access the state databasePortfolio evidence
qm configoutput and the firewall rule setdocs/decisions/: why a VM with act_runner + Docker job containers, and notnesting+keyctl; Proxmox itself recommends Docker in a VM; a kernel exploit from a job would land on the Proxmox host.runnercredential; the security gain is small because deploy secrets are in the job environment either way01/02build the cluster; Gitea has no mature per-job pod autoscaler like GitHub's ARCPart of the security roadmap. Keep the evidence below for the write-up (README / blog post).
Roadmap 1.1: Provision an unprivileged LXC for the CI runnerto Roadmap 1.1: Provision a VM for the CI runner