MinerYang
3b72fabe0f
bump up golang to 1.18.8 ( #17750 )
...
Signed-off-by: yminer <yminer@vmware.com>
Signed-off-by: yminer <yminer@vmware.com>
2022-11-04 16:16:19 +08:00
Shijun Sun
1c61b4eedf
[Cherry-pick]Update the way for refreshing cli-secret ( #17745 )
...
Update the way for refreshing cli-secret
Signed-off-by: AllForNothing <sshijun@vmware.com>
Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-11-04 10:49:42 +08:00
Wang Yan
1c689892bc
add cli randomly for empty update ( #17743 )
...
give an random cli secret when client gives empty update.
Signed-off-by: Wang Yan <wangyan@vmware.com>
Signed-off-by: Wang Yan <wangyan@vmware.com>
2022-11-04 10:06:59 +08:00
Shijun Sun
168069a95f
[Cherry-pick]Add triggers and filters check for target changing under push mode ( #17732 )
...
Add triggers and filters check for target changing under push mode
Signed-off-by: AllForNothing <sshijun@vmware.com>
Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-11-02 15:50:36 +08:00
Chlins Zhang
d810b571d9
[cherry-pick] fix: add human friendly message when export cve job failure ( #17729 )
...
fix: add human friendly message when export cve job failure
Add human friendly when export CVE in the condition of empty CSV file,
because this file will be stored as system artifact and pushed to
distribution, but it will leads to error when push empty blob to S3
storage driver.
Signed-off-by: chlins <chenyuzh@vmware.com>
2022-11-01 17:31:31 +08:00
Shijun Sun
62336fa0f5
[Cherry-pick]Add copy_by-chunk checkbox for replication rule ( #17727 )
...
Add copy_by-chunk checkbox for replication rule
Signed-off-by: AllForNothing <sshijun@vmware.com>
Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-11-01 15:41:24 +08:00
Chlins Zhang
1af9fbfbfe
[cherry-pick] feat: introduce the copy by chunk for replication ( #17728 )
...
feat: introduce the copy by chunk for replication
1. Add sql migration to alter replication policy table
2. Implement the PullBlobChunk and PushBlobChunk for the underlying v2 registry client
3. Update image transfer logic to support copy by chunk
4. Update the replication policy API handler
Signed-off-by: chlins <chenyuzh@vmware.com>
2022-11-01 14:34:14 +08:00
stonezdj(Daojun Zhang)
4c54ff3d9d
(cherry-pick)Add check when adding project member ( #17721 )
...
Add check when adding project member
Signed-off-by: stonezdj <stonezdj@gmail.com>
Signed-off-by: stonezdj <stonezdj@gmail.com>
2022-10-31 13:01:32 +08:00
Yang Jiao
3583b0e5a9
Refresh base images ( #17720 )
...
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-10-31 11:50:52 +08:00
Yang Jiao
cd2a632c54
Bump up version to v2.6.2 ( #17687 )
...
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-10-27 14:29:54 +08:00
MinerYang
125c33f019
bump github.com/prometheus/client_golang to v1.13.0 ( #17686 )
...
Signed-off-by: yminer <yminer@vmware.com>
Signed-off-by: yminer <yminer@vmware.com>
2022-10-27 13:15:49 +08:00
MinerYang
95d8d86cfe
bump up golang.org/x/crypto to v0.1.0 ( #17692 )
...
Signed-off-by: yminer <yminer@vmware.com>
Signed-off-by: yminer <yminer@vmware.com>
2022-10-27 10:33:58 +08:00
MinerYang
e81329afe2
bump up golang to 1.18.7 ( #17693 )
...
bump up goolang to 1.18.7
Signed-off-by: yminer <yminer@vmware.com>
Signed-off-by: yminer <yminer@vmware.com>
2022-10-26 20:27:24 +08:00
MinerYang
c737d2e482
bump up golang.org/x/text to v0.4.0 ( #17690 )
...
bump up golang.org/x/text tp v0.4.0
Signed-off-by: yminer <yminer@vmware.com>
Signed-off-by: yminer <yminer@vmware.com>
2022-10-26 20:24:31 +08:00
MinerYang
bc88aa4dc3
bump helm.sh/helm/v3 to bump up github.com/docker/cli ( #17697 )
...
Signed-off-by: yminer <yminer@vmware.com>
Signed-off-by: yminer <yminer@vmware.com>
2022-10-26 16:43:44 +08:00
Shengwen YU
9f6c1c56da
[cherry-pick] feat: bump TRIVYVERSION to v0.32.1 and bump TRIVYADAPTERVERSION to v0.30.2 ( #17681 ) ( #17685 )
...
feat: bump TRIVYVERSION to v0.32.1 and bump TRIVYADAPTERVERSION to v0.30.2 (#17681 )
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2022-10-25 21:23:30 +08:00
Yang Jiao
585fe6dc83
[cherry-pick]Add export CVE UI testcase ( #17675 )
...
Add export CVE UI testcase
1 Add CVE function verification
2 Add content validation of exported CSV file
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-10-21 18:41:54 +08:00
Yang Jiao
058e84c73f
[cherry-pick] Remove singularity testcase ( #17665 )
...
Singularity has been renamed to Apptainer
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-10-20 10:17:52 +08:00
Yang Jiao
2903d5934c
Refresh base images ( #17635 )
...
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-10-10 11:01:26 +08:00
Yang Jiao
16eed9f91e
[cherry-pick]Add scan data export API test case ( #17604 )
...
Add scan data export API test case
1. Add export scan data API test case
2. Add get scan data export execution list test case
3. Add get scan data export execution test case
4. Add download scan data test case
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-09-30 11:51:59 +08:00
Yang Jiao
7bb86fb7e1
[cherry-pick]Remove the log in testcase ( #17601 )
...
Remove logs that do not need to be printed
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-09-27 13:51:48 +08:00
Yang Jiao
2004154893
[cherry-pick]Add audit log forward UI testcase ( #17592 )
...
Add audit log forward UI testcase
Verify that the audit log forward function is correct.
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-09-27 10:46:44 +08:00
Yang Jiao
f33ba83d84
[cherry-pick]Add audit log forword API test case ( #17590 )
...
Add audit log forword API test case
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-09-27 10:45:18 +08:00
Yang Jiao
9c4d7297a6
Bump up version to v2.6.1 ( #17598 )
...
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-09-26 11:57:29 +08:00
MinerYang
66a45943d6
bumpup golang to v1.18.6 on release-2.6.0 ( #17593 )
...
Signed-off-by: yminer <yminer@vmware.com>
Signed-off-by: yminer <yminer@vmware.com>
2022-09-22 17:37:04 +08:00
stonezdj(Daojun Zhang)
16306a15d5
(cherry-pick) Add check on the audit log forward and skip audit log database ( #17576 )
...
Add check on the audit log forward and skip audit log database
fixes #17524
Signed-off-by: stonezdj <stonezdj@gmail.com>
2022-09-21 16:30:11 +08:00
Chlins Zhang
8266bbe456
[cherry-pick] fix: handle the break change for parse external sentinel redis url ( #17509 )
...
fix: handle the break change for parse external sentinel redis url
Handle the ParseSentinelURL to resolve an incompatible modification that does not recognize the default redis database.
Closes : #17483
Signed-off-by: chlins <chenyuzh@vmware.com>
Signed-off-by: chlins <chenyuzh@vmware.com>
2022-09-07 13:40:54 +08:00
Yang Jiao
8979cb7fe2
[cherry-pick]Add audit log and log rotation test cases ( #17466 )
...
* Add audit log and log rotation test cases
1. Add audit log test case
2. Add log rotation test case
3. Add log rotation schedule test case
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
* Refresh base images
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-08-30 11:27:13 +08:00
Yang Jiao
b035ca7cd9
Refresh base images ( #17471 )
...
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-08-28 11:58:24 +08:00
Yang Jiao
520a5b8156
[cherry-pick]Update portal-base and nginx-base Dockerfile.base ( #17445 )
...
Update portal-base and nginx-base Dockerfile.base
Installing nginx 1.22 creates the nginx group and nginx user, so instead
of creating them again, modify them.
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-08-24 15:28:46 +08:00
Shijun Sun
5736350e1b
[Chrry-pick]Add WASM filter for artifacts list ( #17448 )
...
Add WASM filter for artifacts list
Signed-off-by: AllForNothing <sshijun@vmware.com>
Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-08-23 17:00:51 +08:00
Chenyu Zhang
92fe162f84
[cherry-pick] fix: validate the existence of project for export cve api ( #17441 )
...
fix: validate the existence of project for export cve api
Validate the existence of the project for export CVE API handler, return
not found error if the project is not exist.
Closes : #17430
Signed-off-by: chlins <chenyuzh@vmware.com>
2022-08-23 09:29:10 +08:00
Chenyu Zhang
9b7f379be8
[cherry-pick] fix: correct description for export cve project parameter ( #17434 )
...
fix: correct description for export cve project parameter
Correct the description for the project parameter of export CVE API in
the swagger.
Closes : #17429
Signed-off-by: chlins <chenyuzh@vmware.com>
2022-08-22 11:20:27 +08:00
MinerYang
d73e922058
[cherry-pick]add deprecation msg for chartmsuem and notary ( #17417 )
...
add deprecation msg for chartmsuem and notary
Signed-off-by: yminer <yminer@vmware.com>
adjust msg
adjust typo
adjust
2022-08-17 14:55:27 +08:00
Chenyu Zhang
d7db225c9c
[cherry-pick] enhancement: add error log for create task ( #17404 )
...
enhancement: add error log for create task
Signed-off-by: chlins <chenyuzh@vmware.com>
2022-08-16 13:42:05 +08:00
Yang Jiao
2cb47a702e
[cherry-pick]Update replication and trivy testcases ( #17368 )
...
Update replication and trivy testcases
1 Update replication filter_label_xpath because of this PR #17267 updated xpath
2 Update the Manual Scan All test case, because Scan All will affect other testcases if it is not finished running
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-08-10 18:26:23 +08:00
Shijun Sun
1bbd0e35a2
[Cherry-pick]Improve unit test for sub-accessories component ( #17373 )
...
Improve unit test for sub-accessories component
Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-08-10 16:20:51 +08:00
Shijun Sun
792db58a14
[Cherry-pick]Fix ui issues found in testing-day-round-2 ( #17358 )
...
Fix ui issues found in testing-day-round-2
Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-08-09 12:15:44 +08:00
Chenyu Zhang
0b1fee46a6
[cherry-pick] fix: validate export cve request params ( #17345 )
...
fix: validate export cve request params
1. Validate export cve request params in the API handler
2. Trim space for request in the scan export job
Closes : #17326
Signed-off-by: chlins <chenyuzh@vmware.com>
2022-08-08 14:20:51 +08:00
Chenyu Zhang
c4e65e6e8c
[cherry-pick] fix: export cve for image manifest list ( #17336 )
...
fix: export cve for image manifest list
1. Fix export cve for image manifest list
2. Remove row_id column in csv file
3. Update cve execution swagger API description
Closes: #17331,#17330,#17335,#17334
Signed-off-by: chlins <chenyuzh@vmware.com>
2022-08-05 20:06:48 +08:00
MinerYang
a8b1569511
[cherry-pick]_version:2.6.0 correction in migration yml jinja ( #17329 )
...
_version:2.6.0 correction in migration yml jinja
Signed-off-by: yminer <yminer@vmware.com>
2022-08-05 16:54:46 +08:00
Chenyu Zhang
08c1cc40bf
[cherry-pick] Export CVE data Score column empty values ( #17321 ) ( #17325 )
...
Export CVE data Score column empty values (#17321 )
Closes: https://github.com/goharbor/harbor/issues/17189
Signed-off-by: prahaladdarkin <prahaladd@vmware.com>
Co-authored-by: prahaladdarkin <prahaladd@vmware.com>
2022-08-05 11:32:27 +08:00
Chenyu Zhang
5d876c088d
[cherry-pick] fix: replication webhook lost when src namespace different with dest ( #17318 )
...
fix: replication webhook lost when src namespace different with dest
Fix the replication webhook notification lost when the rule is
pull-based and src namespace different with dest.
Closes : #17298
Signed-off-by: chlins <chenyuzh@vmware.com>
2022-08-04 16:46:48 +08:00
Chenyu Zhang
408788ce5d
[cherry-pick] docs: add helpful description for cache layer configurations ( #17319 )
...
docs: add helpful description for cache layer configurations in harbor.yml.tmpl
Signed-off-by: chlins <chenyuzh@vmware.com>
2022-08-04 16:46:34 +08:00
MinerYang
44da12db6c
bump up distribution to v2.8.1+incompatible ( #17311 )
...
Signed-off-by: yminer <yminer@vmware.com>
update
2022-08-04 14:07:17 +08:00
Wang Yan
4696f46b92
fix copy artifact accessory quota issue ( #17315 )
...
It needs to request quota for accessory on copying artifact.
Signed-off-by: wang yan <wangyan@vmware.com>
2022-08-04 10:08:24 +08:00
Chenyu Zhang
7cf50ccc59
[cherry-pick] fix: reduce the high db cpu usage for tag retention ( #17313 )
...
fix: reduce the high db cpu usage for tag retention
1. Add two indexes to database migrations.
2. Skip refresh quota in middleware for requests from jobservice.
3. Refresh quota by self in the end of tag retention job.
Closes : #14708
Signed-off-by: chlins <chenyuzh@vmware.com>
2022-08-03 20:00:41 +08:00
MinerYang
edd870d8f6
bumpup golang to v1.18.5 on release-2.6.0 ( #17308 )
...
Signed-off-by: yminer <yminer@vmware.com>
2022-08-03 17:44:17 +08:00
MinerYang
a412fb7943
update image extra attributes author in labels ( #17294 )
...
Signed-off-by: yminer <yminer@vmware.com>
2022-08-03 13:56:09 +08:00
Wang Yan
fe37fb7384
[cherry-pick] update session log level ( #17304 )
...
update session log level
To avoid too much noise in the core log, udpate the level to debug.
Signed-off-by: Wang Yan <wangyan@vmware.com>
2022-08-03 13:51:40 +08:00