Commit Graph

11536 Commits

Author SHA1 Message Date
Yang Jiao
8bffb94ba8
[cherry-pick]Fix setup-gcloud fails when building package (#18684)
Fix setup-gcloud fails when building package

Fix #18681

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-05-16 17:28:11 +08:00
Chlins Zhang
2ee3c3e40d
fix: patch migration SQL by code (#18660)
Using code to patch the migration SQL instead of migration SQL file by
go-migrate, the latter way will bring the potential upgrade issue, refer
to code comments for more details.

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-05-16 15:08:34 +08:00
MinerYang
e54389f271
bump golang 1.19.9 on release-2.7.0 (#18650)
Signed-off-by: yminer <yminer@vmware.com>
2023-05-09 11:11:52 +08:00
Chlins Zhang
e180723bdc
[cherry-pick] fix: improve the performance of list artifacts (#18632)
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:15:55 +08:00
MinerYang
a051373ee9
[cherry-pick]allow redis password safe special characters on release-2.7.0 (#18586)
allow redis password safe special characters

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

string and None type conversion
2023-04-24 09:52:17 +08:00
Yang Jiao
369129ef66
Add Job Service Dashboard Workers testcase (#18582)
Fix #17949

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-04-23 21:13:36 +08:00
Yang Jiao
2ed1e4f2ea
[cherry-pick]Fix setup docker error (#18585)
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 21:13:04 +08:00
Yang Jiao
35047cf71a
[cherry-pick]Add Job Service Dashboard Schedules testcase (#18556)
Add Job Service Dashboard Schedules testcase

Fix #17949

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-04-20 11:12:11 +08:00
Shengwen YU
c2c29fe98a
feat: update TRIVYVERSION=v0.40.0, TRIVYADAPTERVERSION=v0.30.11 (#18559)
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2023-04-20 10:37:21 +08:00
Yang Jiao
efd47c00be
Bump up version to v2.7.2 (#18550)
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-04-19 15:57:18 +08:00
Shengwen YU
0d6633e7ce
feat: bump up TRIVYVERSION=v0.39.0, TRIVYADAPTERVERSION=v0.30.10 (#18547)
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2023-04-19 08:55:08 +08:00
MinerYang
81caccd3f8
bump helm.sh/helm/v3 v3.11.3 on release-2.7.0 (#18548)
bump helm.sh/helm/v3 v3.11.3

Signed-off-by: yminer <yminer@vmware.com>
2023-04-18 19:17:48 +08:00
MinerYang
18323eb9ee
bump golang.org/x/net v0.9.0 on release-2.7.0 (#18544)
bump golang.org/x/net v0.9.0

Signed-off-by: yminer <yminer@vmware.com>
2023-04-18 14:14:02 +08:00
Chlins Zhang
de4cab1fb4
[cherry-pick] fix: fix error bitsize of jobservice reaper scan locks (#18494)
fix: fix error bitsize of jobservice reaper scan locks

Change the bitSize from 16 to 64 in the jobservice reaper, the 16 is too
small when the redis cursor over the max value of int16.

Fixes: #18486

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-04-11 14:21:18 +08:00
MinerYang
67e5a24ff8
bump golang 1.19.8 on release-2.7.0 (#18496)
Signed-off-by: yminer <yminer@vmware.com>

add GOFLAGS=-buildvcs=false
2023-04-10 10:47:07 +08:00
Chlins Zhang
df5f19f9cb
[cherry-pick] fix: correct the retention webhook payload (#18467)
fix: correct the retention webhook payload

Fix the incorrect number of total and retained in the retention webhook
payload, and completes the deleted_artifacts field.

Fixes: #18428

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-04-06 16:15:28 +08:00
Wang Yan
9d83365a3e
[cherry-pick]fix copy artifact issue (#18464)
fix copy artifact issue

To enable the middleware to save the project_blob data, make sure to set the accessories options to true when handling the artifact copy.

Signed-off-by: Wang Yan <wangyan@vmware.com>
2023-04-03 14:20:25 +08:00
Chlins Zhang
6216a1d1fe
[cherry-pick] fix: escape the event data for slack webhook payload (#18437)
fix: escape the event data for slack webhook payload

Escape the event data of slack webhook as original payload is invalid
when send to slack.

Fixes: #18423

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-03-30 09:58:18 +08:00
Chlins Zhang
f615e41c46
[cherry-pick] fix: fix the invalid jobid for scan data export (#18421)
fix: fix the invalid jobid for scan data export

Change the JobId param type from int to string, use int will bring some
problems for encode/decode type mismatch which generate the invalid
repository name.

Fixes: #18380

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-03-28 17:54:53 +08:00
Yang Jiao
bb64f734d3
[Cherry-pick]Add Job Service Dashboard Job Queues testcase (#18348)
Add Job Service Dashboard Job Queues testcase

Fix #17949

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-03-14 17:09:30 +08:00
Yang Jiao
6015b3efa7
[cherry-pick]Update DB Dockerfile.base (#18246)
Update DB Dockerfile.base

1. Update the path to postgresql.conf.sample as it has changed in postgresql 13.10
2. Remove creating symbolic link as it already exists in postgresql 13.10

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-02-20 15:52:13 +08:00
Yang Jiao
24c24418a2
Refresh the base images on release-2.7.0 (#18244)
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-02-20 12:15:59 +08:00
Yang Jiao
8330b468e4
[Cherry-pick]Add JobService Dashboard API test cases (#18235)
Add JobService Dashboard API test cases

Added test cases for the following APIs:
1. GET /jobservice/pools/{pool_id}/workers Get workers
2. PUT /jobservice/jobs/{job_id} Stop running jc
3. PUT /jobservice/queues/{job_type} stop and clean, pause, resume pending jobs in the queue
4. GET /jobservice/queues list job queues
5. GET /jobservice/pools Get worker pools
6. GET /schedules List schedules
7. GET /schedules/{job_type}/paused Get scheduler paused status

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-02-17 16:48:56 +08:00
Yang Jiao
ed69613b61
Bump up version to v2.7.1 (#18241)
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-02-17 15:38:13 +08:00
Yang Jiao
f93aa5cea4
[cherry-pick]Fix Setup Docker error in CI (#18238)
Fix Setup Docker error in CI

Remove the remove setup docker step in CI
Fix #18236

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-02-17 13:55:40 +08:00
Chlins Zhang
67ff82ff99
[cherry-pick] fix: resolve the oidc or ldap group user cannot export cve (#18227)
fix: resolve the oidc or ldap group user cannot export cve

Remove the project filter in the scan data export job as they have been
validated by API handler, fix the oidc or ldap group users cannot export
cve.

Fixes: #18112

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-02-16 10:37:57 +08:00
Shijun Sun
d5aeb9ebb3
[Cherry-pick]Display error message by defaul for event panel (#18229)
Display error message by defaul for event panel

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-02-16 10:30:03 +08:00
Shengwen YU
3e420956a3
[Cherry-pick] feat: bump-up trivyVersion to v0.37.2, trivyAdapterVersion to v0.30.7 (#18217) (#18220)
feat: bump-up trivyVersion to v0.37.2, trivyAdapterVersion to v0.30.7 (#18217)

Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2023-02-15 10:19:22 +08:00
Chlins Zhang
41c9cc8f90
[cherry-pick] fix: update the replication API handler (#18213)
fix: update the replication API handler

1. Check execution before stop replication execution.
2. Check execution before list replication tasks.

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-02-14 13:11:10 +08:00
Shengwen YU
dc6681e636
[Cherry-pick] fix: reset user password (#18206)
fix: reset user password

Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2023-02-14 09:28:02 +08:00
Shijun Sun
7f0bd60a8b
[Cherry-pick]Support searching artifacts by specified tag name (#18176)
Support searching artifacts by specified tag name
  1.Fixes #18082
  2.Update CSS

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-02-08 12:02:47 +08:00
Shijun Sun
dc931cfd2c
[Cherry-pick]Correct total count for schedule list datagrid (#18149)
Correct total count for schedule list datagrid
  1.Fixes #18120

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-02-08 10:56:10 +08:00
Shengwen YU
24f58f70d6
[Cherry-pick] fix retention/immutable API issue (#18158) (#18177)
fix retention/immutable API issue (#18158)

Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2023-02-06 17:28:07 +08:00
Shijun Sun
ab5c594363
[2.7]Update CI for UI UT (#18166)
Update CI for UI UT
  1.Specify Chrome version for UI UT

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-02-03 17:20:43 +08:00
Chlins Zhang
771373cedf
fix: remove the scan exports volume (#18109)
1. Change the Export CVE temporary file directory to /tmp.
2. Remove the scan data export volume in Dockerfile and docker-compose
   yaml.

Fixes: #18067

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-01-31 11:32:29 +08:00
Shengwen YU
1c1ec3c9a3
[Cherry-pick] Bump up TRIVYADAPTERVERSION to v0.30.6 (#18054)
Bump up TRIVYADAPTERVERSION to v0.30.6

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

Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2023-01-05 16:38:37 +08:00
MinerYang
91e86096a9
bump up helm/v3/pkg to v3.10.3 on release-2.7.0 (#18049)
bump up helm/v3/pkg to v3.10.3

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

Signed-off-by: yminer <yminer@vmware.com>
2023-01-04 15:42:15 +08:00
Shengwen YU
6113469a56
[Cherry-pick] fix: upgrade TRIVYADAPTERVERSION to v0.30.5 (#18003)
fix: upgrade TRIVYADAPTERVERSION to v0.30.5

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

Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2022-12-16 10:39:20 +08:00
MinerYang
864aca345f
Bump up golang 1.19.4 for release 2.7.0 (#17996)
bump golang 1.19.4 in release-2.7.0

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

Signed-off-by: yminer <yminer@vmware.com>
2022-12-15 12:04:33 +08:00
Chlins Zhang
b12379b0ce
[cherry-pick] fix: fix the time duration type duplicated parse for config (#17987)
fix: fix the time duration type duplicated parse for config

Fix the time duration type duplicated parse for config, maintaining the idempotency of set and get operations.

Signed-off-by: chlins <chenyuzh@vmware.com>

Signed-off-by: chlins <chenyuzh@vmware.com>
2022-12-14 10:16:03 +08:00
Yang Jiao
2531cf40a0
Refresh base images on release-2.7.0 (#17988)
Refresh base images

Signed-off-by: Yang Jiao <jiaoya@vmware.com>

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-12-14 10:01:31 +08:00
Shengwen YU
965099b742
[Cherry-pick] fix: upgrade trivy version to v0.35.0 and trivy-adapter version to v0.30.3 (#17977)
fix: upgrade trivy version to v0.35.0 and trivy-adapter version to v0.30.3

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

Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2022-12-13 18:21:14 +08:00
Shijun Sun
a6b3112941
[Cherry-pick]Fix some UI issues (#17965)
Fix some UI issues
   1.Fixes #17874
   2.Correct some i18n items

Signed-off-by: AllForNothing <sshijun@vmware.com>

Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-12-09 15:03:08 +08:00
Yang Jiao
3ea535af91
Refresh the base images (#17963)
Signed-off-by: Yang Jiao <jiaoya@vmware.com>

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-12-09 14:29:29 +08:00
stonezdj(Daojun Zhang)
9d2a7bf8f8
(cherry-pick) Avoid internal error in the UI when reset a schedule (#17960)
Avoid internal error in the UI when reset a schedule

 fixes #17926

Signed-off-by: stonezdj <daojunz@vmware.com>
2022-12-09 10:58:42 +08:00
stonezdj(Daojun Zhang)
420000e8d2
(cherry-pick) Update the log information in proxy cache (#17945)
Update the log information in proxy cache

  fixes #17933

Signed-off-by: stonezdj <daojunz@vmware.com>

Signed-off-by: stonezdj <daojunz@vmware.com>
2022-12-09 10:07:11 +08:00
Wang Yan
8dac344a48
remove the redundant data from table artifact_blob (#17959)
use sql in the migration process to delete all the useless data of table artifact_blob

Signed-off-by: Wang Yan <wangyan@vmware.com>

Signed-off-by: Wang Yan <wangyan@vmware.com>
2022-12-08 22:13:47 +08:00
Wang Yan
b677901ae7
remove artifact_blob with aritfact deletion (#17938)
fixes #17857

It needs to clean the artifact_blob records on artifact deletion in GC

Signed-off-by: Wang Yan <wangyan@vmware.com>

Signed-off-by: Wang Yan <wangyan@vmware.com>
2022-12-08 14:17:37 +08:00
MinerYang
a2d0a87f40
bump up golang.org/x/net to v0.2.0 (#17909)
Signed-off-by: yminer <yminer@vmware.com>
2022-12-06 15:40:01 +08:00
Yang Jiao
ded7f0d0ba
Refresh base images (#17907)
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-12-05 17:05:13 +08:00