1
0
mirror of https://github.com/goharbor/harbor.git synced 2026-10-26 09:59:33 +03:00
Commit Graph

1287 Commits

Author SHA1 Message Date
stonezdj(Daojun Zhang)
acc362c399 Fix job service dashboard testcase failed issue (#23488)
Signed-off-by: stonezdj <stone.zhang@broadcom.com>
Co-authored-by: Wang Yan <wangyan_0219@hotmail.com>
2026-07-02 07:56:13 +00:00
stonezdj(Daojun Zhang)
f6f3a6eb50 bump: bump up golang to 1.26.4 and trivy adapter version to v0.37.2-rc2 (#23460)
* bump: bump up trivy adapter version to v0.37.2-rc2

Update TRIVYADAPTERVERSION to v0.37.2-rc2 in Makefile.

Signed-off-by: stonezdj <stone.zhang@broadcom.com>

* bump: bump up Go version to v1.26.4

Update Go version from 1.26.3 to 1.26.4 across makefiles, configuration, CI workflows, and documentation.

Signed-off-by: stonezdj <stone.zhang@broadcom.com>

---------

Signed-off-by: stonezdj <stone.zhang@broadcom.com>
Signed-off-by: stonezdj(Daojun Zhang) <stonezdj@gmail.com>
2026-06-30 14:07:29 +00:00
fiona-xie
b859ef5b25 test(ui): add retry for Get Harbor CA to improve stability (#23396)
test(ui): add retry for Get Harbor CA

Signed-off-by: fiona-xie <fei-fx.xie@broadcom.com>
2026-06-18 07:40:48 +00:00
fiona-xie
cfcdff947d test(ui): Fix db_schedule and replication failed cases after Angular&Clarity upgrade (#23394)
test(ui): remove unnecessary codes

Signed-off-by: fiona-xie <fei-fx.xie@broadcom.com>
2026-06-17 16:06:29 +08:00
Vijay Ganesh
a26dea01da fix(ui): Update bindings in Project Policy Config (#22694)
Signed-off-by: Prasanth Baskar <bupdprasanth@gmail.com>
Co-authored-by: Prasanth Baskar <bupdprasanth@gmail.com>
2026-06-15 09:54:16 +00:00
fiona-xie
bc7f636ef6 test(api_db): support dynamic OpenAPI generator and PyPI URLs via env vars (#23361)
Signed-off-by: fiona-xie <fei-fx.xie@broadcom.com>
2026-06-15 07:12:09 +00:00
Wang Yan
648037f0f3 ci: use local base for component builds; fix flaky log rotation test (#23357)
* ci: use local base for component builds; fix flaky log rotation test

- build-package.yml: set PULL_BASE_FROM_DOCKERHUB=false so components
  build on the base image built in the same run, not a stale remote tag.
- test_log_rotation.py: accept Stopped or Success for the dry-run purge
  job to avoid a timing flake.

Signed-off-by: wang yan <yan-yw.wang@broadcom.com>

* fix ci failure

Signed-off-by: wang yan <yan-yw.wang@broadcom.com>

---------

Signed-off-by: wang yan <yan-yw.wang@broadcom.com>
2026-06-12 15:53:59 +08:00
Wang Yan
a37374efe9 Harden crypto usage and drop unused SMTP package (#23307)
- Use stdlib crypto/pbkdf2 instead of golang.org/x/crypto/pbkdf2 for
  password/secret hashing (output unchanged; no migration needed).
- Restrict JWT signing to RSA/RSA-PSS and reject other methods in
  pkg/token (default RS256 unchanged).
- Remove unused common/utils/email package (no references in codebase).

Signed-off-by: wang yan <yan-yw.wang@broadcom.com>
Co-authored-by: wang yan <yan-yw.wang@broadcom.com>
2026-06-11 14:48:09 +08:00
fiona-xie
ee1177d331 test(UI): fix and upgrade UI robot test cases for Angular v21 / Clarity v18 (#23344)
test(UI): fix UI robot test cases and locators for Angular and Clarity upgrade

Signed-off-by: fiona-xie <fei-fx.xie@broadcom.com>
2026-06-10 17:08:53 +08:00
Ashish Patel
a821bae24a feat(portal): upgrade Angular to v21, Clarity to v18, Node.js to v22 (#22937 (#23078)
Upgrade Harbor UI to Angular 21, Clarity v18, and Node.js v22

- Upgrade the Harbor UI (src/portal) from Angular 16 to Angular 19 and subsequently to Angular 21.
- Upgrade VMware Clarity from v17 to v18, and Node.js from v20 to v22 (updated .nvmrc, CI.yml, Makefile, Dockerfile).
- Migrate Angular templates to the new @if/@for control flow syntax.
- Fix UI issues #1 through #35, including robot accounts, layout, dropdown overlay, and input styling.
- Fix unit tests: resolve NG0100 ExpressionChangedAfterItHasBeenCheckedError in policy.component.spec.ts, replace autoDetectChanges(true) with explicit detectChanges cycles, and use TestBed.overrideComponent to stub AddP2pPolicyComponent template.
- Fix Clarity v18 breaking changes: update dark-theme SCSS import, add cds-theme attribute for theming, update ClrDatagridStateInterface import path, add ClrIconModule to app module.
- Stabilize npm installs and resolve CI/CD pipeline hangs.
- Fix swagger-ui crash caused by React 19 createRoot removal:
  - swagger-ui 5.28+ resolves a nested react-dom@19 which removed createRoot
    from the main react-dom entry point (moved to react-dom/client). The
    swagger-ui-es-bundle-core.js still imports createRoot from react-dom,
    making it undefined and causing "TypeError: i is not a function" at render.
  - app-swagger-ui/webpack.prod.js: alias bare 'swagger-ui' import to
    swagger-ui-bundle.js (the standalone UMD build that ships with React 18
    already bundled), bypassing the broken external react-dom@19 entirely.
  - app-swagger-ui/package.json: add npm overrides to pin react and
    react-dom to ^18.3.1 so future npm installs do not re-introduce React 19.
  - angular.json: expose swagger-ui.bundle.js and swagger-ui-index.html
    from app-swagger-ui/dist as Angular dev-server assets, enabling the
    proxy to serve the locally built, fixed bundle during development.
- Convert eslint-plugin-header config from JSON to JS to apply the ESLint 9 schema fix at config-load time, removing the need for patch-package.
- Pin all dependency versions to exact installed versions from the lock file, and remove unused prettier-eslint package.
- Fix flake in P2pProviderService unit test by initializing date with 0 milliseconds to prevent cross-second duration calculation mismatches.

Signed-off-by: Ashish Patel <zoom2ashish@gmail.com>
Co-authored-by: stonezdj <stone.zhang@broadcom.com>
2026-06-09 15:16:20 +00:00
Chlins Zhang
13532877a1 fix(cosign): ignore tlog during verification (#23284)
Signed-off-by: chlins <chlins.zhang@gmail.com>
2026-05-26 07:57:11 +00:00
Chlins Zhang
3a7e8228a3 test(cosign): disable tlog for signing checks (#23279)
Signed-off-by: chlins <chlins.zhang@gmail.com>
2026-05-25 18:54:25 +08:00
Prasanth Baskar
889364fd5f fix: Add i18n keys and missing translations (#23002)
* updated ru-ru-lang.json
* fix(i18n): add missing PROXY_CACHE_LOCAL_ON_NOT_FOUND keys to all language files
Add translated version of PROXY_CACHE_LOCAL_ON_NOT_FOUND and
PROXY_CACHE_LOCAL_ON_NOT_FOUND_TOOLTIP
* ci: add i18n key check to UI unit test pipeline
* fix(i18n): sync Russian proxy cache keys

---------
Signed-off-by: sias32 <sias320@gmail.com>
Signed-off-by: bupd <bupdprasanth@gmail.com>
Signed-off-by: Prasanth Baskar <bupdprasanth@gmail.com>
Co-authored-by: sias32 <sias320@gmail.com>
2026-05-18 09:05:07 +00:00
stonezdj(Daojun Zhang)
24b7300618 bump Go version from 1.25.7 to 1.26.3 (#23235)
fix UT failures for Go 1.26.3 compatibility
  Add //nolint:revive to packages whose names shadow Go stdlib
  Fix mock file import ordering (goimports compliance)
  Bump golangci-lint from v2.8.0 to v2.9.0 for Go 1.26 support
  Update CI step label to reflect Go 1.26

Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2026-05-18 16:22:30 +08:00
stonezdj(Daojun Zhang)
11b9c51e9d support configurable PIP_INDEX_URL for swagger client build (#23241)
* support configurable PIP_INDEX_URL for swagger client build

Pass PIP_INDEX_URL through Makefile (conditional env injection),
APITest-Util.robot (robot variable with public PyPI default), and
Group3-Upgrade/run.sh (-v forwarding to robot).

Signed-off-by: stonezdj <stone.zhang@broadcom.com>

* wait more time for proxy cache ready
refine proxy cache test in migration prepare

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

---------

Signed-off-by: stonezdj <stone.zhang@broadcom.com>
Signed-off-by: stonezdj <stonezdj@gmail.com>
2026-05-18 10:32:25 +08:00
Rakshit
30cc7795d6 Fix spelling error in comments (#23217)
fixing spelling mistakes in comments

Signed-off-by: Rakshit Yadav <yadavrakshit60@gmail.com>
2026-05-13 08:53:30 +00:00
stonezdj(Daojun Zhang)
3cd5bcdd57 test: use harbor-redis-base instead of harbor-valkey-base in SecurityHub CI (#23213)
test: use harbor-redis-base instead of harbor-valkey-base in Security Hub CI

Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2026-05-13 06:59:58 +00:00
Mandepudi Rani Chowdary
18f7abd8ed Full Multi-Architecture Enablement for Harbor (amd64 + arm64) (#22311)
Co-authored-by: Orlix <7236111+OrlinVasilev@users.noreply.github.com>
Co-authored-by: Vadim Bauer <vb@container-registry.com>
Co-authored-by: Vadim Bauer <Bauer.vadim@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: bupd <bupdprasanth@gmail.com>
2026-05-12 09:03:22 +02:00
stonezdj(Daojun Zhang)
2cc8623dd9 Fix the GC robot testcase fail issue (#23214)
Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2026-05-11 15:20:37 +08:00
stonezdj(Daojun Zhang)
62c278dfb1 Make openapi-generator-cli download URL configurable (#23186) 2026-05-01 16:11:17 +08:00
Chlins Zhang
88ab66244e feat: replace redis with valkey as cache backend (#23157)
Signed-off-by: chlins <chlins.zhang@gmail.com>
2026-04-28 14:59:43 +08:00
Chlins Zhang
ae723f5eda ci: disable exporter cache in API tests (#23177)
Signed-off-by: chlins <chlins.zhang@gmail.com>
2026-04-28 10:19:04 +08:00
stonezdj(Daojun Zhang)
914738c3f1 Update artifact_accessory to add source column to identify accessory (#23144)
Add project_metadata config item proxy_referrer_api
   Rename getRemoteRepo to GetRemoteRepo

Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2026-04-24 08:11:28 +00:00
stonezdj(Daojun Zhang)
ee96bb779b Add proxy cache from dockerhub, harbor, jfrog (#23121)
default to run proxy cache from harbor
    add SKIP_PROXY_CACHE setting to skip run proxy cache testcase in github action incase
    registry.goharbor.io unstable

Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2026-04-20 21:03:23 +08:00
stonezdj(Daojun Zhang)
a1c8992812 Update wasm artifact download URL in testcase (#22977)
Signed-off-by: stonezdj <stonezdj@gmail.com>
2026-03-10 07:58:32 +00:00
Wang Yan
1006a2010f bump go and base images (#22831)
1, up go to v1.25.7.
2, up the base photon to latest.

Signed-off-by: wang yan <yan-yw.wang@broadcom.com>
Co-authored-by: wang yan <yan-yw.wang@broadcom.com>
2026-02-11 17:39:35 +08:00
Wang Yan
457ca90e63 bump go to v1.25 (#22794)
1, bump go version from v1.24.6 to v1.25.6
2, temp workaround the lint issue.
3, fix the relevant compitable issues that introduced by go v1.25.

Signed-off-by: wang yan <yan-yw.wang@broadcom.com>
Co-authored-by: wang yan <yan-yw.wang@broadcom.com>
2026-02-03 03:44:28 +08:00
Chlins Zhang
8d7b97327b ci: fix the publishImage script with new docker version (#22753)
Signed-off-by: chlins <chlins.zhang@gmail.com>
2026-01-21 08:06:28 +00:00
miner
ddb73e4177 refine apitest to adopt proxy environment (#22706)
refine apitest

Signed-off-by: my036811 <miner.yang@broadcom.com>
2026-01-07 14:57:02 +08:00
stonezdj(Daojun Zhang)
be107721f5 Add HARBOR_ADMIN to run upgrade script (#22615)
Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2025-12-04 08:15:50 +00:00
Chlins Zhang
985d5c3f0c ci(workflows): update runner to oracle-vm-24cpu-96gb-x86-64 (#22455)
Signed-off-by: chlins <chlins.zhang@gmail.com>
2025-10-31 17:21:45 +08:00
stonezdj(Daojun Zhang)
0f1edd0200 Remove p2p preheat by event testcase (#22354)
Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2025-09-15 03:53:05 +00:00
stonezdj(Daojun Zhang)
8262d0a167 Remove GCR replication because GCR account is removed (#22309)
Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2025-09-05 01:57:20 +00:00
stonezdj(Daojun Zhang)
19c60ea8a9 Remove port 9443 from harbor IP for webhook event check (#22320)
for LDAP test, the default port changed from 443 to 9443, the original hostname contains IP:PORT, but the webhook event just contains the IP, need remove port before validation.
  fix issue related to CI pass checks

Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2025-09-05 09:18:57 +08:00
stonezdj(Daojun Zhang)
8f2003c40e Remove gitlab replication (#22298)
Signed-off-by: stonezdj <stone.zhang@broadcom.com>
Co-authored-by: Wang Yan <wangyan@vmware.com>
2025-08-29 16:35:44 +08:00
stonezdj(Daojun Zhang)
299fce5619 Adjust the xpath to find the package column in testcase (#22292)
Change column number because status column added before package column.
  fixes #22286 and #22285



increase column number

Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2025-08-29 13:09:46 +08:00
stonezdj(Daojun Zhang)
bd67811dec Upload build logs to github artifact (#22223)
Upload log files to github with 5 day retention

Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2025-08-13 06:46:27 +00:00
Prasanth Baskar
221037378a feat: Single Active Replication (#21347)
feat(replication): add Single Active Replication per policy

* Added single_active_replication field to schema & DB table
* Updated API, controller & handler to enforce single execution per policy
* Added checkbox in UI to enable/disable single_active_replication for a
  policy
* Implemented necessary backend & frontend tests
* Prevents parallel runs per policy if single_active_replication is enabled

Signed-off-by: bupd <bupdprasanth@gmail.com>
2025-08-11 18:02:56 +08:00
Wang Yan
91d2fa6377 bump go version (#22238) 2025-08-11 09:15:51 +00:00
Wang Yan
257afebd5f bump golang version (#22205)
to the latest golang version v1.24.5 from v1.24.3

Signed-off-by: wy65701436 <wangyan@vmware.com>
2025-07-29 07:21:57 +00:00
stonezdj(Daojun Zhang)
ea4110c30a Display download url for BUILD_PACKAGE action (#22197)
Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2025-07-23 08:21:10 +00:00
stonezdj(Daojun Zhang)
e8c2e478b6 Remove testcase Open Image Scanners doc page (#22180)
Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2025-07-22 02:55:11 +00:00
miner
c0a859d538 lazy load v2_swagger_client module (#22154)
Signed-off-by: my036811 <miner.yang@broadcom.com>
2025-07-07 14:51:09 +08:00
stonezdj(Daojun Zhang)
b8e3dd8fa0 change the pass-CI rules to exclude the resources and robot-cases folder (#22121)
Change the pass-CI rules to exclude the resources and robot-cases folder
   Pass HARBOR_ADMIN env to robot testcases

Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2025-06-26 14:05:02 +08:00
miner
937e5920a2 update robot case for get harbor version (#22104) 2025-06-23 15:10:51 +08:00
stonezdj(Daojun Zhang)
c0b22d8e24 Add environment variable add network_type env (#22097)
Use test_network_type to adapt to various network conditions in the test environment.

Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2025-06-19 12:47:04 +00:00
Wang Yan
2faff8e6af udpate storage to s3 (#21999)
move the build storage from google storage to the CNCF S3 storage

Currently, we use the internal GCR to store all dev builds for nightly testing, development, and as candidates for RC and GA releases. However, this internal Google storage will no longer be available, this pull request it to move to the CNCF-hosted S3 storage.

Signed-off-by: wang yan <wangyan@vmware.com>
2025-05-16 10:23:32 +00:00
miner
3df34c5735 increase docker client timeout for robot case (#21994)
* increase docker client timeout for robot case

Signed-off-by: my036811 <miner.yang@broadcom.com>
Signed-off-by: miner <miner.yang@broadcom.com>
2025-05-13 11:45:09 +00:00
Wang Yan
b4ba918118 bump up golang version to v1.24.3 (#21993)
* bump up golang version to v1.24.3

Signed-off-by: wang yan <wangyan@vmware.com>

* bump mockery version to support golang v2.14

Signed-off-by: wang yan <wangyan@vmware.com>

---------

Signed-off-by: wang yan <wangyan@vmware.com>
2025-05-13 17:09:35 +08:00
Wang Yan
073dab8a07 add build flag for harbor exporter (#21988)
As the harbor exporter is not a core component for installation, so like the trivy, add a flag to controller whether package it into the offline installer.

Signed-off-by: wang yan <wangyan@vmware.com>
2025-05-13 13:11:55 +08:00