Commit Graph

11692 Commits

Author SHA1 Message Date
Shengwen YU c2cb8ea4a0
fix: update go.mod (#20071)
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2024-03-01 13:24:14 +08:00
Shengwen YU c4291d4388
fix: update TRIVYVERSION=v0.49.1 && TRIVYADAPTERVERSION=v0.30.22 (#20040)
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2024-02-29 20:11:52 +08:00
Shengwen YU 7103af0264
feat: bump up golang-runtime from 1.20.7 to 1.21.7 (#20046)
* feat: bump up golang-runtime from 1.20.7 to 1.21.7

Signed-off-by: Shengwen Yu <yshengwen@vmware.com>

* fix: update code to comply golangci-lint

Signed-off-by: Shengwen Yu <yshengwen@vmware.com>

* fix: update the mocks per the change of source code

Signed-off-by: Shengwen Yu <yshengwen@vmware.com>

---------

Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2024-02-29 19:33:29 +08:00
Shengwen YU 93bdcf5c58
Bump up version to v2.8.5 (#20041)
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2024-02-27 18:38:47 +08:00
stonezdj(Daojun Zhang) cc328163a6
[cherry-pick]Limit URL to local site (#20024)
Limit URL to local site

Signed-off-by: stonezdj <daojunz@vmware.com>
Co-authored-by: stonezdj <daojunz@vmware.com>
2024-02-26 09:21:28 +00:00
stonezdj(Daojun Zhang) c097e4c1a7
[cherry-pick] fix: increase beego max memory and upload size (#19578) (#19670)
fix: increase beego max memory and upload size (#19578)

1. Increase the default beego max memory and upload size from 32GB to
   128GB.
2. Support customize the two beego configs from env.




(cherry picked from commit 553c85eed0)

Signed-off-by: chlins <chenyuzh@vmware.com>
Signed-off-by: stonezdj <daojunz@vmware.com>
Co-authored-by: Chlins Zhang <chenyuzh@vmware.com>
Co-authored-by: Wang Yan <wangyan@vmware.com>
2023-12-06 08:39:52 +08:00
stonezdj(Daojun Zhang) 10286c7073
[cherry-pick] Allow POST method to request service/token in readonly mode (#19562)
Allow POST method to request service/token in readonly mode

  fixes #18243

Signed-off-by: stonezdj <daojunz@vmware.com>
2023-11-13 10:50:25 +08:00
MinerYang 7a43ecc9d2
(cherry-pick)fix storage.redirect.disable migrate template error release-2.8.0 (#19337)
fix storage.redirect.disable migrate template error

Signed-off-by: yminer <yminer@vmware.com>
2023-09-12 11:15:40 +08:00
stonezdj(Daojun Zhang) dd959fb5b1
(cherry-pick) Remove job status track information from redis after stop the job in the queue (#19305)
Remove job status track information from redis after stop the job in the queue

  After stop in the queue:
  Remove key in {harbor_job_service_namespace}:job_track:inprogress
  Remove {harbor_job_service_namespace}:job_stats:<job_id>
  fixes #19211

Signed-off-by: stonezdj <daojunz@vmware.com>
2023-09-05 12:09:17 +08:00
Shijun Sun 206c5b8dc1
[Cherry-pick]Add new uri path to ShouldNotReuseRoute array (#19219)
Add new uri path to ShouldNotReuseRoute array
1.Fixes #19216

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-08-21 18:54:58 +08:00
Chlins Zhang ad3e767d51
fix: support customize cache db for business (#19184)
Support to configure the customized redis db for cache layer and other
misc business for core, by default the behavior is same with
previous(stored in db 0).

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-08-15 17:24:47 +08:00
Chlins Zhang 3f1087269e
[cherry-pick] refactor: migrate the redis command keys to scan (#19147)
refactor: migrate the redis command keys to scan

Refine the cache interface, migrate the Keys to Scan, change the redis
underlying keys command to scan.

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-08-15 10:14:49 +08:00
Yang Jiao e4cf616f40
Bump up version to v2.8.4 (#19170)
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-08-15 10:12:39 +08:00
Chlins Zhang 0de5006edf
[cherry-pick] chore: fix incorrect otel timeout in harbor yaml template (#19122)
chore: fix incorrect otel timeout in harbor yaml template

Update the incorrect otel timeout sample value in the harbor YAML
configuration template.

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-08-15 10:09:41 +08:00
MinerYang adf8c73b3b
bump go 1.20.7 && install git for p4 base golang image (#19138)
upadte docker file

Signed-off-by: yminer <yminer@vmware.com>
2023-08-14 10:55:23 +08:00
Yang Jiao 36c452b7e3
[cherry-pick]Bump up setup-gcloud to 430.0.0 (#19117)
Bump up setup-gcloud to 430.0.0

Bump up setup-gcloud to 430.0.0

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-08-08 10:50:30 +08:00
Chlins Zhang cd31bcbff1
[cherry-pick] fix: fix replication list projects with pure numberic name (#19092)
fix: fix replication list projects with pure numberic name

Quote the project name when listing projects in the replication, resolve
the issue of pure number name of project.

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-08-07 14:24:37 +08:00
Shijun Sun dd5464689a
[Cherry-pick]Convert the string "0" to number 0 (#19081)
Convert the string "0" to number 0
1. Fixes #19046

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-08-03 14:35:12 +08:00
Shengwen YU f69171f2a6
fix: bump up TRIVYVERSION=v0.44.0 and TRIVYADAPTERVERSION=v0.30.15 (#19088)
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2023-08-03 11:49:59 +08:00
Wang Yan 8b2a7e901a
[cherry-pick]fix accessory import issue (#19058)
fix accessory import issue

fixes #19041

The issuse was introduced by https://github.com/goharbor/harbor/pull/17087.
To move the import to main since the anonymous imports only allowed at main in go-cilint.

Fixes it:
To add the anonymous imports at the jobservice main since the gc job needs to remove accessory when to delete an artifact

Signed-off-by: wang yan <wangyan@vmware.com>
2023-07-31 17:18:57 +08:00
MinerYang 19d6963523
bump golang1.20.6 on release-2.8.0& build golang based on photon (#18990)
Signed-off-by: yminer <yminer@vmware.com>

remove build_golang in ci script

fix typo

try to remove tdnf install make in registry/dockerfile.binary

optimize golang image
2023-07-27 13:41:02 +08:00
Yang Jiao ec44426de3
Bump up version to v2.8.3 (#19007)
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-07-26 12:23:19 +08:00
Shengwen YU de6f57cdc7
[Cherry-pick] fix: bump-up TRIVYVERSION=v0.43.0 and TRIVYADAPTERVERSION=v0.30.14 (#18994)
fix: bump-up TRIVYVERSION=v0.43.0 and TRIVYADAPTERVERSION=v0.30.14

Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2023-07-25 10:24:35 +08:00
Yang Jiao 9a63e801ab
[cherry-pick]Fix APITEST_DB_PROXY_CACHE x509 (#18979)
Fix APITEST_DB_PROXY_CACHE x509

Fix APITEST_DB_PROXY_CACHE x509, Because cicd.harbor.vmwarecna uses a self-signed certificate.

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-07-24 13:36:56 +08:00
Yang Jiao 9269602f30
Refresh base images on 2.8 (#18961)
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-07-20 15:51:06 +08:00
Yang Jiao 46cd4f5c02
[cherry-pick]Add OIDC filter group testcase (#18915)
Add OIDC filter group testcase

Fix #17950

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-07-11 15:40:54 +08:00
Yang Jiao db915dd273
[cherry-pick]Add CloudEvents format webhook testcase (#18907)
Add CloudEvents format webhook testcase

Fix #18616

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-07-10 14:42:37 +08:00
Yang Jiao 4c335f7994
[cherry-pick]Add replication by chunk testcase (#18903)
Add replication by chunk testcase

Fix #17951

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-07-07 15:18:19 +08:00
Danny Kulchinsky f8282a56ea
[cherry-pick][2.8] fix: add retry on the caller of v2DeleteManifest instead within v2DeleteManifest (#18803)
fix: add retry on the caller of v2DeleteManifest instead within v2DeleteManifest

Signed-off-by: Danny Kulchinsky <dkulchinsky@fastly.com>
2023-06-12 16:33:20 +08:00
Viktor 0b55284ee3
Changed logic search projects in gitlab adapter for 2.8.0 (#18785)
* fix(gitlab): change logic search projects usage search_namespaces

Signed-off-by: lxShaDoWxl <lxshadowxkingxl@gmail.com>

* tests(gitlab): remove old data and actualization test

Signed-off-by: lxShaDoWxl <lxshadowxkingxl@gmail.com>

* refactor(gitlab): added debug log

Signed-off-by: lxShaDoWxl <lxshadowxkingxl@gmail.com>
(cherry picked from commit 732806221b1c1633682fe1adad4cbcd3a4687d0b)

* lint(gitlab): fix import order

Signed-off-by: lxShaDoWxl <lxshadowxkingxl@gmail.com>

---------

Signed-off-by: lxShaDoWxl <lxshadowxkingxl@gmail.com>
2023-06-07 16:46:31 +08:00
Shengwen YU d4c34dcca3
fix: update TRIVYVERSION=v0.42.0 & TRIVYADAPTERVERSION=v0.30.12 (#18782)
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2023-06-02 18:27:29 +08:00
Yang Jiao e274004c3f
[cherry-pick]Add Referrers API testcase (#18776)
Add Referrers API testcase

Fix #18617

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-06-01 16:35:03 +08:00
MinerYang 450e7e7884
bump upp distribution to v2.8.2 on release-2.8.0 (#18769)
Signed-off-by: yminer <yminer@vmware.com>
2023-05-31 14:11:07 +08:00
Yang Jiao fade2e383a
Bump up version to v2.8.2 (#18768)
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-05-31 12:05:21 +08:00
Yang Jiao d130e7bb5b
[cherry-pick]Update e2e engine image (#18749)
Update e2e engine image

1. Update containerd version to 1.7.1
2. Update docker compose version to 2.18.1
3. Update helm version to 3.12.0
4. Update ORAS version to 1.0.0
5. Update CNAB version to 0.4.0
6. Update imgpkg version to 0.36.2
7. Update cosign version to 2.0.2
8. Update docker version to 24.0.2
9. Update chromedriver version to 114.0.5735.16

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-05-30 16:50:12 +08:00
stonezdj(Daojun Zhang) 40a0e37f6b
(cherry-pick) Return error when proxy cache get too many request error(429) (#18750)
Return error when proxy cache get too many request error(429)

  Add 429 too many request error in http error
  Fixes #18707

Signed-off-by: stonezdj <stonezdj@gmail.com>
2023-05-30 15:54:29 +08:00
Wang Yan 51dbbef71c
set tag pull time for proxy cache (#18741)
fixes #18708

to set the pull time of tag for the first time cache the artifact.

Signed-off-by: Wang Yan <wangyan@vmware.com>
2023-05-29 09:37:12 +08:00
stonezdj(Daojun Zhang) 614683e92c
(cherry-pick) Use subtle.ConstantTimeCompare instead of compare directly (#18712)
Use subtle.ConstantTimeCompare instead of compare directly

Signed-off-by: stonezdj <daojunz@vmware.com>
2023-05-23 21:02:52 +08:00
Yang Jiao 96cb84aec6
[cherry-pick]Add Retain image last pull time UI test case (#18696)
Add Retain image last pull time UI test case

Fix #18690

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-05-19 11:04:41 +08:00
Yang Jiao 6f51863c2f
[cherry-pick]Add Retain image last pull time API test case (#18691)
Add Retain image last pull time API test case

Fix #18618

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-05-19 11:04:26 +08:00
Yang Jiao 31baf3141e
[cherry-pick]Fix setup-gcloud fails when building package (#18683)
Fix setup-gcloud fails when building package

Fix #18681

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-05-16 16:34:56 +08:00
Chlins Zhang 48a2061d0b
fix: remove the 2.7.3 migration sql (#18658)
Signed-off-by: chlins <chenyuzh@vmware.com>
2023-05-09 16:50:24 +08:00
Yang Jiao 1ff9031cdf
Bump up version to v2.8.1 (#18657)
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-05-09 16:04:02 +08:00
Yang Jiao 4e806ddf99
Refresh base images on release-2.8.0 (#18655)
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-05-09 13:59:33 +08:00
MinerYang 4af542d6d0
bump golang 1.20.4 on release-2.8.0 (#18648)
Signed-off-by: yminer <yminer@vmware.com>
2023-05-09 11:09:09 +08:00
Chlins Zhang 4f6efeb3d1
[cherry-pick] fix: improve the performance of list artifacts (#18639)
fix: improve the performance of list artifacts

1. Change the query for listing tasks of scan which can use the db
   index.
2. Add the gin index for task.extra_attrs.report_uuids

Fixes: #18013

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-05-05 14:05:46 +08:00
Shengwen YU a1e8914f2f
fix: update TRIVYVERSION=v0.40.0 & TRIVYADAPTERVERSION=v0.30.11 (#18622)
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2023-04-29 12:57:59 +08:00
MinerYang 405f975eab
[cherry-pick]allow redis password safe special characters on release-2.8.0 (#18587)
allow redis password safe special characters

Signed-off-by: yminer <yminer@vmware.com>

string and None type conversion
2023-04-24 09:52:33 +08:00
Yang Jiao 3c5cb274ec
[cherry-pick]Add Job Service Dashboard Workers testcase (#18581)
Add Job Service Dashboard Workers testcase

Fix #17949

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-04-23 21:13:51 +08:00
Yang Jiao 1247578b27
[cherry-pick]Fix setup docker error (#18584)
Fix setup docker error

Fix this error[https://github.com/goharbor/harbor/actions/runs/4776991336/jobs/8492390908]

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-04-23 19:26:47 +08:00