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

Fix semgrep errors in DockerFile #757

Open
harishmohanraj opened this issue Oct 24, 2024 · 0 comments
Open

Fix semgrep errors in DockerFile #757

harishmohanraj opened this issue Oct 24, 2024 · 0 comments
Assignees

Comments

@harishmohanraj
Copy link
Collaborator

Dockerfile
❯❯❱ dockerfile.security.missing-user-entrypoint.missing-user-entrypoint
By not specifying a USER, a program in the container may run as 'root'. This is a security hazard.
If an attacker can control a process running as root, they may have control over the container.
Ensure that the last USER in a Dockerfile is a USER other than 'root'.
Details: https://sg.run/k281

       ▶▶┆ Autofix ▶ USER non-root ENTRYPOINT []
       [52](https://github.com/airtai/fastagency-studio/actions/runs/11498469001/job/32004340182#step:7:53)┆ ENTRYPOINT []

❯❯❱ dockerfile.security.missing-user.missing-user
By not specifying a USER, a program in the container may run as 'root'. This is a security hazard.
If an attacker can control a process running as root, they may have control over the container.
Ensure that the last USER in a Dockerfile is a USER other than 'root'.
Details: https://sg.run/Gbvn

       ▶▶┆ Autofix ▶ USER non-root CMD [ "/usr/bin/bash", "-c", "./run-server.sh" ]
       [53](https://github.com/airtai/fastagency-studio/actions/runs/11498469001/job/32004340182#step:7:54)┆ CMD [ "/usr/bin/bash", "-c", "./run-server.sh" ]
                       
auth_callout/Dockerfile

❯❯❱ dockerfile.security.missing-user-entrypoint.missing-user-entrypoint
By not specifying a USER, a program in the container may run as 'root'. This is a security hazard.
If an attacker can control a process running as root, they may have control over the container.
Ensure that the last USER in a Dockerfile is a USER other than 'root'.
Details: https://sg.run/k281

       ▶▶┆ Autofix ▶ USER non-root ENTRYPOINT []
       17┆ ENTRYPOINT []

❯❯❱ dockerfile.security.missing-user.missing-user
By not specifying a USER, a program in the container may run as 'root'. This is a security hazard.
If an attacker can control a process running as root, they may have control over the container.
Ensure that the last USER in a Dockerfile is a USER other than 'root'.
Details: https://sg.run/Gbvn

       ▶▶┆ Autofix ▶ USER non-root CMD ["/bin/sh", "-c", "./run-auth-callout.sh"]
       18┆ CMD ["/bin/sh", "-c", "./run-auth-callout.sh"]
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