Files
unkin-agent a56db70937 Route iuclabs runner package installs through artifactapi (#617)
IUCLabs runner jobs pull pip, uv, go and npm packages straight from public registries because their egress blocks traefik-internal and their tools do not trust the internal CA.

- add an artifactapi component setting pip, uv, go, npm, yarn and corepack registry env on every runner
- build a combined public + internal CA bundle in an init container for SSL_CERT_FILE and REQUESTS_CA_BUNDLE
- allow every runner egress to traefik-internal on 443, replacing the dind and build copies

Reviewed-on: #617
Co-authored-by: unkin-agent <unkin-agent@unkin.net>
Co-committed-by: unkin-agent <unkin-agent@unkin.net>
2026-11-28 14:58:01 +11:00

46 lines
1.1 KiB
YAML

---
# public roots + internal CA in one bundle, so SSL_CERT_FILE keeps github.com trusted
- op: add
path: /spec/template/spec/initContainers/-
value:
name: combine-certs
image: ghcr.io/actions/actions-runner:2.338.2
command:
- sh
- -c
- cat /etc/ssl/certs/ca-certificates.crt /etc/vault-ca/ca.crt > /etc/ssl/combined/ca-certificates.crt
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
resources:
requests:
cpu: 50m
memory: 32Mi
limits:
cpu: 200m
memory: 64Mi
volumeMounts:
- name: vault-ca-cert
mountPath: /etc/vault-ca
readOnly: true
- name: combined-certs
mountPath: /etc/ssl/combined
- op: add
path: /spec/template/spec/containers/0/envFrom
value:
- configMapRef:
name: runner-artifactapi
- op: add
path: /spec/template/spec/containers/0/volumeMounts/-
value:
name: combined-certs
mountPath: /etc/ssl/combined
readOnly: true
- op: add
path: /spec/template/spec/volumes/-
value:
name: combined-certs
emptyDir: {}