fix(f6): fix-data-perms must run as root; PSA labels for logging + cnpg-system (#58)
This commit is contained in:
parent
da5530200e
commit
a8534bae42
4 changed files with 28 additions and 23 deletions
|
|
@ -45,11 +45,8 @@ spec:
|
|||
image: docker:27-dind
|
||||
imagePullPolicy: IfNotPresent
|
||||
securityContext:
|
||||
# Image default user (uid 1000). No root needed: the dind socket is
|
||||
# 0660 root:1000 (dockerd --group 1000) and fix-data-perms owns the
|
||||
# PVC as 1000:1000.
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
# root is needed for exactly one thing: chown of the PVC.
|
||||
runAsUser: 0
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
|
|
@ -148,13 +145,12 @@ spec:
|
|||
# job in onionwire/siriusdevops-contact.
|
||||
image: code.forgejo.org/forgejo/runner:5.0.1
|
||||
imagePullPolicy: IfNotPresent
|
||||
# uid 1000 in this image vs a `660 root:docker` dind socket: the dind
|
||||
# container's one-shot chmod 666 can race a dockerd restart and the
|
||||
# runner's wait loop only checks that the socket exists, so it would
|
||||
# crashloop on "permission denied". Running as root is what the amd64
|
||||
# runner proved deterministic (2eff85b).
|
||||
securityContext:
|
||||
runAsUser: 0
|
||||
# The image's own user. No root needed: the dind socket is 0660
|
||||
# root:1000 (`dockerd --group 1000`) and fix-data-perms owns the PVC
|
||||
# as 1000:1000, so the actions cache is writable.
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
|
|
|
|||
Loading…
Reference in a new issue