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

chore(lib-injection): use non-root user in image #4490

Merged
merged 1 commit into from
Nov 8, 2022

Conversation

Kyle-Verhoog
Copy link
Member

@Kyle-Verhoog Kyle-Verhoog commented Nov 7, 2022

Containers using the root user can be blocked in Kubernetes which makes our lib injection image incompatible with certain Kubernetes configurations.

The solution is to simply add and use a non-root user in the image.

Follows the suggested user configuration mentioned here:

mhart/alpine-node#48 (comment) and supported by this write up.

Resolves #4476

Reviewer Checklist

  • Title is accurate.
  • Description motivates each change.
  • No unnecessary changes were introduced in this PR.
  • Avoid breaking API changes unless absolutely necessary.
  • Tests provided or description of manual testing performed is included in the code or PR.
  • Release note has been added for fixes and features, or else changelog/no-changelog label added.
  • All relevant GitHub issues are correctly linked.
  • Backports are identified and tagged with Mergifyio.

@Kyle-Verhoog Kyle-Verhoog marked this pull request as ready for review November 7, 2022 23:49
@Kyle-Verhoog Kyle-Verhoog requested a review from a team as a code owner November 7, 2022 23:49
ahmed-mez
ahmed-mez previously approved these changes Nov 8, 2022
brettlangdon
brettlangdon previously approved these changes Nov 8, 2022
Containers using the root user can be blocked in Kubernetes which makes
our lib injection image incompatible with certain Kubernetes
configurations.

The solution is to simply add and use a non-root user in the image.
@Kyle-Verhoog Kyle-Verhoog merged commit 22fecd9 into 1.x Nov 8, 2022
@Kyle-Verhoog Kyle-Verhoog deleted the lib-injection-user branch November 8, 2022 21:29
@github-actions github-actions bot added this to the v1.7.0 milestone Nov 8, 2022
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 this pull request may close these issues.

Add a non-root user to run containers from the dd-lib-python-init image
5 participants