Commit Graph

11577 Commits

Author SHA1 Message Date
Thomas Coudert
5287c0e79d
Improve Portal french translation (#18289)
* Remove useless translation values and fix variable name typo

Signed-off-by: Thomas Coudert <thomas.coudert@ovhcloud.com>

* Improve Portal French translation

Signed-off-by: Thomas Coudert <thomas.coudert@ovhcloud.com>

* Translate Portal CVE_EXPORT in french

Signed-off-by: Thomas Coudert <thomas.coudert@ovhcloud.com>
2023-03-15 14:25:14 +08:00
Back Yu
fe236ecd2e
Support vpc and internal network (goharbor#17488) (#17489)
Signed-off-by: Back Yu <yhfszb@gmail.com>
2023-03-15 11:04:45 +08:00
Yang Jiao
26ce10221e
Add Job Service Dashboard Job Queues testcase (#18347)
Fix #17949

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-03-14 17:09:19 +08:00
Shijun Sun
1acba0c3bb
Add dynamic column support (#18331)
1. Fixes #17815
2. Add dynamic column support for replication rule list  and artifact list

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-03-14 14:41:16 +08:00
Shijun Sun
a1d397842d
Improve webhook UI (#18325)
1. Add text format for payload data
2. Delete payload_format for Slack

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-03-14 13:28:12 +08:00
Chlins Zhang
65e675d2e6
feat: integrate CloudEvents to webhook (#18322)
Integrate CloudEvents as payload format for webhook.

Closes: #17748

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-03-14 10:44:25 +08:00
Nageshbansal
125daf9cdb
Fixes Publish to Github Packages (#18180)
1. Creates a publishPackages function in tools/release/release_utils.sh
2. Uses the publishPackages function in publish_release workflow

Fixes issue 18138

Signed-off-by: Nagesh Bansal <nageshbansal59@gmail.com>
Co-authored-by: Wang Yan <wangyan@vmware.com>
2023-03-13 17:26:31 +08:00
Wang Yan
9b61d34c4c
add referrers api (#18324)
add referrers api

The define of referrers api in the upstream oci spec: https://github.com/opencontainers/distribution-spec/blob/v1.1.0-rc1/spec.md#listing-referrers

Signed-off-by: Wang Yan <wangyan@vmware.com>
2023-03-12 15:28:37 +08:00
stonezdj(Daojun Zhang)
ab636fe3da
Remove go routine to reloadSetting (#18318)
Config is cached in redis
  Fixes #18189

Signed-off-by: stonezdj <daojunz@vmware.com>
2023-03-11 15:45:50 +08:00
Shengwen YU
4efee54f07
feat: upgrade mockery version (#18332)
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2023-03-11 08:16:11 +08:00
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
Yang Jiao
1e38565aae
Migrate robot account and notification policy related to Chartmuseum (#18316)
Migrate robot permission and notification policy related to Chartmuseum

Update robot permission and notification policy as Harbor v2.8.0 deprecates chartmuseum.
Harbor deprecates chartmuseum as of v2.8.0
Epic: goharbor#17958
Discussion: goharbor#15057

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-03-10 12:19: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
Yang Jiao
1f3f732bd6
Update the replication rule related to the Chartmuseum (#18274)
Update the registry and replication rule related to the Chartmuseum

Update replication_policy and registry as Harbor v2.8.0 deprecates chartmuseum.
Harbor deprecates chartmuseum as of v2.8.0
Epic: #17958
Discussion: #15057

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-03-02 17:28:27 +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
Yang Jiao
660e1d1362
Remove chartmuseum test case (#18267)
Harbor deprecates chartmuseum as of v2.8.0
Epic: #17958
Discussion: #15057

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-02-24 10:56:28 +08:00
Niko Wenselowski
10c54c0d82
Improve swagger descriptions (without changing security settings) (#18205)
* Improve swagger definitions.

References #15624
2023-02-23 12:57:50 +01: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
dependabot[bot]
99b37117e1
Bump actions/stale from 6.0.1 to 7.0.0 (#18018)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-20 16:42:04 +02:00
Yang Jiao
f4f80ca8fb
Update DB Dockerfile.base (#18249)
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 17:20:53 +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
Yang Jiao
2b82f99986
Add JobService Dashboard API test cases (#18234)
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 14:56:13 +08:00
Yang Jiao
73d8e68921
Fix Setup Docker error in CI (#18237)
Remove the remove setup docker step in CI
Fix #18236

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-02-17 13:53:30 +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
Shengwen YU
b44de01c2e
feat: bump-up trivyVersion to v0.37.2, trivyAdapterVersion to v0.30.7 (#18217)
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2023-02-14 17:03:42 +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