-
Notifications
You must be signed in to change notification settings - Fork 15
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(scannercli): Pass temporary robot account credentials to scannercli #50
fix(scannercli): Pass temporary robot account credentials to scannercli #50
Conversation
Pass Robot Account credentials generated by Harbor for each scan request through to the scannercli command as --registry-username and --registry-password flags. This feature is enabled by setting the value of the SCANNER_CLI_OVERRIDE_REGISTRY_CREDENTIALS to true. It has to be enable explicitly as not every version of scannercli accepts the --registry-username and --registry-password flags. Resolves: #37 Signed-off-by: Daniel Pacak <[email protected]>
Signed-off-by: Simarpreet Singh <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, there's a missing case that I added here f858b8d but am unable to push to this fork.
Before merging we have to wait for the new release of scannercli , which supports Also we'll have to explain that only newer versions of Aqua / scannercli do support Harbor with deployment security enabled. /cc @simar7 |
Codecov Report
@@ Coverage Diff @@
## master #50 +/- ##
==========================================
+ Coverage 40.55% 45.43% +4.88%
==========================================
Files 15 15
Lines 503 548 +45
==========================================
+ Hits 204 249 +45
Misses 293 293
Partials 6 6
Continue to review full report at Codecov.
|
Signed-off-by: Daniel Pacak <[email protected]>
…li (#50) Pass Robot Account credentials generated by Harbor for each scan request through to the scannercli command as --robot-username and --robot-password flags. This feature is enabled by setting the value of the SCANNER_CLI_OVERRIDE_REGISTRY_CREDENTIALS to true. It has to be enable explicitly as not every version of scannercli accepts the --robot-username and --robot-password flags. Resolves: #37 Co-authored-by: Simarpreet Singh <[email protected]> Signed-off-by: Daniel Pacak <[email protected]>
Resolves: #37
Signed-off-by: Daniel Pacak [email protected]