+
Skip to content

Harden Container Runtime with Non-Root User #2716

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

Merged
merged 1 commit into from
Jun 6, 2025
Merged

Conversation

wagoodman
Copy link
Contributor

@wagoodman wagoodman commented Jun 6, 2025

This PR makes the following changes:

  • uses gcr.io/distroless/static-debian12 as the base image
  • ensures the built containers are non-root users

In the process of working on this additional docker manifest updates were made:

  • image_templates section was missing from the debug variant
  • the top-level images should be the manifests and the tagged images should always be architecture specific (according to best practices)

This is the sister PR to anchore/syft#3941 contributed by @MikeTheCyberGuy

Changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have added unit tests that cover changed behavior
  • I have tested my code in common scenarios and confirmed there are no regressions
  • I have added comments to my code, particularly in hard-to-understand sections

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
@wagoodman wagoodman enabled auto-merge (squash) June 6, 2025 15:44
@wagoodman wagoodman merged commit 510937f into main Jun 6, 2025
12 checks passed
@wagoodman wagoodman deleted the nonroot-image branch June 6, 2025 16:06
@wagoodman wagoodman added the bug Something isn't working label Jun 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载