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

Support arbitrary user IDs in secured Kubernetes environments #18871

Closed
jsoriano opened this issue May 31, 2020 · 2 comments · Fixed by #18873
Closed

Support arbitrary user IDs in secured Kubernetes environments #18871

jsoriano opened this issue May 31, 2020 · 2 comments · Fixed by #18873
Assignees
Labels
discuss Issue needs further discussion. Team:Platforms Label for the Integrations - Platforms team

Comments

@jsoriano
Copy link
Member

jsoriano commented May 31, 2020

Add support for arbitrary user IDs in secured Kubernetes environments without needing to disable permission checks.

#12905 added support for arbitrary user IDs, but it changed the permissions of the files in a way that require Beats docker images to be run with BEAT_STRICT_PERMS=false, what is not recommended so far.

We should find a way to support arbitrary user IDs, without changing the current behaviour for the rest of cases.

Related issues:

@jsoriano jsoriano added discuss Issue needs further discussion. Team:Platforms Label for the Integrations - Platforms team labels May 31, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-platforms (Team:Platforms)

@jsoriano
Copy link
Member Author

From OpenShift recommendations: "For an image to support running as an arbitrary user, directories and files that may be written to by processes in the image should be owned by the root group and be read/writable by that group. Files to be executed should also have group execute permissions."

As the files that conflict with BEAT_STRICT_PERMS don't need to be written by the beat, maybe it is enough with changing the group owner to root, and leave the permissions as they were before #12905.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss Issue needs further discussion. Team:Platforms Label for the Integrations - Platforms team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants