Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run init container cp-solr-xml as nonRoot #582

Open
janhoy opened this issue Jun 29, 2023 · 0 comments · May be fixed by #649
Open

Run init container cp-solr-xml as nonRoot #582

janhoy opened this issue Jun 29, 2023 · 0 comments · May be fixed by #649
Assignees

Comments

@janhoy
Copy link
Contributor

janhoy commented Jun 29, 2023

Today we use busybox image with root user to run the cp-solr-xml init. This prevents runAsNonRoot: true to be set on the Solr pod. Either find a variant of busybox with non-root user, or explicitly specify runAsUser: 65534 on the init container. Busybox image has a nobody user available ootb that I think we could use:

# docker run --rm busybox cat /etc/passwd
root:x:0:0:root:/root:/bin/sh
daemon:x:1:1:daemon:/usr/sbin:/bin/false
bin:x:2:2:bin:/bin:/bin/false
sys:x:3:3:sys:/dev:/bin/false
sync:x:4:100:sync:/bin:/bin/sync
mail:x:8:8:mail:/var/spool/mail:/bin/false
www-data:x:33:33:www-data:/var/www:/bin/false
operator:x:37:37:Operator:/var:/bin/false
nobody:x:65534:65534:nobody:/home:/bin/false
@janhoy janhoy linked a pull request Oct 27, 2023 that will close this issue
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 a pull request may close this issue.

2 participants