Skip to content

fix(docker): support non-root base image#27

Open
sagic-orca wants to merge 1 commit into
mainfrom
fix/non-root-apk-install
Open

fix(docker): support non-root base image#27
sagic-orca wants to merge 1 commit into
mainfrom
fix/non-root-apk-install

Conversation

@sagic-orca

Copy link
Copy Markdown
Contributor

Summary

The ghcr.io/orcasecurity/orca-cli:1 base image now sets USER orca (non-root) at the end of its build. This caused RUN apk add in downstream Dockerfiles to fail with permission denied.

  • Add USER root immediately after the FROM line so apk has the required permissions during the build stage.
  • Add USER orca just before the ENTRYPOINT to drop back to the non-root user at runtime, preserving runtime security posture.

Test plan

  • Build the Docker image locally and verify apk add bash succeeds without permission errors.
  • Run the container and confirm the entrypoint executes as the orca (non-root) user.
  • Verify CI pipeline builds and passes successfully.

@orca-security-eu orca-security-eu Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed OSS Licenses high 0   medium 0   low 0   info 0 View in Orca
Passed Passed SAST high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca

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.

2 participants