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

combine USERID and GROUPID with bpdm-user/group name #110

Closed
FaGru3n opened this issue Apr 27, 2023 · 1 comment
Closed

combine USERID and GROUPID with bpdm-user/group name #110

FaGru3n opened this issue Apr 27, 2023 · 1 comment
Assignees

Comments

@FaGru3n
Copy link
Contributor

FaGru3n commented Apr 27, 2023

Hi @nicoprow,

found out that your Dockerfiles generate a User with a new Group but they will not directly connect to used security_contecxt in deployment.yml

RUN addgroup -S bpdm && adduser -S bpdm -G bpdm
USER bpdm

some suggestion from other etx members:

ARG USERNAME=bpdm
ARG USERID=10001
ARG GID=3000

RUN groupadd --gid $GID -S $USERNAME \
    && useradd --uid $USERID --gid $GID -m $USERNAME 

other flavor if you modify the security_context in deployment.yaml

 RUN addgroup -g 101 -S bpdm  \ 
     && adduser -u 100 -S bpdm -G bpdm \ 

in little demo-run found out that user bpdm will not directly use the provided sercurity context ID`s
image

@FaGru3n FaGru3n mentioned this issue Apr 27, 2023
61 tasks
nicoprow added a commit that referenced this issue May 3, 2023
nicoprow added a commit that referenced this issue May 3, 2023
nicoprow added a commit that referenced this issue May 4, 2023
@FaGru3n
Copy link
Contributor Author

FaGru3n commented May 4, 2023

dockerfiles are updated issues can be closed for now

@FaGru3n FaGru3n closed this as completed May 4, 2023
nicoprow added a commit that referenced this issue May 11, 2023
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

No branches or pull requests

2 participants