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

Can not use polaris audit --helm-chart inside the polaris container. #1042

Open
2 tasks done
devopsInterviews opened this issue Apr 3, 2024 · 2 comments
Open
2 tasks done
Labels
bug Something isn't working stale Marked as stale by stalebot triage This bug needs triage

Comments

@devopsInterviews
Copy link

What happened?

Hi Im using the latest polaris container (9.0.1) and use this command inside the container:

polaris audit --helm-chart /tmp/my-chart --helm-values /tmp/my-chart/values.yaml

I got this error:

ERRO[0000]
ERRO[0000] Couldn't process helm chart: exec: "helm": executable file not found in $PATH

Why it says we need helm as part of the container? should't it be part of it in order to use the tool?

What did you expect to happen?

To show the regular security check

How can we reproduce this?

Run the 9.0.1 version

Version

9.0.1

Search

  • I did search for other open and closed issues before opening this.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Additional context

No response

@devopsInterviews devopsInterviews added bug Something isn't working triage This bug needs triage labels Apr 3, 2024
@sudermanjr
Copy link
Member

The container is built as minimally as possible in order to avoid external dependencies and extra size - it's essentially just the polaris binary.

The --helm-chart feature is a convenience that wraps helm template and pipes it into a polaris audit command.

If you need to run polaris against helm charts, I would recommend that you install helm and polaris in your CI process - as they are both small binaries that should be quick to install.

@devopsInterviews
Copy link
Author

@sudermanjr thanks for the quick answer!
So there is no official docker image that combines both?
Should I build one on my own?

@github-actions github-actions bot added the stale Marked as stale by stalebot label Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale Marked as stale by stalebot triage This bug needs triage
Projects
None yet
Development

No branches or pull requests

2 participants