Commit Graph

5543 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
Chlins Zhang
287f334327
fix: align some configuration api fields validation with frontend (#17903)
Signed-off-by: chlins <chenyuzh@vmware.com>
2022-12-05 15:52:41 +08:00
stonezdj(Daojun Zhang)
2f5827a42e
Remove unused go-sql-driver/mysql (#17895)
Signed-off-by: stonezdj <daojunz@vmware.com>

Signed-off-by: stonezdj <daojunz@vmware.com>
2022-12-02 16:49:28 +08:00
Wang Yan
277c78e212
update system artifact schedult timeout (#17902)
fixes #17887
enhance the timeout to 5m to avoid system artifact failed to schedule in the helm base installation.

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

Signed-off-by: Wang Yan <wangyan@vmware.com>
2022-12-02 14:30:05 +08:00
Shijun Sun
5f1dff32c2
Change inputs type from text to number (#17897)
1.Fixes #17890
   2.Update isDBAuth function

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

Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-12-02 12:51:38 +08:00
stonezdj(Daojun Zhang)
64c03e8679
Update the execution status after tasks stopped (#17875)
Fixes #17862

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

Signed-off-by: stonezdj <daojunz@vmware.com>
2022-12-01 21:17:35 +08:00
Shijun Sun
491dcf7d9b
Update jobservice dashboard UI (#17894)
1.Fixes #17855, #17874 and #17863
Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-12-01 17:01:59 +08:00
Jianwei Guo
cb11540a14
add parameters for PostgreSQL (#16641)
Signed-off-by: sayaoailun <guojianwei007@126.com>
2022-11-30 19:08:08 +08:00
Shijun Sun
927a055aa9
Update i18n for group filter and schedule list (#17884)
Fixes #17868 and #17853

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

Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-11-30 14:35:01 +08:00
stonezdj(Daojun Zhang)
402363d50b
Remove job parameters and schedule extra attribute (#17878)
Remove job parameters from job

  Remove extra attribute and cron type from schedule
  fixes #17866

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

Signed-off-by: stonezdj <daojunz@vmware.com>
2022-11-28 17:45:26 +08:00
stonezdj(Daojun Zhang)
80999f28ee
Keep CheckInAt time empty when it is empty (#17877)
Fixes #17860

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

Signed-off-by: stonezdj <daojunz@vmware.com>
2022-11-28 14:02:30 +08:00
MinerYang
f97aedfb5c
Increase golangci-lint timeout value (#17841)
increase golangci-lint timeout value

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

Signed-off-by: yminer <yminer@vmware.com>
2022-11-25 11:10:21 +08:00
stonezdj(Daojun Zhang)
619747fc68
Stop Pending Job cannot update status (#17842)
Convert the redis range result into struct and extract job id from it
  Add more log when get redis config fails

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

Signed-off-by: stonezdj <daojunz@vmware.com>
2022-11-24 20:29:50 +08:00
Shijun Sun
d079034b23
Update schedule list (#17851)
1.Add Cron and Cron Type columns

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

Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-11-24 18:51:40 +08:00
Wang Yan
18a3373725
bump beego (#17801)
* bump beego

upgrade beego version from v1.10.12 to v2.0.5

1, beego v2 vserver/web refactor
2, beego v2 context refactor
3, beego v2 session refactor
4, beego v2 cache refactor
5, beego v2 orm refactor

Signed-off-by: MinerYang <yminer@vmware.com>
2022-11-24 18:07:42 +08:00
stonezdj(Daojun Zhang)
f8628258bc
Add Cron, CronType and Update Time for schedule (#17844)
Remove create time because update time is added

Signed-off-by: stonezdj <daojunz@vmware.com>
2022-11-24 10:38:52 +08:00
Shijun Sun
fcf0e2014f
Update English text for job service UI (#17832)
Signed-off-by: AllForNothing <sshijun@vmware.com>

Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-11-23 18:19:45 +08:00
sluetze
a826720cc9
Updated German Translation (#17829) 2022-11-21 14:43:26 +01:00
stonezdj(Daojun Zhang)
4b7d45513e
Fix issue related to redhat registry proxy cache (#17789)
fixes #16495

Signed-off-by: stonezdj <daojunz@vmware.com>
2022-11-18 17:17:39 +08:00
Shijun Sun
ea812c9f16
Add Jobservice UI (#17722)
Signed-off-by: AllForNothing <sshijun@vmware.com>

Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-11-18 14:39:26 +08:00
Chlins Zhang
321a9abfb3
fix: skip to push system artifact for empty CSV file (#17816)
1. Skip to push system artifact to the distribution when the exported CSV file is empty.
2. Add status message for cve export execution.

Signed-off-by: chlins <chenyuzh@vmware.com>
2022-11-18 14:16:36 +08:00
MinerYang
62223bd36d
update golangci-lint for golang1.19 (#17817)
update golaci-lint for golang1.19

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

update ci version to v1.50.1
2022-11-18 11:40:01 +08:00
Shijun Sun
cbfffce413
Update cve export UI (#17814)
Signed-off-by: AllForNothing <sshijun@vmware.com>

Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-11-18 10:37:50 +08:00
stonezdj(Daojun Zhang)
57aff88eb5
Add REST API to list job queue status, pause/resume job queue and list schedulers (#17707)
Add queue manager and redis client
  Update scheduler to add count and list

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

Signed-off-by: stonezdj <daojunz@vmware.com>
2022-11-17 20:12:07 +08:00
yanggang
0f4e2daf4c
Replaced io/ioutil with "os / io" package. (#17792)
Signed-off-by: yanggang <gang.yang@daocloud.io>

update typo

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

Signed-off-by: yminer <yminer@vmware.com>
Co-authored-by: Wang Yan <wangyan@vmware.com>
2022-11-17 10:02:29 +08:00
stonezdj(Daojun Zhang)
ea27197a82
Sort group search result by most match order (#17708)
fixes #17535

Signed-off-by: stonezdj <stonezdj@gmail.com>

Signed-off-by: stonezdj <stonezdj@gmail.com>
2022-11-15 20:38:44 +08:00
Shijun Sun
e86e9aa529
Migrate policy API calls to generated service (#17782)
Signed-off-by: AllForNothing <sshijun@vmware.com>

Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-11-15 17:26:20 +08:00
Shijun Sun
f2212eef25
Add session timeout input (#17769)
Signed-off-by: AllForNothing <sshijun@vmware.com>

Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-11-15 11:39:48 +08:00
Chlins Zhang
9c9aa58d6a
feat: support customize session timeout (#17767)
Add configuration session_timeout for API, then user can customize the
timeout from system config page or API. The timeout is 60 minutes by
default.

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

Signed-off-by: chlins <chenyuzh@vmware.com>
2022-11-15 11:30:01 +08:00