-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
add stop sbom scanning API #20200
add stop sbom scanning API #20200
Conversation
Signed-off-by: xuelichao <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #20200 +/- ##
=========================================
Coverage 67.56% 67.56%
=========================================
Files 991 1000 +9
Lines 109181 110384 +1203
Branches 2719 2781 +62
=========================================
+ Hits 73768 74584 +816
- Misses 31449 31798 +349
- Partials 3964 4002 +38
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Signed-off-by: xuelichao <[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.
Furthermore, please be clear and concise in the wording Scan, Create or generate. They all mean different things.
IMO generate is the wrong term here. We either scan the image for libs and create the SBOM. See. https://diffsense.com/diff/create/generate
So to summarize, Harbor scans images from SBOM material and creates a SBOM.
@@ -1028,6 +1029,41 @@ | |||
"IN_PROGRESS": "Search...", | |||
"BACK": "Back" | |||
}, | |||
"SBOM": { | |||
"CHART": { | |||
"SCANNING_TIME": "Scan completed time:", |
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.
This is not clear: It is the time it took to complete the scan or is it the time when the scan terminated?
"SBOM": { | ||
"CHART": { | ||
"SCANNING_TIME": "Scan completed time:", | ||
"SCANNING_PERCENT": "Scan completed percent:", |
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.
Percentage of completed scan.
or
Scan Completion in percent
or
Scan progress
"CHART": { | ||
"SCANNING_TIME": "Scan completed time:", | ||
"SCANNING_PERCENT": "Scan completed percent:", | ||
"SCANNING_PERCENT_EXPLAIN": "Scan completed percentage is calculated as # of successfully scanned images / total number of images referenced within the image index.", |
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.
The scan completion progress is calculated as # of successfully scanned images / total number of images referenced within the image index.
"SCANNING_PERCENT_EXPLAIN": "Scan completed percentage is calculated as # of successfully scanned images / total number of images referenced within the image index.", | ||
"TOOLTIPS_TITLE": "{{totalSbom}} of {{totalPackages}} {{package}} have known {{sbom}}.", | ||
"TOOLTIPS_TITLE_SINGULAR": "{{totalSbom}} of {{totalPackages}} {{package}} has known {{sbom}}.", | ||
"TOOLTIPS_TITLE_ZERO": "No recognizable SBOM detected" |
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.
This is not clear, and I don't think it should mean what this means.
"TOOLTIPS_TITLE_ZERO": "No recognizable SBOM detected" | ||
}, | ||
"GRID": { | ||
"PLACEHOLDER": "We couldn't find any scanning results!", |
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.
No scan results found.
This is not clear where not able to find any results or have there been no scan results.
In the first case, as a user I would like to know what Harbor could not find anything.
"FOOT_OF": "of" | ||
}, | ||
"STATE": { | ||
"OTHER_STATUS": "Not Generated", |
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.
The term generated means, here, that the process of writing/creating the SBOM after the SBOM scanning and discovering completed. Am I correct in my assumption?
"QUEUED": "Queued", | ||
"ERROR": "View Log", | ||
"SCANNING": "Generating", | ||
"STOPPED": "Generating SBOM stopped" |
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.
SBOM creation stopped
of
SBOM scan stopped
"NO_SBOM": "No SBOM", | ||
"PACKAGES": "SBOM", | ||
"REPORTED_BY": "Reported by {{scanner}}", | ||
"GENERATE": "Start SBOM", |
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.
Create SBOM
"GENERATE": "Start SBOM", | ||
"DOWNLOAD": "Download SBOM", | ||
"Details": "SBOM details", | ||
"STOP": "Stop SBOM", |
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.
Stop SBOM creation/scan
"DOWNLOAD": "Download SBOM", | ||
"Details": "SBOM details", | ||
"STOP": "Stop SBOM", | ||
"TRIGGER_STOP_SUCCESS": "Trigger stopping SBOM generation successfully" |
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.
This is not understandable, can you explain what this TRIGGER_STOP_SUCCESS does or should tell the user?
Signed-off-by: xuelichao <[email protected]>
Signed-off-by: xuelichao <[email protected]>
Signed-off-by: xuelichao <[email protected]>
Signed-off-by: wang yan <[email protected]>
Signed-off-by: wang yan <[email protected]>
Signed-off-by: wang yan <[email protected]>
Signed-off-by: wang yan <[email protected]>
add the missiong parameter when to call the stop method Signed-off-by: wang yan <[email protected]>
Signed-off-by: xuelichao <[email protected]> Signed-off-by: wang yan <[email protected]>
Signed-off-by: wang yan <[email protected]>
Signed-off-by: wang yan <[email protected]>
Signed-off-by: wang yan <[email protected]>
Signed-off-by: wang yan <[email protected]>
Signed-off-by: wang yan <[email protected]>
Signed-off-by: xuelichao <[email protected]> Signed-off-by: wang yan <[email protected]>
bump golang 1.21.8 Signed-off-by: yminer <[email protected]> Signed-off-by: wang yan <[email protected]>
Signed-off-by: stonezdj <[email protected]> Co-authored-by: stonezdj <[email protected]> Signed-off-by: wang yan <[email protected]>
Signed-off-by: guoguangwu <[email protected]> Co-authored-by: Wang Yan <[email protected]> Signed-off-by: wang yan <[email protected]>
…rbor#20214) Signed-off-by: stonezdj <[email protected]> Co-authored-by: stonezdj <[email protected]> Signed-off-by: wang yan <[email protected]>
Update swagger API for generate SBOM Signed-off-by: stonezdj <[email protected]> Co-authored-by: stonezdj <[email protected]> Signed-off-by: wang yan <[email protected]>
delete membership=0 in getProjectsByName but lets getProjects still using membership=1 for reserve if getProjectsByName not found any Signed-off-by: prima <[email protected]> Signed-off-by: wang yan <[email protected]>
Signed-off-by: Shengwen Yu <[email protected]> Signed-off-by: wang yan <[email protected]>
Signed-off-by: Shengwen Yu <[email protected]> Signed-off-by: wang yan <[email protected]>
update column if is null Signed-off-by: yminer <[email protected]> Co-authored-by: Wang Yan <[email protected]> Signed-off-by: wang yan <[email protected]>
fixes goharbor#20226 Signed-off-by: stonezdj <[email protected]> Co-authored-by: stonezdj <[email protected]> Signed-off-by: wang yan <[email protected]>
Signed-off-by: wang yan <[email protected]>
Signed-off-by: wang yan <[email protected]>
Signed-off-by: wang yan <[email protected]>
Signed-off-by: wang yan <[email protected]>
Will raise another PR to resolve the UI issues
Signed-off-by: xuelichao <[email protected]>
Thank you for contributing to Harbor!
Comprehensive Summary of your change
Issue being fixed
Fixes #(issue)
Please indicate you've done the following: