stonezdj
0529db0c54
Delete scan_report when accessory is removed
...
fixes #20319
Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2024-04-26 20:58:41 +08:00
stonezdj(Daojun Zhang)
2e7db335b3
Add auto generate SBOM on push feature ( #20250 )
...
Signed-off-by: stonezdj <daojunz@vmware.com>
Co-authored-by: stonezdj <daojunz@vmware.com>
Co-authored-by: Wang Yan <wangyan@vmware.com>
2024-04-09 09:30:53 +00:00
MinerYang
b38de22054
bump golang 1.21.5 & fix golangci-lint error ( #19722 )
...
bump golang 1.21.5
update golangci-lint && fix revive error
fix white space lint
Signed-off-by: yminer <yminer@vmware.com>
2023-12-19 09:41:26 +08:00
stonezdj(Daojun Zhang)
7b0beed934
Delete tag retention rule and tag immutable rule when deleting project ( #19390 )
...
fixes #18250
Signed-off-by: stonezdj <daojunz@vmware.com>
2023-10-24 04:28:16 +00:00
Chlins Zhang
a036e4a7b0
fix: skip to delete scan reports if the digest still referenced ( #19110 )
...
fix: skip to delete scan reports if the digest still referenced by other artifacts
Avoid to delete the scan reports in case the artifact deleted but still
referenced by the other artifacts.
Signed-off-by: chlins <chenyuzh@vmware.com>
2023-08-07 14:00:26 +08:00
Chlins Zhang
94c76002a2
refactor: remove duplicated artifact deletion handler ( #18959 )
...
Remove the duplicated artifact deletion event handler and enhance the
internal artifact onDelete method.
Signed-off-by: chlins <chenyuzh@vmware.com>
2023-07-24 13:38:39 +08:00
Chlins Zhang
970bdab936
fix: correct the operator in the webhook payload ( #18906 )
...
Fix the incorrect or meaningless operator in the webhook payload.
Fixes : #18438
Signed-off-by: chlins <chenyuzh@vmware.com>
2023-07-19 15:40:29 +08:00
Chlins Zhang
a98711c0fc
fix: clean up scan executions and reports after deleting artifact ( #18693 )
...
Cleanup the associated resources(scan executions and scan reports) after
deletion of artifact.
Fixes : #18634
Signed-off-by: chlins <chenyuzh@vmware.com>
2023-05-31 14:54:52 +08:00
stonezdj(Daojun Zhang)
d03f0dcf2d
Skip to update pull time and pull count for scanner robot account ( #17807 )
...
Add prefix for scanner robot account
Fixes #14638
Signed-off-by: stonezdj <daojunz@vmware.com>
# Conflicts:
# api/v2.0/swagger.yaml
# src/common/const.go
# src/lib/config/metadata/metadatalist.go
2023-02-20 15:09:21 +08:00
chlins
de7978e1b5
feat: async update artifact pull time and repository pull count
...
Signed-off-by: chlins <chenyuzh@vmware.com>
2021-12-24 11:17:44 +08:00
Wang Yan
7608df4b5c
add pull update control env ( #16051 )
...
These variables are temporary solution for issue: https://github.com/goharbor/harbor/issues/16039
When user disable the pull count/time/audit log, it will decrease the database access, especially in large concurrency pull scenarios.
1, PULL_TIME_UPDATE_DISABLE : The flag to indicate if pull time is disable for pull request.
2, PULL_COUNT_UPDATE_DISABLE : The flag to indicate if pull count is disable for pull request.
3, pull audit log will not create on disabling pull time.
Signed-off-by: Wang Yan <wangyan@vmware.com>
2021-11-26 18:13:23 +08:00
He Weiwei
1b955cd28e
fix: supply the latest tag of artifact to scan request
...
Closes #14416 #14299
Signed-off-by: He Weiwei <hweiwei@vmware.com>
2021-06-08 10:11:10 +00:00
Wang Yan
9ef50ed430
refactor notification ( #14406 )
...
* Refactor webhook
refactor notification to new programming model
Signed-off-by: wang yan <wangyan@vmware.com>
2021-03-22 17:27:23 +08:00
wang yan
b51aaac26e
fix event log issue
...
fixes #12554
Add string method for each event, and the detail can be logged in the core.log
Signed-off-by: wang yan <wangyan@vmware.com>
2020-08-26 18:27:21 +08:00
Wang Yan
588bf475ae
fix update pull time issue ( #12601 )
...
fixes #12574
let the tag ID as 0 when tags array is empty when to update pull time
Signed-off-by: wang yan <wangyan@vmware.com>
2020-07-28 12:15:46 +08:00
He Weiwei
bc1f7b8079
feat(scan): support to scan artifact automatic after it pushed
...
Closes #11692
Signed-off-by: He Weiwei <hweiwei@vmware.com>
2020-04-26 15:56:58 +00:00
wang yan
a11a70d941
move logger from common to lib
...
The logger is the fundamental library, so move it into lib folder
Signed-off-by: wang yan <wangyan@vmware.com>
2020-04-02 14:09:03 +08:00
Wenkai Yin(尹文开)
8984979bd2
Relocate/rename some packages ( #11183 )
...
Fixes #11016
1. src/pkg/q->src/internal/q
2. src/internal->src/lib (internal is a reserved package name of golang)
3. src/api->src/controller
Signed-off-by: Wenkai Yin <yinw@vmware.com>
2020-03-24 20:45:45 +08:00