1
0
mirror of https://github.com/goharbor/harbor.git synced 2026-10-24 21:59:32 +03:00
Commit Graph

1424 Commits

Author SHA1 Message Date
Mandepudi Rani Chowdary
eb944bb199 fix: build valkey from source to support arm64 (#23282)
fix: support arm64 valkey build while preserving amd64 package path

- Keep amd64 behavior unchanged with tdnf install of valkey
- Isolate source-build fallback to arm64 only
- Verify source tarball with SHA256
- Move valkey version/checksum definition to root Makefile and pass as build args

Signed-off-by: ranimandepudi <ranichowdary.mandepudi@arm.com>
2026-06-02 08:17:10 +00:00
jUDASmILE
2f79ecceb5 remove install net-tools from db dockerfile as photon removed it (#23266)
remove install net-tools from db dockerfile as photon removed it from repo already

Signed-off-by: jUDASmILE <judasmile@gmail.com>
2026-05-21 03:23:50 +00:00
Wang Yan
bbe79cae65 bump pg to v18 (#23184)
currently harbor is using the pg 15, I will use this pull request to bump it to pg 18.

Signed-off-by: wang yan <yan-yw.wang@broadcom.com>
Co-authored-by: wang yan <yan-yw.wang@broadcom.com>
2026-05-21 10:32:06 +08:00
jUDASmILE
33b363c81b Rebuild goharbor/photon image before create new harbor base images (#23248)
* refresh goharbor photon:5.0 when create new base image

Signed-off-by: jUDASmILE <judasmile@gmail.com>

* correct date and format in buildbaselog

Signed-off-by: jUDASmILE <judasmile@gmail.com>

---------

Signed-off-by: jUDASmILE <judasmile@gmail.com>
2026-05-18 10:01: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)
729e277d69 Support custom PyPI index URL for prepare image builds (#23205)
build: support custom PyPI index URL for prepare image builds

Pass PIP_INDEX_URL through the make build chain as a Docker --build-arg,
mirroring the existing NPM_REGISTRY pattern for the portal build.

Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2026-05-08 02:23:40 +00: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
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
Anurag Ojha
4cedb8c0e2 fix(exporter): add Docker HEALTHCHECK (#22778)
* Add Docker HEALTHCHECK for harbor-exporter

Signed-off-by: intojhanurag <aojharaj2004@gmail.com>

* configurable port use

Signed-off-by: intojhanurag <aojharaj2004@gmail.com>

* add comment

Signed-off-by: intojhanurag <aojharaj2004@gmail.com>

---------

Signed-off-by: intojhanurag <aojharaj2004@gmail.com>
Co-authored-by: Chlins Zhang <chlins.zhang@gmail.com>
2026-04-22 04:06:19 +00:00
Wang Yan
b173fc3f0a fix db scheme migration issue (#22998)
we should not put the changes of v2.15.0 into the v2.14.1, create an 180 db scheme for v2.15.0

Signed-off-by: wang yan <yan-yw.wang@broadcom.com>
Co-authored-by: wang yan <yan-yw.wang@broadcom.com>
2026-03-16 17:00:57 +08:00
Wang Yan
6ab025c5bd add the 2.14.1 sql into main (#22947)
since we introduces a change on sql in the v2.14.1, it should be maintained the same version 171 in main, rather than adding the sql into the 180.

Signed-off-by: wang yan <yan-yw.wang@broadcom.com>
Co-authored-by: wang yan <yan-yw.wang@broadcom.com>
2026-03-06 14:51:19 +08:00
miner
2cbdacff87 update version for prepare migrate script (#22805)
Signed-off-by: my036811 <miner.yang@broadcom.com>
2026-02-03 16:50:27 +08:00
miner
56e9958e83 add prepare migration script for 2.15.0 (#22788)
Signed-off-by: my036811 <miner.yang@broadcom.com>
2026-01-30 15:28:02 +08:00
Quentin B.
aafc47d7fa add support for configure trivy db repository via harbor.yml (#21193)
Add support for trivy db_repository and java_db_repository

Signed-off-by: Quentin Bouteiller <quentin.bouteiller@values-associates.com>
Co-authored-by: Daniel Jiang <daniel.jiang@broadcom.com>
Co-authored-by: miner <miner.yang@broadcom.com>
2026-01-29 08:56:41 +00:00
stonezdj(Daojun Zhang)
e8d78eb110 Revert "Proxy the referrer's API to upstream registry" (#22779)
Revert "Proxy the referrer's API to upstream registry (#22746)"

This reverts commit 30ba1b3cd3.

Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2026-01-27 10:14:23 +00:00
stonezdj(Daojun Zhang)
30ba1b3cd3 Proxy the referrer's API to upstream registry (#22746)
Signed-off-by: stonezdj <stonezdj@gmail.com>
2026-01-26 08:00:54 +00:00
miner
a8343d3c7d support parse redis acl for registry config (#22770)
Signed-off-by: my036811 <miner.yang@broadcom.com>
2026-01-23 08:19:16 +00:00
Vadim Bauer
6606d184f5 fix(exporter): Export Harbor version via Prometheus exporter binary. (#22733)
fix(exporter): bake Harbor version into exporter binary at build time

Signed-off-by: Vadim Bauer <vb@container-registry.com>
2026-01-22 16:01:19 +08:00
Ikram ALOUI
e7f0333979 Add Cosign keyless signing for Harbor release artifacts (#22578)
* feat: implement keyless signing in release workflow

- Move signing from build to release workflow
- Use .sigstore.json naming convention (Sigstore standard)
- update signature verification documentation and readme file
- Update workflows to sign artifacts at release time only

Signed-off-by: Aloui-Ikram <ikram@container-registry.com>

* WIP: update release workflow and utils

Signed-off-by: Aloui-Ikram <ikram@container-registry.com>

* Add Cosign signing and fix accidental deletions

- Add Cosign signing to releases for security
- Revert to using getAssets function
- Restore latest installer uploads
- Restore pre-release comment

Signed-off-by: Aloui-Ikram <ikram@container-registry.com>

* Remove braces from variable names for consistency

Signed-off-by: Aloui-Ikram <ikram@container-registry.com>

* Remove unnecessary permissions from build-package.yml

Signed-off-by: Aloui-Ikram <ikram@container-registry.com>

---------

Signed-off-by: Aloui-Ikram <ikram@container-registry.com>
Co-authored-by: Aloui-Ikram <ikram@container-registry.com>
Co-authored-by: Daniel Jiang <daniel.jiang@broadcom.com>
2026-01-13 09:47:28 +00:00
Wang Yan
7f5ac5b57b add per-endpoint CA certificate support for registry endpoints (#22535)
* add per-endpoint CA certificate support for registry endpoints

fixes #22203

Allowing Harbor to trust self-signed or private CA certificates for individual registry endpoints without modifying the system-level trust store.

1. Database schema changes, API updates with PEM validation.
2. HTTP transport layer modifications across all the registry adapters.
3. UI field to fill in the certificate.

The feature is backward compatible - existing installations using system-level CA trust will continue to work without any changes.

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

* resolve lint failures

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

* add i18n changes

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

* resolve review comments

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

* make the input as non-required and updates i18n

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

* resolve comments

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

---------

Signed-off-by: wang yan <yan-yw.wang@broadcom.com>
Co-authored-by: wang yan <yan-yw.wang@broadcom.com>
2026-01-13 17:10:22 +08:00
Wang Yan
c305a80616 refactor the logic to init skip_audit_log_database (#22493)
simplify the sql to set the value of skip_audit_log_database, any evidence of previous usage of db to record the audit, set it to false.

Signed-off-by: wang yan <yan-yw.wang@broadcom.com>
Co-authored-by: wang yan <yan-yw.wang@broadcom.com>
2025-10-24 10:22:38 +00:00
Wang Yan
c878bbf98f add migraiton sql for skip_audit_log_database (#22487)
give the value of skip_audit_log_database bases on the real usage.

1. If audit logs exist in the system (either in audit_log or audit_log_ext tables),
   set skip_audit_log_database to false
2. If no audit logs exist but the tables show evidence of previous usage
   set skip_audit_log_database to false

Signed-off-by: wang yan <yan-yw.wang@broadcom.com>
Co-authored-by: wang yan <yan-yw.wang@broadcom.com>
2025-10-23 07:19:23 +00:00
Max Fröhlich
26b61390a0 Remove unused SYNC_QUOTA from env.jinja template (#22280)
Remove SYNC_QUOTA from env.jinja template

`SYNC_QUOTA` is not used throughout the whole code.

It looks like the feature using it was removed.

Signed-off-by: Max Fröhlich <maxbruchmann@gmail.com>
Co-authored-by: Wang Yan <wangyan@vmware.com>
2025-09-01 16:31:56 +08:00
miner
e80b940942 add prepare migration script for 2.14.0 (#22247)
Signed-off-by: my036811 <miner.yang@broadcom.com>
2025-08-13 08:38: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
9f809f17ba update the support list of proxy cache (#22237)
According to PR #22198, some inactive adapters have been removed from the default adapter list.
This pull request updates PERMITTED_REGISTRY_TYPES_FOR_PROXY_CACHE accordingly, since the list of proxy cache adapters should be a subset of the replication adapters.

Signed-off-by: wy65701436 <wangyan@vmware.com>
2025-08-11 08:20:31 +00:00
Wang Yan
de657686b3 add the replicaiton adapter whitelist (#22198)
fixes #21925

According to https://github.com/goharbor/harbor/wiki/Harbor-Replicaiton-Adapter-Owner, some replication adapters are no longer actively maintained by the Harbor community. To address this, a whitelist environment variable is introduced to define the list of actively supported adapters, which will be used by the Harbor portal and API to display and allow usage.

If you still wish to view and use the unsupported or inactive adapters, you must manually update the whitelist and include the desired adapter names. For the list of adapter names, refer to https://github.com/goharbor/harbor/blob/main/src/pkg/reg/model/registry.go#L22

Signed-off-by: wang yan <wangyan@vmware.com>
2025-07-23 10:25:21 +00:00
stonezdj(Daojun Zhang)
ebdfb547ba Set MAX_JOB_DURATION_SECONDS from jobservice config.yml (#22116)
Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2025-07-18 10:01:18 +00:00
Daniel Jiang
19f4958ec3 Add "status" of CVEs to artfact scan report (#22177)
This commit adds the field "status" to the struct of a vulnerability and adds
column "status" to vulnerability record table.  It makes sure the statuses
of CVEs returned by trivy scanner are persisted and can be returned via
the vulnerabilities addition API of an artifact.

Signed-off-by: Daniel Jiang <daniel.jiang@broadcom.com>
2025-07-16 11:11:40 +08:00
miner
2565491758 add BUILD_INSTALLER parameter for optionally build prepare and log container (#22148)
add BUILD_INSTALLER parameter to optionally build prepare and log container only when we need to build offline_installer

Signed-off-by: my036811 <miner.yang@broadcom.com>
2025-07-03 18:23:17 +08:00
miner
0a3c06d89c add dockernetwork parameter for build process (#22138)
add dockernetwork parameter for makefile

Signed-off-by: my036811 <miner.yang@broadcom.com>
2025-07-03 15:33:25 +08:00
miner
0c5d82e9d4 Update pipenv for prepare (#22124)
* update pipenv and lock

Signed-off-by: my036811 <miner.yang@broadcom.com>

* update pipenv

Signed-off-by: my036811 <miner.yang@broadcom.com>

---------

Signed-off-by: my036811 <miner.yang@broadcom.com>
2025-07-01 14:23:05 +08:00
Wang Yan
85f3f792e4 update robot permission table (#21989)
fixes #21947

Signed-off-by: wang yan <wangyan@vmware.com>
2025-05-13 05:49:01 +00:00
Wang Yan
b3cfe225db unify the golang image version (#21935)
Make the golang version as a unified parameter to build all harbor components

Signed-off-by: wang yan <wangyan@vmware.com>
2025-04-27 14:07:19 +08:00
miner
f8f1994c9e fix jobservice container loglevel consistent with job_log (#21874)
Signed-off-by: yminer <miner.yang@broadcom.com>
2025-04-15 14:07:39 +08:00
Wang Yan
e216f6beb9 bump up golang version (#21813)
Signed-off-by: wang yan <wangyan@vmware.com>
2025-04-02 13:58:49 +08:00
Wang Yan
a16caa5ab7 update golang to v1.23.7 (#21749)
Signed-off-by: wang yan <wangyan@vmware.com>
2025-03-18 18:52:02 +08:00
miner
229a27ff41 add prepare migration script for 2.13.0 (#21680)
Signed-off-by: yminer <miner.yang@broadcom.com>
2025-03-11 07:48:22 +00:00
miner
3b8c18fd26 update tlsOptions for external redis (#21681)
Signed-off-by: yminer <miner.yang@broadcom.com>
Co-authored-by: yminer <miner.yang@broadcom.com>
2025-03-10 11:45:18 +00:00
miner
fef95244fc remove redis sentinel patch from builder (#21679)
Signed-off-by: yminer <miner.yang@broadcom.com>
Co-authored-by: yminer <miner.yang@broadcom.com>
Co-authored-by: Wang Yan <wangyan@vmware.com>
2025-03-04 15:19:05 +08:00
stonezdj(Daojun Zhang)
b9528d8deb Adjust the audit_log_ext column size to keep align with audit_log table (#21678)
Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2025-02-27 10:17:04 +00:00
miner
5c39e76ac4 prepare redis tls config (#21667)
add prepare for redis tls config

Signed-off-by: yminer <miner.yang@broadcom.com>
2025-02-27 17:38:08 +08:00
miner
39b2898e18 update exporter docker build para (#21448)
Signed-off-by: yminer <miner.yang@broadcom.com>
Co-authored-by: yminer <miner.yang@broadcom.com>
Co-authored-by: Orlix <7236111+OrlinVasilev@users.noreply.github.com>
2025-01-22 11:23:30 +00:00
Wang Yan
9e8e647b71 separate buildin values (#21425)
Signed-off-by: wang yan <wangyan@vmware.com>
2025-01-16 14:26:24 +00:00
Wang Yan
2364957036 update spectral image (#21410)
Signed-off-by: wang yan <wangyan@vmware.com>
2025-01-15 03:41:15 +00:00
stonezdj(Daojun Zhang)
12382fa8ae Update prepare to avoid error when max_job_duration_hours not configured (#21395)
Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2025-01-10 10:56:43 +08:00
stonezdj(Daojun Zhang)
8ca455eb76 Add config max_job_duration_hours for jobservice (#21390)
Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2025-01-08 17:15:37 +08:00
stonezdj(Daojun Zhang)
b0c74a0584 Add swagger api and audit_log_ext table model (#21360)
add auditlog-ext related api in swagger
  add audit_log_ext table

Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2025-01-03 06:11:09 +00:00
Chlins Zhang
a548ab705f feat: extend the p2p preheat policy (#21115)
Add the field extra_attrs to the p2p preheat policy for the provider to
define their specified parameters when preheating.

Signed-off-by: chlins <chlins.zhang@gmail.com>
2024-12-18 10:30:36 +08:00
Hajnal Máté
4a12623459 Fix postgres script permissions (#21007)
The initdb.sh and the upgrade.sh scripts in the postgres image
were not owned by the postgres user, which made them failing
with permission denied errors.

Signed-off-by: Mate Hajnal <hajnalmt@gmail.com>
2024-11-25 14:53:19 +02:00