Commit Graph

5575 Commits

Author SHA1 Message Date
Shijun Sun ec7c99c270
Add agent config for ng serve (#18323)
1. Add agent setting for the proxy config
2. Add https-proxy-agent package

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-03-10 17:22:11 +08:00
stonezdj(Daojun Zhang) e8e56fd31d
Check tag name for OCI spec (#18311)
Verify tag name with OCI spec when creating tag

  Fixes #18073

Signed-off-by: stonezdj <daojunz@vmware.com>
2023-03-10 10:40:37 +08:00
stonezdj(Daojun Zhang) 5c9ce836cf
Skip robot account for oidc_cli middleware (#18317)
Fixes #15253

Signed-off-by: stonezdj <daojunz@vmware.com>
2023-03-09 15:41:08 +08:00
Wang Yan 5a065d1cd8
fix robot account list project (#18304)
Fixes #17636, to determine permissions for the project resource, the path should be /project instead of /project/project.

Signed-off-by: Wang Yan <wangyan@vmware.com>
2023-03-09 14:16:18 +08:00
Wang Yan 295260b7a3
replace subject id with digest (#18278)
Since it has to support push subject and accessories in either order, it has to replace digest with id

Signed-off-by: Wang Yan <wangyan@vmware.com>
2023-03-08 17:03:12 +08:00
Yang Jiao fecee37439
Update robot account to skip NotFoundErr (#18321)
Fix #18320

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-03-08 15:39:50 +08:00
hyeyoung-leee 2c287cf27a
Modified to check the expiration time of the allowlist when determining the vulnerability of an artifact (#18106)
Signed-off-by: hyeyoung-lee <hyeyoung.lee@nhn.com>
2023-03-08 11:25:40 +08:00
Shijun Sun 1238384428
Add logs column for worker datagrid (#18307)
1. Related back-end PR #18261

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-03-07 19:58:39 +08:00
Shijun Sun 38d7eda1ad
Update UI for the deprecation of Artifact Hub (#18303)
1. Update edit-registry page to enable the edition for Artifact Hub
2. Update edit-replication-rule page to enable the edition for rules contain Artifact Hub

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-03-07 18:12:08 +08:00
Shijun Sun ba9078f463
Enhance webhook UI (#18291)
1. Add execution list for a certain webhook policy
  2. Add task list for a certain execution

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-03-07 17:12:18 +08:00
stonezdj(Daojun Zhang) 5c0266e719
Get job log by job_id in worker (#18261)
Get job by job_id in redis

  Get the last 10MB of data if it exceeds 10MB

Signed-off-by: stonezdj <daojunz@vmware.com>
2023-03-06 13:19:10 +08:00
Shijun Sun 6f01d7480b
Add retry times for calling CVE data export execution list API (#18297)
1.Fixes #17879
2.Add retry times to avoid endless API calls for CVE data export execution list API

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-03-03 14:44:36 +08:00
Chlins Zhang 90db04e92d
refactor: refact the webhook API and life process (#18255)
refactor: refact the notification job API and life process

1. Introduce new APIs for webhook jobs management.
2. Refact legacy APIs for backforward compatible.
3. Migrate the webhook jobs process to unified execution/task framework.

Closes: #18210

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-03-03 10:17:47 +08:00
stonezdj(Daojun Zhang) 320c64e433
Sort user and usergroup by most match order (#18273)
fixes #17859

Signed-off-by: stonezdj <daojunz@vmware.com>
2023-03-01 10:11:21 +08:00
Shijun Sun 9973d99f3e
Remove chart api (#18265)
* remove chart api from swagger

Delete the api path for chart in the swagger

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

* Remove chart APIs
   1. Remove some chart-related steps for Dockerfile for portal  container
   2. Remove chart APIs for API center

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

---------

Signed-off-by: Wang Yan <wangyan@vmware.com>
Signed-off-by: AllForNothing <sshijun@vmware.com>
Co-authored-by: Wang Yan <wangyan@vmware.com>
2023-02-24 14:47:42 +08:00
Shijun Sun a79c0ad496
Add next scheduled time for tag retention (#18223)
1. Add next scheduled time UI
   2. Update font style

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-02-22 12:26:58 +08:00
Shijun Sun c5640acd7b
Add scanner_skip_update_pulltime property for system setting (#18214)
1. Related backend PR #17807

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-02-22 10:58:01 +08:00
Chlins Zhang 4141d77407
fix: remove noise log when core started (#18260)
Fixes: #18126

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-02-21 17:38:42 +08:00
stonezdj(Daojun Zhang) 58054c0ce8
Change queue name for purge audit log and filter the old one (#18182)
Fixes #18121
 Refactor job name with VendorType prefix, make sure job queue name and vendor type in execution and task are identical

Signed-off-by: stonezdj <daojunz@vmware.com>
2023-02-20 16:03:22 +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 Zhang da1637e1d3
fix: resolve the oidc or ldap group user cannot export cve (#18219)
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-20 14:22:27 +08:00
Shengwen YU 94dbc3fa8f
fix: add "next_scheduled_time" (#18102)
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2023-02-17 17:54:53 +08:00
Wang Yan 738fde7d3b
remove chartmuseum backend (#18191)
Harbor deprecates chartmuseum as of v2.8.0

Epic: https://github.com/goharbor/harbor/issues/17958

Discussion: https://github.com/goharbor/harbor/discussions/15057

Signed-off-by: Wang Yan <wangyan@vmware.com>
2023-02-16 18:11:05 +08:00
Shijun Sun ec5afc3257
Display error message by defaul for event panel (#18226)
Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-02-16 10:30:21 +08:00
Chlins Zhang 47137605c9
fix: update the replication API handler (#18197)
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:27 +08:00
Shijun Sun cece65ccf7
Translate English to Chinese for primary auth mode tooltip (#18196)
Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-02-13 12:12:17 +08:00
Fish-pro 2f04d4f810
chore: clean up no longer support linters for golang-lint (#18165)
Clean up no longer support linters for golang-lint

Signed-off-by: Fish-pro <zechun.chen@daocloud.io>
2023-02-10 16:27:37 +01:00
Shengwen YU a4c95fa030
fix: reset user password (#18192)
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2023-02-09 18:39:13 +08:00
Maksym Trofimenko 68fb01813e
Allow the Identity Provider to be the primary auth method in Harbor. (#17627)
Allow the Identity Provider to be the primary auth method in Harbor

Signed-off-by: Maksym Trofimenko <maksym@container-registry.com>
2023-02-08 18:11:08 +01:00
Shijun Sun ff9dcd5483
Remove helm chart UI (#18099)
1.Remove all helm chart v2 related code

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-02-08 16:47:03 +08:00
Shijun Sun 9d30955607
Support searching artifacts by specified tag name (#18175)
1.Fixes #18082
  2.Update CSS

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-02-08 16:00:37 +08:00
Shijun Sun fdf93470c5
Correct total count for schedule list datagrid (#18148)
1.Fixes #18120

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-02-08 12:01:01 +08:00
Shengwen YU 62c033b6d3
fix retention/immutable API issue (#18158)
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2023-02-06 14:42:15 +08:00
Caleb Lloyd 901cc17c67
aws auth use default creds when none are supplied (#17932)
Signed-off-by: Caleb Lloyd <caleblloyd@gmail.com>
Co-authored-by: Vadim Bauer <vb@container-registry.com>
2023-02-03 21:52:53 +01:00
Chlins Zhang bfe4362a67
fix: remove the scan exports volume (#18107)
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 17:30:47 +08:00
rongfu.leng 0fb076a09a
add match many version pattern test (#18092)
Signed-off-by: lengrongfu <1275177125@qq.com>

Signed-off-by: lengrongfu <1275177125@qq.com>
2023-01-16 16:40:19 +08:00
Shijun Sun 2ea53444e6
Add i18n support for Clarity components (#18076)
Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-01-11 10:29:05 +08:00
Noah Tang a9a67462dc
add job status unit test (#18057)
Signed-off-by: coderth <coderth@outlook.com>

Signed-off-by: coderth <coderth@outlook.com>
2023-01-10 13:28:28 +08:00
Shijun Sun a86740e82a
Update datePicker component (#18070)
1.Fix date validator
2.Add i18n support

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-01-06 11:36:01 +08:00
Shijun Sun 2361ae161f
Upgrade Angular and Clarity to the latest version (#18059)
Upgrade Angular and Clarity
  1.Upgrade related libraries
  2.Fix breaking changes

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

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-01-05 10:42:59 +08:00
MinerYang ba5baca769
bump up helm/v3/pkg to v3.10.3 on main (#18050)
Signed-off-by: yminer <yminer@vmware.com>

Signed-off-by: yminer <yminer@vmware.com>
2023-01-04 15:42:32 +08:00
Aleksandr Chebotov 452ae168cc
fix purge info typo (#18023)
Signed-off-by: Aleksandr Chebotov <alk.chebotov@gmail.com>
2023-01-03 13:48:14 +08:00
Shijun Sun d87d906c84
Switch listUsers to searchUsers for adding project member (#18022)
Fixes #18000

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

Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-12-23 16:09:22 +08:00
Kenton Groombridge 76757a5334
i18n: fix password+secret limit tooltips (#17916)
Some translations specify the (older) limit of 20 characters for
passwords and secrets. Update these to specify a limit of 128
characters.

Signed-off-by: Kenton Groombridge <me@concord.sh>

Signed-off-by: Kenton Groombridge <me@concord.sh>
2022-12-21 10:52:06 +08:00
Christian Zenker 9674a51b83
fix: Don't supress redis error messages to make debugging easier (#17986)
Signed-off-by: Christian Zenker <christian.zenker@aoe.com>

Signed-off-by: Christian Zenker <christian.zenker@aoe.com>
2022-12-15 10:42:16 +08:00
Chlins Zhang b0a30b9a2f
fix: fix the time duration type duplicated parse for config (#17981)
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-13 18:22:41 +08:00
Shijun Sun 86e34c8e59
Fix some UI issues (#17964)
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:30 +08:00
stonezdj(Daojun Zhang) ceb130e617
Avoid internal error in the UI when reset a schedule (#17946)
fixes #17926

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

Signed-off-by: stonezdj <daojunz@vmware.com>
2022-12-08 20:43:44 +08:00
stonezdj(Daojun Zhang) c4a58433cf
Update the log information in proxy cache (#17936)
fixes #17933

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

Signed-off-by: stonezdj <daojunz@vmware.com>
2022-12-08 13:50:37 +08:00
Wang Yan d83cee083a
remove artifact_blob with aritfact deletion (#17913)
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-07 13:37:10 +08:00