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

default security-checks flag to vuln and allow it to be tuned via env var #261

Merged

Conversation

dkulchinsky
Copy link
Contributor

@dkulchinsky dkulchinsky commented Sep 8, 2022

--security-check flag will default to vuln to avoid scanning for secrets

can be tuned via SCANNER_TRIVY_SECURITY_CHECKS env variable

fixes goharbor/harbor#17525

@CLAassistant
Copy link

CLAassistant commented Sep 8, 2022

CLA assistant check
All committers have signed the CLA.

@dkulchinsky
Copy link
Contributor Author

is anyone interested to take a look at this? @danielpacak?

@chen-keinan chen-keinan self-requested a review September 20, 2022 13:48
@chen-keinan
Copy link
Collaborator

chen-keinan commented Sep 20, 2022

@dkulchinsky I'm looking at it , could you please fix the rest_api_test.go in mean while:

  • Add SecurityChecks: "vuln" in L49
  • Add Property "env.SCANNER_TRIVY_SECURITY_CHECKS": "vuln" , L215

update config doc

@chen-keinan
Copy link
Collaborator

is anyone interested to take a look at this? @danielpacak?

@dkulchinsky do you mind if I'll take over this PR and do the change myself ?

@dkulchinsky
Copy link
Contributor Author

Hey @chen-keinan, apologies for the delay in my response, was in training for few days and missed the notification.

let me get this sorted 👍🏼

@dkulchinsky
Copy link
Contributor Author

dkulchinsky commented Sep 23, 2022

@chen-keinan pushed the changes as requested, hopefully that does the trick 😄

@chen-keinan
Copy link
Collaborator

@chen-keinan pushed the changes as requested, hopefully that does the trick 😄

Great , tests are passing now.

  • I'll have to get another PR to fix vulnerabilities (as vulnerabilities found on this image , therefore it failing)
  • I'll ping you once it done and you could rebase your PR and then we will get another release.

@chen-keinan
Copy link
Collaborator

chen-keinan commented Sep 25, 2022

@dkulchinsky since the harbor-scanner-trivy image is based in trivy image then we need to wait for this PR to be merged at trivy , I will push it ASAP.

@dkulchinsky
Copy link
Contributor Author

thanks for the update @chen-keinan!

@chen-keinan
Copy link
Collaborator

@dkulchinsky vulnerability issue has ben fixed , can you please rebase you branch with upstream.

@dkulchinsky
Copy link
Contributor Author

Hey @chen-keinan 👋🏼 everything seem to be in order now 👍🏼 thanks for the help!

@chen-keinan
Copy link
Collaborator

LGTM 🚀

@chen-keinan chen-keinan merged commit b19cf82 into aquasecurity:main Sep 28, 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.

No method to disable secrets vulnerability scanning, leading to slow scans on large images
3 participants