Repository navigation
Highlights
Multi-Format Artifacts (Beta, commercial)
8gcr now stores language packages next to container images, in the same projects, with the same users, robot accounts, quotas and audit log.
| Format | Publish to a project | Proxy cache project |
|---|---|---|
| OCI images, Helm charts, CNAB | yes | yes |
| NPM | yes | yes |
| PyPI | yes | yes |
| Maven | yes | yes |
| Cargo | yes | yes |
| Nix | yes | |
| Go modules, with the checksum database | yes | |
Homebrew, including versioned formulae such as openssl@3 |
yes |
Packages are served under /pkg/<format>/<project>/, and the push dialog of every project shows the login and publish commands for each format. A project group resolves reads through its grouped projects in lookup order, so a client needs only one URL for published and proxied packages. More formats will follow.
Model Sync (Beta)
Import models from Hugging Face into a project as OCI model artifacts. Administration > Model Sync resolves the source before you save: revision, digest, license, task and the files your include and exclude patterns match. Policies run manually or on a schedule. Turn it on under Configuration > Features or with HARBOR_ENABLE_MODEL_SYNC=true.
Bookmarks (Beta)
Star a project, repository, tag or a filtered repository or artifact list, and it appears under Bookmarks in the left navigation, grouped by project. Bookmarks can be renamed, deleted and reordered there. A tag bookmark always opens the image the tag currently points to. Bookmarks are stored per user in the browser. Turn them on under Configuration > Features.
Client IP and User Agent in the Audit Log
Every audit log entry records the client IP address and User-Agent of the request, including image push, pull and delete. Both are shown in the system and project Logs tabs and included in the API and the JSON export.
Audit Log Forwarding over OTLP (commercial)
Audit logs have their own configuration page. Next to syslog, 8gcr forwards audit records to an OpenTelemetry collector over OTLP/HTTP, with optional Basic authentication. The event matrix selects which resource and action pairs are recorded and forwarded, and with a forwarding endpoint set, the database copy can be skipped.
Commercial Features
Branding
- Branding settings section headings (Product, Login Page, Header Colors) use the same
heading size and weight as the Audit Log settings page (container-registry/8gcr-ee#604)
Federated Robot Accounts
- Trusted issuer discovery and JWKS requests, including the JWKS fetch at login, follow an
egress policy of their own:HARBOR_TRUSTED_ISSUER_EGRESS_POLICYand
HARBOR_TRUSTED_ISSUER_EGRESS_ALLOWLIST, with the same values as the webhook settings. Each
falls back to itsHARBOR_WEBHOOK_EGRESS_*counterpart (chartnetwork.webhookEgress) when
unset or empty; webhooks never read the trusted issuer settings. The requests refuse
redirects to blocked addresses, stop after 10 seconds and accept only a JSON object of up to
1 MiB. For an in-cluster Kubernetes issuer, keep webhooks locked down and add to
core.extraEnv:HARBOR_TRUSTED_ISSUER_EGRESS_POLICY=public_onlyand
HARBOR_TRUSTED_ISSUER_EGRESS_ALLOWLIST=kubernetes.default.svc, plus the host of the cluster's
jwks_uriwhen it differs - The OpenID configuration and JWKS test endpoints need permission to create a trusted issuer:
system admin, or project admin withproject_idin the request. Creating a trusted issuer
checks that permission before Harbor fetches anything. The endpoints return only the public
keys or the issuer fields Harbor uses, never the raw response, and failed fetches no longer
return the remote error. An OpenID configuration URL with a fragment, an encoded?or#in
its path, or a path that does not end with/.well-known/openid-configurationis rejected with
400; a query such as Azure AD B2C's?p=<policy>is kept and sent as given. The discovered
jwks_urimust use HTTPS, and redirects from HTTPS to HTTP are refused. A URL that fails
these format checks gets 400 before the permission check and before any DNS lookup - Fail authentication instead of panicking in core (502 at the ingress) for a Bearer token or
Basic auth password with three segments whose JWT header does not decode (container-registry/8gcr-ee#578) - Reject deleting a trusted issuer's
audorissclaim with 400; they are immutable like on create (container-registry/8gcr-ee#521) - Answer 400 for a trusted issuer id of 0 or less instead of 404 (container-registry/8gcr-ee#521)
- A trusted issuer now declares its audience as a field; issuer plus audience is its
identity, so several trusted issuers may share an issuer URL with different
audiences, and aud or iss are no longer accepted as claim rules (container-registry/8gcr-ee#523) - Upgrade: trusted issuers created before this change have no audience and reject
tokens with the error "trusted issuer has no audience". Set the audience
once on each existing trusted issuer via the portal edit form or
PUT /api/v2.0/trusted-issuers/{id}with{"audience": "<the token aud>"};
robots and claims need no change (container-registry/8gcr-ee#523)
Multi-Format Artifacts
- Proxy cache fills for a file that is already queued are skipped, and the fill queue is bounded by payload size, so a cold install with many clients caches every file instead of dropping most of them (container-registry/8gcr-ee#702)
- NPM publish streams the package into storage instead of holding it in memory, so a large publish no longer gets core OOMKilled; a body over the size cap gets 413 (container-registry/8gcr-ee#703)
- The NPM and Maven proxies answer upstream failures with 502, 504 or 429 instead of 404, so clients retry instead of treating the package as missing (container-registry/8gcr-ee#701)
- The Projects page has a New Project Group button next to New Project, and the New Project dialog no longer has a Project Group toggle (container-registry/8gcr-ee#737)
- Package proxies serve downloads larger than the cache limit in full and skip caching them, instead of cutting the download off (container-registry/8gcr-ee#700)
- NPM and Maven requests answer 503 instead of 401 when the project lookup fails, so a database outage no longer looks like a wrong password (container-registry/8gcr-ee#698)
- Copies saved by a package proxy cache get their audit log entry again (container-registry/8gcr-ee#699)
- A project group resolves Cargo reads through its grouped projects in lookup order (container-registry/8gcr-ee#717)
- A project group resolves Go checksum database reads through its grouped projects in lookup order, so
GOSUMDBcan point at the project group URL (container-registry/8gcr-ee#717) - A project group resolves NPM and Maven reads through its grouped projects in lookup order, and
tags/listincludes grouped project tags (container-registry/8gcr-ee#717) - A project group resolves PyPI reads through its grouped projects in lookup order, so pip and uv need only the project group URL (container-registry/8gcr-ee#728)
- A project group resolves Go module (GOPROXY) reads through its grouped projects in lookup order, and a hosted project serves the Go modules it stores (container-registry/8gcr-ee#717)
- A project group resolves Homebrew reads through its grouped projects in lookup order (container-registry/8gcr-ee#717)
- Multi-project is now Project Group, and its sub-projects are grouped projects:
/projects/{p}/grouped-projects, metadatais_project_group, RBAC resourcegrouped-project, "Lookup Order" in the UI. The 2.16/subprojectspaths andmulti_projectkey are removed without aliases; the upgrade migrates stored groups and permissions (container-registry/8gcr-ee#718) - Beta: host NPM, PyPI, Maven, Cargo and Nix packages next to container images, served under
/pkg/<format>/<project>/(container-registry/8gcr-ee#662) - Proxy cache projects for NPM, PyPI, Maven, Cargo, Go modules (with the checksum database)
and Homebrew, including versioned formulae such asopenssl@3(container-registry/8gcr-ee#558) - The portal push dialog shows the publish commands for each package format (container-registry/8gcr-ee#663)
What's Changed
Features
-
Database schema reconciled on start, independent of migration numbers by @bupd in #711 (5652b08)
-
Default project for image references without a project by @bupd in #774 (adaf4ac)
Pushes and pulls without a project segment (e.g.
podman push registry.example.com/alpine:latest) now land in a configurable default project instead of being rejected, giving Harbor a Docker Hub / ghcr.io-style flat namespace for every OCI client. The default project islibrary. -
Audit log configuration page by @bupd in #705 (6553702)
Audit log settings (forward endpoint, per-event-type enable/disable, skip-database toggle) now live on their own "Audit Log" configuration page instead of System Settings, and event-type selection is now a resource x action matrix grouped by resource type instead of a flat checkbox list.
-
Default project setting in System Settings by @bupd in #1405 (a851d11)
The default project for project-less pushes can now be set in Configuration > System Settings > Default Project. Only existing projects can be picked. Leave it empty to reject pushes and pulls that have no project in the path. New installs default to
librarywhen that project exists. Helm users can pin it withcore.defaultProjectName(envDEFAULT_PROJECT_NAME), which creates the project if needed and locks the setting. -
Configuration > Features to turn optional features on and off by @Vad1mo in #1406 (1c2225d)
Configuration has a new Features tab for switching optional features on and off, also available as
GET/PUT /api/v2.0/features. An environment variableHARBOR_ENABLE_<FEATURE>takes precedence and locks the setting in the UI. The tab appears once a release ships an optional feature. -
Model Sync from Hugging Face (beta) by @bupd in #1478 (32e1f88)
Model Sync (Beta): import Hugging Face models into Harbor projects as OCI model artifacts from a new Administration > Model Sync page. Turn it on under Configuration > Features or with
HARBOR_ENABLE_MODEL_SYNC=true. Based on goharbor/harbor#24318. -
Schema for multi-format artifacts and project groups by @bupd in #780 (bec6fbe)
-
Registry built with patches not yet released upstream by @Vad1mo in #1086 (284d0cc)
The registry image now includes three storage patches backported from upstream distribution. Memory per concurrent S3 upload is capped at
chunksize(it used to settle near twice that), a new optionalstorage.s3.spooldirsetting buffers pending upload parts on local disk instead of in memory, and closing an upload releases the storage driver writer even when saving its hash state fails. The registry reports its version as3.1.2+patched.3. Maintainers can add more upstream patches throughDISTRIBUTION_PATCHESinTaskfile.yml. -
Client IP and user agent recorded for push, pull and delete by @bupd in #704 (bf0b195)
-
Client IP and user agent in the audit log by @bupd in #701 (1a2eb25)
Audit logs now capture the client IP address and User-Agent of the request that triggered each entry, including container image push, pull and delete. Both are visible as new columns in the system Logs tab and the per-project Logs tab, and are included in the
AuditLogExtAPI response and JSON export. -
chart: Grafana dashboard for Harbor, including database pool metrics by @Vad1mo in #849 (572676e)
Adds a Harbor Grafana dashboard for health, runtime, API traffic, storage, jobs and project usage. Switch installations using shared datasource, cluster and namespace selectors. The dashboard also highlights PostgreSQL/pgx monitoring available in the 8gcr Harbor distribution. Import the JSON directly or enable
metrics.grafanaDashboard.enabledto provision it through a Grafana sidecar. -
chart: Production Helm chart by @Vad1mo in #56 (2f19897)
New
harborHelm chart atdeploy/chart, published as a cosign-signed OCI chart atoci://8gears.container-registry.com/8gcr/charts/harbor. Oneimage.sourcevalue switches every image between 8gcr builds and upstreamgoharborimages, and the portal, Trivy, exporter and bundled Valkey can each be turned off. Rendering is deterministic for GitOps, andautoGenSecrets: falsefails the render on any unpinned secret. To move from the goharbor chart, followdeploy/chart/docs/MIGRATION.mdor runtask helm:migrate -- old-values.yaml new-values.yaml. -
chart: Webhook egress policy levels and allowlist by @Vad1mo in #1185 (ba299a8)
The chart and compose files can set the webhook egress policy,
network.webhookEgress.policy(HARBOR_WEBHOOK_EGRESS_POLICY), toallow_all,block_restrictedorpublic_only, withnetwork.webhookEgress.allowlist(HARBOR_WEBHOOK_EGRESS_ALLOWLIST) for trusted receivers. The chart defaults toblock_restricted, so internal receivers work while loopback, link-local and metadata stay blocked; compose keepspublic_only.network.allowPrivateNetworkAccessis deprecated:truemaps toallow_all,falsetopublic_only. -
ci: Daily CVE scan of dependencies and published images by @bupd in #359 (d77262f)
-
db: Trusted issuers keyed by issuer and audience by @bupd in #1236 (49190ae)
Trusted issuers carry an audience; the same issuer URL can be registered more than once with different audiences.
-
metric: Exporter metrics served by core, no exporter deployment needed by @Vad1mo in #566 (5639834)
The exporter collectors can now run inside core, which makes the separate
harbor-exportercontainer optional. SetMETRIC_ENABLE=trueandMETRIC_EXPORTER_ENABLE=trueon core; metrics are served onMETRIC_PORT(default 9090) and cached forMETRIC_EXPORTER_CACHE_TIMEseconds (default 30). Both flags default tofalse. When you switch, repoint Prometheus and then remove theexportercontainer, orsum()queries double-count; dashboards keyed onjob="harbor-exporter"need the new job label. -
portal: Bookmarks for projects, repositories, tags and filtered lists by @Vad1mo in #1428 (316265f)
Portal bookmarks. Star a project, repository, tag or a filtered repository or artifact list to add it to the new Bookmarks section in the left navigation. Bookmarks are grouped by project and can be renamed, deleted and reordered there. Tag bookmarks always open the image the tag currently points to. Bookmarks whose target was deleted, or that you can no longer access, are marked with a red question mark. Bookmarks are stored per user in the browser. The feature ships as a Beta toggle under Configuration > Features and is off by default.
-
portal:
/.well-known/security.txtby @Vad1mo in #995 (743fd56)The portal now serves an RFC 9116
/.well-known/security.txtthat points vulnerability reports at the project's private advisory form. -
Registry endpoints accept non-HTTP schemes such as
sftp://ands3://by @bupd in #742 (fa85864)Registry endpoint URL validation is now scheme-aware: replication targets accept
http,https,s3,sftp, andftpURLs, while p2p preheat providers and scanner adapters remain restricted tohttp/https. All previously valid URLs continue to validate unchanged.
Fixes
-
Address upstream sync review feedback (63b3ab4)
-
Address Upstream Sync Review Feedback (f071003)
-
Address Upstream Sync Review Feedback (a01fa1f)
-
api: Advertise only https in the OpenAPI spec by @Vad1mo in #988 (91df4ee)
The OpenAPI spec now advertises
httpsonly and no longer nameshttp://localhostas an API endpoint. -
api: Bound Audited And Manifest Request Bodies by @bupd in #1138 (5a418ee)
Fixes an unauthenticated memory-exhaustion DoS through
POST /c/loginreported by @RealFakeAccount, and unbounded manifest uploads, remediated by @KernelClint (Clinton Thomas) and @anishnaik. Manifest PUT bodies are capped at 4 MiB and audit body handling only applies to exact path matches, so oversized or unrelated requests are no longer buffered in full. -
api: Let Any Authenticated User Read The Permissions Catalog by @bupd in #1349 (a0991b2)
GET /permissionsnow returns the project permission catalog to any authenticated user, not only system or project admins. The system and role catalogs stay system-admin only. -
api: Omit Role Timestamps That Were Never Set by @bupd in #1273 (4417c8c)
GET /api/v2.0/rolesnow omitscreated_atandmodified_atfor roles where they were never set, instead of returning the year 1 date. -
api: Reject query operands the column cannot take by @bupd in #925 (a39a4d7)
Search filters whose value does not fit the column type, such as
creation_time=[a~b], now return 400 instead of 500 with a raw database error. Valid queries are unaffected. -
api: Require schemes to be exactly https in the Spectral ruleset by @bupd in #1161 (9e09099)
-
api: Use valid OpenAPI 2.0 numeric format values by @Vad1mo in #991 (d3b8ab5)
The OpenAPI spec now uses the numeric
formatvalues Swagger 2.0 defines, which changesStorage.total,Storage.freeandReplicationPolicy.dest_namespace_replace_countin generated clients from unsigned and 8-bit integers toint64andint32. -
Audit Feature Toggles by @bupd in #1480 (7647151)
Toggling a feature with
PUT /api/v2.0/features/{feature_key}is audit logged again, as it was before 2.16. A newupdate_featureevent type appears in the audit log settings and can be selected for purge. -
auth: Keep Basic Auth For LDAP And UAA Users by @bupd in #1275 (df4d16e)
LDAP and UAA users can again authenticate with their password over basic auth, for the API and for
docker login. Since v2.15.x those requests were rejected with 401 for every user but the admin. OIDC deployments keep skipping basic auth for non-admins. -
authproxy: Clear Leaked Local Sysadmin Flag In The http_auth /v2 Context by @bupd in #1128 (a5d103a)
Fixes GHSA: GHSA-xvh7-74g6-29xw, "External auth-proxy identity named admin inherits Registry system-administrator authorization." Reported by @cyberlanc3r. The discovery is theirs.
An http_auth user whose name matches a local account no longer inherits that account's sysadmin flag; admin rights come only from the configured authproxy admin list.
-
Block Deleting An Attestation Out From Under Its Index (311c2aa)
-
Bound Proxy-Cache Background Goroutines To Prevent Leak by @Vad1mo in #257 (928b074)
Bounded the background work harbor-core performs for proxy-cache (pull-through) projects. Cache population and tag-ensure tasks now run under a global concurrency limit and the tag-ensure retry loop is time-bounded and cancellable, so a slow or unreachable upstream/registry can no longer cause unbounded goroutine and file-descriptor growth in harbor-core. The limit is tunable via the
PROXY_CACHE_MAX_CONCURRENT_FILLenvironment variable (default 100). -
build: Stamp version metadata into trivy-adapter and Trivy binaries by @Vad1mo in #459 (044468c)
Interrogation Services > Scanners shows the real version, commit and build date of the Trivy adapter, and the Trivy version it runs. Before, it showed
dev,none,unknownand a Scanner Version ofUnknown. -
Bump Go to 1.27.3 to distrust compromised eMudhra CAs by @Vad1mo in #1305 (79e92ac)
Go toolchain updated to 1.27.3. Harbor components now reject TLS certificates chaining to the compromised eMudhra intermediate CAs.
-
Cache the Scannability Lookups Per Artifact-List Request by @Vad1mo in #212 (a88c02f)
Fix slow
GET /api/v2.0/projects/{p}/repositories/{r}/artifacts(and the resulting nginx 504s on Harbor-to-Harbor replication) for repositories that hold many top-level OCI image-index artifacts whose child manifests are shared and not directly scannable. The artifact-list path now reuses the scannability lookup across roots within a single request. -
Carry X-Is-Resource-Name Header Into Audit Metadata by @bupd in #659 (b81d11c)
-
Check Built-In Role Grants By Human Members For Escalation by @bupd in #1393 (fff5ab4)
A project member whose custom role grants
member:updatecan no longer change their own membership to project admin. Role changes by human members are now checked for escalation; robots keep their current behaviour. -
compose: Preserve the request port in the nginx Host header by @bupd in #926 (2c5821f)
Compose deployments served over plain HTTP on a non-default
PORT_HTTPnow keep the port in the token realm returned by/v2/. Before,docker pushandpodman pushwere sent to port 80 and failed. -
compose: Provide The Core Secret Key In The Compose Deployment by @bupd in #1235 (d8b1f47)
Compose deployments now ship Core's secret key, so registry endpoints, replication and OIDC login work out of the box instead of failing with an internal server error.
-
config: Refuse To Save A Secret That Cannot Be Encrypted by @bupd in #1359 (6e9ba89)
Saving a password setting (for example the OIDC client secret) now fails with an error when core cannot encrypt it, instead of answering success and storing the value in plaintext, where it was then ignored.
-
constrain /registries/ping to saved registry settings by @bupd in #398 (3e1cfb0)
Security fix:
/registries/pingno longer allows saved-registry connection settings to be overridden when pinging by registry ID. -
Constrain Pagination Link Next URL To The Request Origin by @bupd in #1134 (cceca05)
Fixes GHSA: GHSA-xgp2-5vxg-rgh2, "SSRF and credential disclosure via attacker-controlled pagination Link header in the registry replication client." Reported by @RealFakeAccount. The discovery is theirs.
Pagination Link headers are resolved against the request URL and cross-origin targets are refused, for catalog and tag list pagination too.
-
core: Serve the API docs page only when it is enabled by @Vad1mo in #996 (e1bce1c)
The API documentation page at
/api/v2.0/docsis no longer served by default and answers 404, because it loaded ReDoc and fonts from public CDNs, unpinned. To serve it again, setAPI_DOCS_ENABLE=trueon core: in Docker Compose underservices.core.environment, in the Helm chart throughcore.config, orcore.extraEnvwhen the value comes from a Secret. -
core: Set Secure and SameSite on the session cookie by @Vad1mo in #993 (1a78bf4)
The session cookie
sidnow carriesSecurewhen the external endpoint is https, andSameSite=Laxby default. SetSESSION_COOKIE_SAMESITEtoStrict,Lax,NoneorDefaultto change it. -
Correct Committed Key Comment Grammar by @bupd in #505 (ac924d9)
-
Correct grammar and capitalization inconsistencies across Go source files and docs (9783d50)
-
csrf: Replace gorilla/csrf with net/http.CrossOriginProtection by @bupd in #1072 (0468921)
gorilla/csrfis replaced by Go'shttp.CrossOriginProtection, which closes CVE-2025-24358 and CVE-2025-47909. No endpoint configuration is needed andCSRF_KEYis ignored. Over plain HTTP theOriginmust match theHostincluding port, so proxies must forward the Host the browser used. -
db: Align Migration 0190 With Upstream v2.16.0 by @bupd in #1416 (ba305fc)
-
db: Fill The Trusted Issuer Audience From Its Legacy aud Claim by @bupd in #1248 (26cc0aa)
Trusted issuers created before the
audiencecolumn no longer return 401 to their federated robots after an upgrade. On start, core fills the audience from the issuer's singleaudclaim. Issuers with severalaudvalues or a colliding audience keep an empty audience, which an admin sets once. -
db: Honour an explicitly configured min_conns of 0 by @Vad1mo in #565 (c6ab633)
database.minConnscan now be set to0(POSTGRESQL_MIN_CONNS=0) to run without warm connections. Before,0was replaced by the default of 2. The default is unchanged; a negative value now fails startup. Charts need the matching chart change. -
db: Reset The Retired Commercial Schema Version 182 On Main by @bupd in #1250 (a9540e9)
Upgrading straight from 8gcr v2.15.0 to v2.15.7 to this release no longer stops core with
no migration found for version 182. The retired schema version is reset automatically on start. -
db: Resolve the execution table through search_path in the revision guard by @bupd in #929 (b6a9fa0)
-
db: Widen execution.revision to bigint by @bupd in #924 (48e574d)
-
Default The Action And Template Of Immutable Tag Rules by @bupd in #1446 (25545b6)
Immutable tag rules created through the API without
actionandtemplatenow default toimmutableandimmutable_template. Such rules previously protected nothing and broke the Tag Immutability tab. Existing rules stored without these fields are enforced after upgrading, so tags they cover can no longer be deleted. -
deps: Bump golang.org/x/crypto to v0.57.0 by @bupd in #895 (048c171)
Bumps
golang.org/x/cryptoto v0.57.0, which fixes CVE-2026-56855 and CVE-2026-78662 present in v0.55.0. -
deps: Bump Harbor Scanner Trivy To v0.38.1 by @Vad1mo in #415 (825dc8c)
-
deps: Bump trivy-adapter to v0.41.0 by @bupd in #902 (80a5853)
The trivy-adapter image is updated to v0.41.0, which fixes CVE-2026-56854 (high), CVE-2026-56855 and CVE-2026-78662 (medium) in the scanner binary through
golang.org/x/cryptov0.56.0. -
deps: Pair otlploghttp with otel/log v0.21.0 by @bupd in #1066 (63bf0be)
-
deps: Remediate zero CVE findings by @github-actions[bot] in #467 (871bef7)
-
deps: Remediate zero CVE findings by @github-actions[bot] in #509 (fb6a41b)
-
deps: Remediate zero CVE findings by @github-actions[bot] in #516 (83f8201)
-
deps: update github.com/beego/i18n digest to e930894 (main) by @8gcr-renovate[bot] in #758 (9e3348c)
-
gc: Use the current registry Redis URL for scheduled runs by @Vad1mo in #1046 (e7122fa)
Scheduled garbage collection runs now use the current registry Redis URL instead of the one saved with the schedule. Schedules that failed with
failed to clean registry cacheafter a Redis host, database or password change work again without being re-saved. -
Harden Proxy Cache Repository Filter Validation (ef3f626)
-
immutable: Evaluate All Repository And Tag Selectors by @bupd in #1139 (d076eb5)
Fixes GHSA: GHSA-27f2-qg57-2gwg, "Immutable tag rule matcher only evaluates first repository/tag selector, allowing multi-selector rules to be bypassed." Reported by @Char0n1507 (Sri Charan). The discovery is theirs.
Immutable tag rules now evaluate every repository and tag selector, per tag for multi-tag artifacts.
-
jobservice: Rebase the status hook URL on the current CORE_URL by @Vad1mo in #961 (16a38a8)
Toggling
internalTLS(or otherwise changingCORE_URL) on a running instance no longer strands existing schedules. Scheduled replication, GC, retention and purge policies stay editable and keep running across the switch, and schedules that were already stuck from an earlier toggle recover automatically once jobservice restarts with this fix. -
jobservice: Unschedule periodic policy by ID instead of score by @Vad1mo in #1050 (f0875cd)
Removing or changing one periodic schedule, such as a retention policy cron, no longer removes other schedules that were registered with the same numeric ID in the same instant. Affected schedules need to be re-saved if they stopped running.
-
Keep DELETE Idempotent For Missing Members And Retention Policies by @bupd in #1445 (ff2629b)
DELETE /api/v2.0/retentions/{id}now returns 200 for a policy that does not exist (it returned 400 in 2.15).DELETEof a missing project member also returns 200.GETandPUTon missing objects still return 404. -
Keep the HTTPS port in the portal redirect and healthcheck by @bupd in #1061 (efef63e)
The portal container now becomes healthy in compose deployments with TLS on, and the HTTP to HTTPS redirect keeps a non-default HTTPS port. For a custom port, copy
tls.conf, set$https_portand pointTLS_CONFat the copy. See the README. -
Let Registry Tokens Read The Catalog When The Principal Holds catalog:read by @bupd in #1384 (b38ad78)
Registry clients that use bearer tokens can now list
/v2/_catalog. Admins, and robot accounts with thecatalog:readpermission, can page the catalog with a token from/service/token?scope=registry:catalog:*instead of getting 401. Users without that permission still cannot list the catalog. -
Let Robot Accounts Export And Read CVE Reports by @bupd in #1385 (362e8bd)
Robot accounts can now export CVE data. A robot with
export-cve:createon a project can start a CVE export, and withexport-cve:readit can check, list and download the exports it started. Exports stay visible only to the account that created them. -
Main CI Lint Portal And Retention Test by @bupd in #1295 (c80b8be)
-
Match The Role Audit Resolver To ResolveIDToNameFunc by @bupd in #1422 (3257277)
-
member: Allow System Robots With All-Project Member Access To Grant Project-Admin by @Vad1mo in #1210 (7a4e0b2)
System robots whose permissions cover all projects (
/project/*) and includemember:createormember:updatecan grant project-admin again, so automated project provisioning no longer gets 403. Project robots and system robots scoped to named projects still get 403. -
member: Require Project-Admin Authority To Grant The Project-Admin Role by @bupd in #1137 (9725b11)
Fixes a security issue: a member-management robot could grant itself the project-admin role. Remediation by @KernelClint (Clinton Thomas) and @anishnaik.
Granting the project-admin role now requires a system admin or a user who already holds project-admin in that project; robots get 403.
-
Open the request transaction after the middlewares that read the DB by @bupd in #890 (060a302)
Harbor now opens the per-request database transaction after authentication, read-only checks and audit-log resolution, so those steps no longer need a second database connection while the request already holds one. This removes the middleware-level trigger of a deadlock, present since v2.2.0, that could leave harbor-core unresponsive until restart when write traffic coincided with an expired or slow config cache. Write handlers that read configuration, such as project creation, can still hit it until configuration is served from memory.
-
orm: Detach AfterCommit hooks from a cloned or copied context by @Vad1mo in #833 (9bde345)
-
orm: Discard AfterCommit hooks of a rolled-back savepoint by @Vad1mo in #598 (13c1c43)
-
policy: Stop User-Agent From Bypassing Content-Trust And Vulnerability Policies by @bupd in #1130 (9407ac7)
Fixes GHSA: GHSA-wrw5-gmvj-gf23, "Vulnerability & Content-Trust pull policies bypassable via attacker-controlled
User-Agentheader." Reported by @sabuhimammadov0 (Sabuhi Mammadov). The discovery is theirs.Pulls no longer skip the content-trust and vulnerability-prevention policies based on the User-Agent header. The legacy signer-pull exemption is opt-in through CONTENT_TRUST_LEGACY_SIGNER_PULL_ENABLED and only relaxes content trust.
-
portal: Check Job Service Queue Health Only For System Admins by @bupd in #1447 (d0acc8e)
-
portal: Gate Tag Retention Actions By Permission by @bupd in #1455 (e0e7789)
In Project > Policy > Tag Retention, Add rule, the rule actions menu, schedule edit, Run now, Dry run and Abort are now disabled for users without the tag-retention update permission, such as developers. They previously showed enabled and ended in a
forbiddenerror. -
portal: Line Up the Authentication Tab Controls by @bupd in #1079 (ecccdd2)
-
portal: Make Log Rotation settings savable and surface no-op purge schedules by @Vad1mo in #463 (8653bca)
Clean Up > Log Rotation can be saved again. One SAVE now stores the schedule, retention and event types together. A schedule with no event types selected, which purges nothing, shows a warning. Negative retention values, which deleted nearly all audit logs, are rejected.
-
prevent project ListAll goroutine leak by @khuswant18 in #955 (07b74f2)
-
quota: Enable retry backoff on quota usage updates by @Vad1mo in #716 (3e29427)
Quota usage updates that conflict under concurrent pushes to one project now retry with exponential backoff and jitter instead of spinning. This reduces database load during push bursts. The 5 minute retry limit is unchanged.
-
quota: Refresh usage before enforcing a changed hard limit by @bupd in #1123 (a7b9a10)
Changing a project quota hard limit now recomputes usage first, so the new limit is checked against current usage and not against a count that missed earlier pushes. This applies with the database quota provider.
-
rbac: Stop Cover-All Robot Scope From Reaching Sub-Resources by @bupd in #1127 (ca78ded)
Fixes GHSA: GHSA-xq2m-cj8w-56v5, "Robot 'cover all projects' scope collapses into a global wildcard, conferring the deliberately-ungrantable
robot:update, enabling cross-project robot takeover with owner lockout." Reported by @Michael-JRead (Mike Read). The discovery, including the live PoC, is theirs.A robot now resolves the project resource to the single-segment /project/:id form so the wildcard only covers the project itself.
-
registry: Answer 400 when the endpoint URL cannot be reached by @bupd in #923 (4f01b71)
Adding or updating a registry with an unreachable URL now returns 400 instead of 500. Registry URLs must use
httporhttps; other schemes such asftpare rejected before Harbor connects. -
registry: Reject Dot Segments In /v2/ Distribution Paths by @bupd in #1136 (a3a90ae)
Fixes GHSA: GHSA-qj39-pjf2-wmrc, "Path traversal vulnerability in distribution endpoints." Reported by @Yanni8 (Yannick Müller). The discovery is theirs.
/v2/ requests containing
.or..path segments are rejected with 400 before authorization. -
registry: Validate Chunk-Upload Location Against The Registry Origin by @bupd in #1133 (f27ae4d)
Fixes GHSA: GHSA-wjpm-hv5w-gxr6, "Registry chunk upload reuses unvalidated Location headers." Reported by @GG-Feng (Oliver Wu). The discovery is theirs.
Chunked blob uploads only follow same-origin or relative Location headers, so the registry credential is never sent to another host.
-
Reject Feature Toggles On The Configurations API by @bupd in #1481 (3d28233)
PUT /api/v2.0/configurationsnow returns 400 when the body contains a feature toggle such asenable_model_sync. UsePUT /api/v2.0/features/{key}instead. Before, the key was ignored and the call returned 200 without changing anything. Update scripts written for 2.15. -
release: Track Next Development Version On Main by @bupd in #360 (ddeb4b7)
-
replication: Normalise CORE_URL comparison in isLocalHarbor by @bupd in #873 (51dda34)
Replication of private projects no longer fails with 401 when
CORE_URLdiffers between core and jobservice only by an explicit default port such as:80. The two values are now compared by scheme, host and port. -
Require A Name For Webhook Policies by @bupd in #1453 (034b27c)
Creating or updating a webhook policy through the API with an empty or blank
namenow returns 400. Before, it was accepted and left a nameless policy. -
Require Sysadmin Identity For Grants by @bupd in #1135 (3de6a70)
Fixes GHSA: GHSA-w5fq-xrhj-j7g2, "A system robot with user:update makes itself a system administrator." Remediation by @KernelClint (Clinton Thomas) and @anishnaik.
Granting or revoking the sysadmin flag now requires a sysadmin caller.
-
Resolve audit and auth lookups on the request's own DB connection by @bupd in #888 (3487ae7)
Fixed a deadlock that made harbor-core stop serving every request until it was restarted. Audit-log name resolution, OIDC and HTTP-auth group population, and the quota sync endpoint each opened a second database connection while the request already held one, so enough concurrent requests, for example simultaneous logins with an HTTP auth proxy, left every pooled connection waiting for another one.
-
Resolve Graceful Shutdown Cherry-Pick Conflicts (4b24277)
-
Resolve Upstream Sync Review Inconsistencies (9765e4e)
-
Restore Buildable Trivy Adapter Pin (a5101ec)
-
Restore Dev Up With Rootless Podman by @bupd in #401 (715249d)
-
retention: Require Durable Deletion Authority by @bupd in #1164 (c570dcf)
-
Return 400 For An Unknown Registry Type by @bupd in #1443 (ec8a286)
Creating or pinging a registry with an unknown
typenow returns 400unsupported registry typeinstead of 500. -
Return 400 When Creating A Proxy Cache Project With A Missing Registry by @bupd in #1442 (6bb1c7c)
Creating a proxy cache project with a
registry_idthat does not exist now returns 400registry N not foundinstead of 500. -
Return 404 For A Missing Retention Policy by @bupd in #1438 (fe40463)
Requests for a retention policy id that does not exist now return 404 instead of 500 (
GET) or 400 (DELETEand the execution and task endpoints). Clients that treated these codes as errors of a different kind need to handle 404. -
Return 404 When Updating Or Deleting A Missing Project Member by @bupd in #1437 (ffdc404)
PUTandDELETEon/projects/{project_name_or_id}/members/{mid}now return 404 whenmidis not a member of the project. They returned 200 before, so scripts that relied on idempotent deletes need to accept 404. -
Return 409 When Renaming A Role To An Existing Name by @bupd in #1440 (ca0fa3d)
-
Return The Creation Time When Creating A Role by @bupd in #1441 (aca67e0)
-
role: Require Artifact Delete For Custom Roles That Write Tag Retention by @bupd in #1269 (0b336a3)
-
scan: Keep SBOM accessory push on the local registry when CORE_URL has no port by @Vad1mo in #465 (bf895ae)
Fixed SBOM generation failing when
CORE_URLhas no port, for examplehttp://harbor-core. The accessory push was resolved against Docker Hub, sending robot credentials toauth.docker.ioand failing every SBOM scan. It now targets the local registry, so noCORE_URLchange is needed. -
scan: keep the last report when the raw report is empty by @Vad1mo in #863 (ba5ef5c)
-
scan: make vulnerability report persistence idempotent by @Vad1mo in #259 (b0679cb)
Scan results no longer disappear while a re-scan is queued or running: the last successful report stays visible until the new one replaces it, also after a failed re-scan. Re-scanning an unchanged artifact no longer grows
report_vulnerability_record; reclaim space on bloated databases once withVACUUM (FULL)orpg_repackplusREINDEX. The vulnerabilityreport_idis now stable across re-scans, so integrations that used it as a per-scan id should use the scan execution or task id. -
scanner: Stop Filtering Scanner Registrations By access_cred by @bupd in #1129 (f13c521)
Fixes a security issue left by an incomplete fix for CVE-2025-30086, reported by @geo-chen (George Chen), and GHSA-vwvv-675v-p6rr, reported by @arpitjain099 (Arpit Jain). A project admin could read the scanner registration credential through the
q=filter. Theaccess_credcolumn can no longer be filtered on, so list results stop leaking the stored credential. -
scan: Verify TLS And Bound Body On Scanner Bearer Token Request by @bupd in #1131 (305fbc5)
Fixes GHSA: GHSA-884q-mjcg-86x4, "Scanner bearer authorization request disables TLS verification and reads the full response body." Reported by @GG-Feng (Oliver Wu). The discovery is theirs.
The scanner bearer token request now verifies TLS, times out after 30s and caps the response at 1 MiB.
-
scheduler: Ignore randomized seconds when comparing cron by @Vad1mo in #1051 (7d54686)
-
security: avoid audit event panic on nil user data by @bupd in #402 (41a3cb8)
Fixed a denial-of-service issue where malformed user audit event metadata could panic in a detached audit-event goroutine and crash
harbor-core. -
security: Fail Closed When Auth Mode Lookup Fails by @bupd in #1132 (e2998e4)
Fixes GHSA: GHSA-3x7c-wf86-mjx6, "Security middleware continues after AuthMode lookup failure." Reported by @GG-Feng (Oliver Wu). The discovery is theirs.
Requests are rejected when the configured auth mode cannot be loaded, instead of continuing without one.
-
Send Cache-Control no-store On API And Static JSON Responses by @Vad1mo in #992 (6f90be5)
Harbor now sends
Cache-Control: no-storeon/api/responses and on the portal files/setting.json,/swagger.jsonand/i18n/, so browsers and intermediate caches no longer store them. Registry/v2/responses are unchanged. -
Send Referrer-Policy And Permissions-Policy From Portal And Core by @Vad1mo in #994 (f8f658c)
Portal and API responses now include
Referrer-Policy: strict-origin-when-cross-originandPermissions-Policy: camera=(), microphone=(), geolocation=(). The portal does not use the denied features. -
Send X-Content-Type-Options nosniff From Portal And Core by @Vad1mo in #990 (08858a4)
Portal and
/api/responses now includeX-Content-Type-Options: nosniff, so browsers no longer sniff a content type that differs from the declaredContent-Type. -
Send X-Frame-Options And CSP frame-ancestors From Portal And Core by @Vad1mo in #989 (bbeb449)
The portal and the API no longer render inside a frame on another site. If you embed the Harbor UI in an iframe, for example on a dashboard, that stops working after the upgrade. To keep it, supply your own portal nginx config through
portal.existingConfigMap. -
Serve user settings from memory, synced by Postgres change notifications by @Vad1mo in #1024 (473fe43)
Core now keeps user settings in memory and refreshes them through Postgres
LISTEN/NOTIFY, replacing the Redis config cache that could hang core under write load. Each core pod holds one pool connection for the listener, which needs a direct Postgres session (not a transaction-mode PgBouncer). Changes made directly in SQL show up within 5 minutes. -
Show Ellipsis For Truncated Tags In Artifact List by @bupd in #666 (80c3882)
-
Stop Scan All holding a pool connection per artifact by @bupd in #889 (e7d0b9c)
Fixed a deadlock where Scan All exhausted harbor-core's database pool and stopped it serving any request, including pulls and pushes, until every core pod restarted. Scan All no longer holds a connection while it reads layers or submits jobs, a submission the job service does not answer fails after 30 seconds and marks that artifact's scan failed, and artifact lists read all scan reports in one query.
-
Sweep Scan Executions Of Deleted Artifacts by @bupd in #1467 (4411a56)
-
Use harbor-next base commit hash in local release image builds by @bupd in #768 (fc9caaa)
-
Validate and truncate client IP/user agent before audit capture by @bupd in #709 (396d71e)
-
Validate Labels On Create by @bupd in #1452 (d1fe23e)
POST /api/v2.0/labelsnow validates input and returns 400 for an empty name, a project label without a valid project id, or a project that does not exist. These requests used to create the label. -
Validate The New Audit Log Forward Endpoint, Not The Old One by @bupd in #1451 (1ba6fb3)
-
webhook: Block Private-Network Targets And Stop Reflecting Response Bodies by @bupd in #1140 (ff8c122)
Fixes GHSA-2phj-cp9f-qq6w and two related advisories, SSRF through webhook delivery, reported by @OX-IgorStepansky and @iggypopi (Igor Stepansky), @e1024x and @sermikr0 (Saidakbarxon Maxsudxonov). Webhook and Slack deliveries refuse private, loopback, link-local and metadata addresses, do not follow redirects and no longer echo the target's response body. To allow trusted internal receivers, use the webhook egress policy and allowlist.
Updates
-
blob: Skip redundant blob Touch when blob is already StatusNone by @BojanZelic-DD in #397 (2004d19)
Fixed
PUT manifestlatency spikes (up to 10+ minutes at P99) caused by row-lock contention on theblobtable. Pushes and blob HEAD requests no longer issue a redundant statusUPDATEwhen the blob is already in the normal state, which removes the hot-row contention seen under concurrent re-pushes of the same content digest. GC race protection is unchanged, including whenGC_TIME_WINDOW_HOURSis set to zero. -
quota: Coalesce per-request refresh through the deferred flush by @Vad1mo in #719 (d53f626)
-
quota: Skip usage reservation when hard limits are unlimited by @bupd in #734 (49cda64)
-
Skip request-wide DB transaction for POST initiate blob upload by @Vad1mo in #713 (a9f0276)
-
Bound Attestation Subject Lookups In The Index Abstractor (5dc252d)
-
Complete YS review and update to ys-0.2.31 by @ingydotnet in #672 (3061c18)
-
Decouple The Lookup Budget From The Child Count And Cache Subjects (7a7b308)
-
Extract Manifest Abstraction Into A Registry (e32dcbd)
-
Fail Startup When A Manifest Abstractor Cannot Register (40a463e)
-
Match The Upstream Comments On AccessoryCandidate (7fd676a)
-
Move Attestation Classification Into The Manifest Package (3d699f5)
-
Skip Building The Child List For Indexes Without Attestations (b87515e)
Upstream
-
audit: audit-log events for custom roles via CommonEvent by @maxgraustenzel-create in goharbor/harbor#24018 (ba07ca8)
-
max_upstream_conn validation bugs by @Tusharjamdade in goharbor/harbor#22681 (10d4e9d)
-
nil deref in StopScanArtifact scan type param by @ashnaaseth2325-oss in goharbor/harbor#23412 (a84d6a6)
-
Prevent 500 on invalid query input by @Yanni8 in goharbor/harbor#23670 (f8d604c)
-
propagate CSV marshal error in scan data export by @ashnaaseth2325-oss in goharbor/harbor#23369 (02a70ac)
-
registry: prevent JobserviceSecret and stored credential exfiltration by @jUDASmILE in goharbor/harbor#23671 (ad44801)
-
Removed redis URL from error logs exposing potentional redis password by @Yanni8 in goharbor/harbor#23657 (e24eae6)
-
ui: remove hardcoded SBOM permission override (4c512b5), closes #23218 by @kimjune01 in goharbor/harbor#23223
-
【fix issue 22865】TCR provider adaptor can't parse intertional secret ID by @pikehuang in goharbor/harbor#22869 (4793ab2)
-
Add a size limit for manifest uploads (goharbor/harbor#23500) by @github-actions[bot] in #440 by @Aloui-Ikram in goharbor/harbor#23500 (481151b)
-
Add ListReferrers API to registry client and update parseScopes by @stonezdj in goharbor/harbor#23170 (0ca3e92)
-
Add proxy cache hit/miss metrics (goharbor/harbor#23578) by @Jason-Lee3 in goharbor/harbor#23578 (6b2b2a0)
-
add size limit for audit log payload (goharbor/harbor#23755) by @stonezdj in goharbor/harbor#23755 (abc3928)
-
Add UI option to enable proxy cache referrer API by @stonezdj in goharbor/harbor#23151 (b06a216)
-
Align manual preheat execution with update permissions (goharbor/harbor#24141) by @jUDASmILE in goharbor/harbor#24141 (b12d054)
-
bump Go version from 1.25.7 to 1.26.3 by @stonezdj in goharbor/harbor#23235 (0815a33)
-
Bump trivy to v0.71.1 and trivy adapter to v0.37.1-rc.1 by @stonezdj in goharbor/harbor#23388 (d2598a8)
-
chore: bump Trivy (goharbor/harbor#24179) in goharbor/harbor#24179 (a96d04c)
-
chore: update Trivy adapter version to v0.37.1 by @stonezdj in goharbor/harbor#23423 (7f30d4b)
-
chore(deps): bump Go modules to fix known vulnerabilities (goharbor/harbor#23720) in goharbor/harbor#23720 (063b062)
-
chore(deps): revert github.com/gorilla/csrf to v1.7.2 (goharbor/harbor#23759) by @stonezdj in goharbor/harbor#23759 (0e999aa)
-
chore(deps): update go.mod dependencies to patch versions (goharbor/harbor#23751) by @stonezdj in goharbor/harbor#23751 (aa36e04)
-
Custom project roles — frontend UI (goharbor/harbor#23970) by @github-actions[bot] in #1221 by @maxgraustenzel-create in goharbor/harbor#23970 (fa058ee)
-
feat: custom project roles (hybrid — built-ins in code, custom in DB) (goharbor/harbor#23804) by @github-actions[bot] in #1039 by @maxgraustenzel-create in goharbor/harbor#23804 (c3b93f1)
Adds custom project roles. The five built-in roles stay in code and custom roles are stored in the database. System admins manage them through the new
/api/v2.0/rolesAPI, and they can be assigned to project members and robots. A database migration (0191) runs on upgrade. The portal editor is not part of this change. -
feat: Expose retention setting during proxy-cache project creation (goharbor/harbor#23863) by @Yanni8 in goharbor/harbor#23863 (ddb91a3)
-
feat(acr): add artifact to supported resource types by @SurbhiAgarwal1 in goharbor/harbor#23392 (fc16df9)
-
feat(audit): add member create/update/delete audit events (goharbor/harbor#23228) by @github-actions[bot] in #445 by @Mauraza in goharbor/harbor#23228 (ea6e8c6)
Project member changes are now recorded in the audit log with the new event types
create_member,update_memberanddelete_member. Filters or alerts on audit event types may need these added. -
feat(backend): implement proxy cache repository filter API (goharbor/harbor#23527) by @stonezdj in goharbor/harbor#23527 (9db5b07)
-
feat(backend): implement proxy cache repository filter API (goharbor/harbor#23527) by @stonezdj in goharbor/harbor#23527 (e972887)
-
feat(replication): separate event-triggered replication into dedicate… (goharbor/harbor#24138) by @github-actions[bot] in #1253 by @stonezdj in goharbor/harbor#24138 (564e608)
Event-triggered replication now runs on its own
EVENT_REPLICATIONjob queue, so bulk manual or scheduled replications no longer delay it. Jobservice picks up the new queue on upgrade. -
feat(task): aggregate execution error messages and surface task failure details (goharbor/harbor#24028) by @github-actions[bot] in #1255 by @stonezdj in goharbor/harbor#24028 (4f79dd6)
Failed jobs now record a failure message and log tail. Failed tasks store it as
status_message, executions aggregate the task errors, the API returns it for replication tasks, and the portal shows it as a tooltip. -
feat(ui): support advanced proxy cache configurations in UI (goharbor/harbor#23536) by @stonezdj in goharbor/harbor#23536 (38749c9)
-
feat(webhook): add webhook egress policy levels and allowlist (goharbor/harbor#24079) in #1198 by @Vad1mo in goharbor/harbor#24079 (665c037)
Adds webhook and Slack egress policy levels set by
HARBOR_WEBHOOK_EGRESS_POLICY(allow_all,block_restricted,public_only) and an allowlist set byHARBOR_WEBHOOK_EGRESS_ALLOWLIST. When the policy is unset, the 2.15 boolean setting keeps its meaning. Chart and compose still pass only the legacy variable. -
Fit Permission Matrices In The Role And Robot Wizards (goharbor/harbor#24275) by @stonezdj in goharbor/harbor#24275 (1ba7fc3)
-
Fix CPU saturation in artifact deletion by indexing sbom_digest (goharbor/harbor#23773) by @github-actions[bot] in #764 by @raudhra in goharbor/harbor#23773 (16f5c35)
Deleting artifacts no longer saturates database CPU. SBOM reports are now deleted through a new index on
sbom_digest, which the migration creates on upgrade; on a largesbom_reporttable creating it may take a moment. -
Fix webhook egress allow all (goharbor/harbor#24126) by @github-actions[bot] in #1256 by @stonezdj in goharbor/harbor#24126 (4fa81ad)
-
fix: Add \n to the escape pattern (goharbor/harbor#23697) in goharbor/harbor#23697 (76c7080)
-
fix: Add i18n keys and missing translations by @bupd in goharbor/harbor#23002 (09448d0)
-
fix: Add missing validation when creating a rb account (goharbor/harbor#23691) by @Yanni8 in goharbor/harbor#23691 (b3dabbe)
-
fix: add registry component to proxy configuration support (goharbor/harbor#23437) by @github-actions[bot] in #472 by @Kibakus in goharbor/harbor#23437 (f8c7c65)
When
registryis listed inproxy.components, the registry container now receivesHTTP_PROXY,HTTPS_PROXYandNO_PROXY, so it can reach S3 through a proxy. Re-run the installerpreparestep after upgrading so the newregistry/envfile is generated. -
fix: address unsafe type assertions causing potential panics across packages (goharbor/harbor#23571) by @github-actions[bot] in #475 by @Norway-02 in goharbor/harbor#23571 (c4e39be)
-
fix: allow resizing of the SBOM column in artifact table (goharbor/harbor#23646) by @La1itchauhan in goharbor/harbor#23646 (0fe4d51)
-
fix: Bump repository update_time on tag and artifact changes by @Aloui-Ikram in goharbor/harbor#23225 (7038733)
-
fix: convert robot account ID columns and sequence to bigint (goharbor/harbor#23633) by @wy65701436 in goharbor/harbor#23633 (4c6306e)
-
fix: convert setup_timestamp, status_revision, and revision columns to bigint to avoid Y2K38 overflow (#23711) (goharbor/harbor#23718) by @stonezdj in goharbor/harbor#23718 (7e83fc7)
-
fix: correct grammar and typos in user-facing error messages (goharbor/harbor#23818) by @wy65701436 in goharbor/harbor#23818 (61298ef)
-
fix: correct grammar, formatting, and non-actionable error messages (goharbor/harbor#23974) by @github-actions[bot] in #975 by @jUDASmILE in goharbor/harbor#23974 (cbbb0e2)
-
fix: Disallow Empty
robot_name_prefixto prevent OIDC CLI login from being blocked by @falconlee236 in goharbor/harbor#22556 (9ffb23b) -
fix: duplicated "by" in beego ORM TableName comments by @vip892766gma (2d8aa62)
-
fix: enable chunked blob upload for Azure ACR replication by @xrkolovos in goharbor/harbor#23016 (9df3210)
-
fix: Fix potentional SQLi by @Yanni8 in goharbor/harbor#23418 (edab6f8)
-
fix: Fix theoretical timing vulnerability (goharbor/harbor#23433) by @github-actions[bot] in #378 by @Yanni8 in goharbor/harbor#23418 (5a98797)
-
fix: guard against division by zero when merging scan report summaries (goharbor/harbor#23572) by @github-actions[bot] in #476 by @Norway-02 in goharbor/harbor#23572 (bb57ab7)
-
fix: Harden proxy cache repository filter validation (goharbor/harbor#23762) by @bupd in goharbor/harbor#23762 (c762dee)
-
fix: ignore http.ErrServerClosed on graceful shutdown (goharbor/harbor#23296) by @Vad1mo in goharbor/harbor#23296 (7a52da8)
-
fix: implement signature inheritance for OCI index children (goharbor/harbor#23540) by @Aloui-Ikram in goharbor/harbor#23540 (7e9d8b0)
-
fix: increase access_key column length to 4096 by @Yanni8 in goharbor/harbor#23414 (759e29a)
-
fix: make endpoint handling and validation case-insensitive (goharbor/harbor#23889) (f3260d0)
-
fix: make endpoint validation host case-insensitive (goharbor/harbor#23889) by @github-actions[bot] in #866 by @stonezdj in goharbor/harbor#23889 (b1a75da)
-
fix: make hostname and endpoint comparisons case-insensitive(2) (goharbor/harbor#23842) by @bupd in #1431 by @stonezdj in goharbor/harbor#23842 (4912411)
-
Fix: member audit log resolution after transaction commit (goharbor/harbor#23586) by @Mauraza in goharbor/harbor#23586 (955b0d1)
-
fix: neutralize CSV formula in scan export (goharbor/harbor#23677) by @stonezdj in goharbor/harbor#23677 (62defc4)
-
fix: restore robot member role assignment compatibility (goharbor/harbor#24300) by @github-actions[bot] in #1396 by @stonezdj in goharbor/harbor#24300 (9d2eef8)
Robots with project member create or update permission can assign built-in and custom roles again. Human users can delegate member-management robots only if they are project or system admins, and permission scope is now enforced on robot updates.
-
fix: set MaxIdleConnsPerHost on internal HTTP transports (goharbor/harbor#23591) by @github-actions[bot] in #533 by @chlins in goharbor/harbor#23591 (5eb7075)
-
fix: skip corrupted encrypted config values on decryption failure by @rossigee in goharbor/harbor#23376 (ffc35ca)
-
fix: use errors.Is for sentinel error checks in usergroup controller (goharbor/harbor#23636) by @Norway-02 in goharbor/harbor#23636 (ef9e319)
-
fix: use errors.Is for sentinel error comparisons (goharbor/harbor#24149) by @Norway-02 in goharbor/harbor#24149 (aca23c0)
-
fix: use LEFT JOIN in projectBasicSQL to include projects without quota records (goharbor/harbor#23520) by @github-actions[bot] in #522 by @cdarninsuang-bamfunds in goharbor/harbor#23520 (1c6b5c3)
The exporter now reports projects that have no quota records, which is the case when
quota_per_project_enableisfalse. Before, these projects were dropped from the project metrics and each scrape logged one error per missing project. -
fix: validate max_upstream_conn values on the backend by @github-actions[bot] in #508 by @intojhanurag in goharbor/harbor#22678 (9a57f99)
Project metadata
max_upstream_connis now range-checked by the API. Values such as0or negatives other than-1are rejected instead of being stored; fix any automation that sets them. -
fix(api): return 404 when listing artifacts of a non-existing repository (goharbor/harbor#17618) by @github-actions[bot] in #857 by @tpoxa in goharbor/harbor#17618 (8747227)
Listing artifacts of a repository that does not exist now returns the standard 404
NOT_FOUNDerror payload. An existing empty repository still returns an empty 200 list. -
fix(cache): avoid double prefix when removing expired entries (goharbor/harbor#23913) by @Hanabi9248 in goharbor/harbor#23913 (1770b75)
-
fix(cache): replace keyMutex with singleflight and avoid canceling cache (goharbor/harbor#23336) by @github-actions[bot] in #377 by @air1bzz in goharbor/harbor#23336 (90bab7a)
-
fix(cnai-parser): enforce actual byte limit to prevent decompression (goharbor/harbor#23497) by @github-actions[bot] in #503 by @chlins in goharbor/harbor#23497 (3c47b6e)
Parsing of CNAI artifacts now enforces the size limit on the bytes actually decompressed or untarred, not only on the size declared in the manifest. Layers that expand beyond the limit are rejected with an error instead of exhausting memory.
-
fix(contenttrust): allow legacy signer pull by default to avoid regre… (goharbor/harbor#24085) by @github-actions[bot] in #1199 by @wy65701436 in goharbor/harbor#24085 (e6c2324)
CONTENT_TRUST_LEGACY_SIGNER_PULL_ENABLEDdefaults totrueagain, so cosign and notation signing keeps working after upgrade. Set it tofalseto enforce content trust on every pull; a malformed value fails closed. -
fix(ecr): use amazonaws.com.cn domain for AWS China region endpoints by @amaanx86 in goharbor/harbor#23326 (e3783d5)
-
fix(gc): do not count blobs missing from storage as freed space (goharbor/harbor#23972) by @velmoga in goharbor/harbor#23972 (0da9771)
-
fix(i18n): improve Korean translation of FULL_NAME (goharbor/harbor#22701) by @InGyu-Moon in goharbor/harbor#22701 (07af193)
-
fix(i18n): localize max upstream connection placeholder by @bupd in goharbor/harbor#23197 (d3de48e)
-
fix(i18n): translate remaining French UI strings (goharbor/harbor#24088) by @berlewis in goharbor/harbor#24088 (e1b29a4)
-
fix(jobservice): prevent CPU spin from unreachable cron expressions (goharbor/harbor#23925) by @github-actions[bot] in #1251 by @nikitakodkany--------- in goharbor/harbor#23925 (452d990)
Cron expressions that can never fire, such as
0 0 3 30 2 *, are now rejected. They previously made jobservice spin on CPU. Policies already saved with such an expression stay listed so you can unschedule them. -
fix(portal): Add Missing Operate And Configuration i18n (goharbor/harbor#24104) by @bupd in #1274 by @bupd in goharbor/harbor#24104 (941ac83)
-
fix(portal): Keep the swagger-ui loading page intact when webpack minifies HTML (goharbor/harbor#23859) by @Vad1mo in goharbor/harbor#23859 (9fe319c)
-
fix(portal): prevent resource names from wrapping in permissions panel (goharbor/harbor#24284) by @stonezdj in goharbor/harbor#24284 (b56cda1)
-
fix(portal): Project Tab Access Permissions Match the User Permissions (goharbor/harbor#22708) by @bupd in #1427 by @vg006 in goharbor/harbor#22708 (6f1bf70)
Guest and Limited Guest members no longer see the Scanner and Configuration tabs on a project, and opening their URLs redirects to the default page. Members who also hold a custom role or a stronger built-in role keep the tabs they are permitted to use.
-
fix(portal): update label and tooltip of serve stale content option (goharbor/harbor#23978) by @stonezdj in goharbor/harbor#23978 (2e137c0)
-
fix(project): reject registry_id changes in UpdateProject (goharbor/harbor#24162) by @nikitakodkany in goharbor/harbor#24162 (290641b)
-
fix(registry): validate upload Location against the request origin, n… (goharbor/harbor#24113) by @github-actions[bot] in #1202 by @wy65701436 in goharbor/harbor#24113 (9a01de6)
Push replication to registries that rewrite the upload host, such as AWS ECR, no longer fails. Upload
Locationheaders are checked against the origin of the request that produced them. Cross-origin, network-path and userinfo locations are still rejected. -
fix(registryctl): reject empty secrets to prevent authentication bypass (goharbor/harbor#23946) by @stonezdj in goharbor/harbor#23946 (e5b9a15)
-
fix(replication): fix incorrect error propagation in getAccessoryArts (goharbor/harbor#23569) by @github-actions[bot] in #473 by @jUDASmILE in goharbor/harbor#23569 (2b876bc)
Replication from a Harbor v2 source now fails when listing accessories of an artifact fails. Before, the error was swallowed and the run could report success while accessories were missing.
-
fix(replication): make the image resource filter take effect again (goharbor/harbor#24176) by @github-actions[bot] in #1279 by @chlins in goharbor/harbor#24176 (55ac7ae)
Replication policies with the
imageresource filter now exclude non-image artifacts such as charts, CNAI and WASM, as the filter was meant to. Policies saved withimagesince 2.8 applied no type filter, so review them if they relied on replicating everything; useartifactto replicate all types. -
fix(replication): preserve artifact type for multi-tier accessories (goharbor/harbor#24200) by @stonezdj in goharbor/harbor#24200 (0e83f24)
-
fix(repoproxy): prevent proxy-cache poisoning via robot-name prefix (goharbor/harbor#23675) by @jUDASmILE in goharbor/harbor#23675 (942679c)
-
fix(repoproxy): query robot account to validate proxy session and fix ut (goharbor/harbor#23776) by @github-actions[bot] in #707 by @stonezdj in goharbor/harbor#23776 (2eba4c5)
SBOM generation on proxy cache projects no longer fails when the scanner pushes the SBOM accessory under a
v2_tokensession. User-created robot accounts are still refused pushes to proxy cache projects. -
fix(retention): avoid stripping repository path twice (goharbor/harbor#23546) by @github-actions[bot] in #470 by @esadakcam in goharbor/harbor#23546 (8a8a309)
Retention rules with nested repository exclusions such as
qa/**now match. Repository names were stripped of the project twice, so these exclusions never applied. Re-check retention policies that relied on them. -
fix(retention): drop retention_id metadata on project delete (goharbor/harbor#23942) by @warisshaikh1 in goharbor/harbor#23942 (e623db8)
-
fix(scan): scope scan stop lookup to caller artifact (goharbor/harbor#23948) by @stonezdj in goharbor/harbor#23948 (02ae1c9)
-
fix(scanner): redact scanner URL in candidate list for non-admin users (goharbor/harbor#23947) by @stonezdj in goharbor/harbor#23947 (1e8f197)
-
fix(security): validate blob-mount source project and reject tokens missing iat by @Vad1mo in goharbor/harbor#23270 (728c685)
-
fix(systeminfo): make HTTPS URL scheme check case-insensitive for CA download (goharbor/harbor#23888) by @Norway-02 in goharbor/harbor#23888 (aeb4d12)
-
fix(ui): keep multi-value filters when editing a P2P preheat policy (goharbor/harbor#24056) by @velmoga in goharbor/harbor#24056 (6a4f56e)
-
fix(ui): Update bindings in Project Policy Config by @vg006 in goharbor/harbor#22694 (c862a28)
-
fix(ui): use selected tag for pull command copy by @bupd in goharbor/harbor#23240 (5613c0f)
-
Fix/api completeness (goharbor/harbor#23476) by @bupd in #432 by @qcserestipy in goharbor/harbor#23476 (e912279)
The OpenAPI spec now documents response codes that Harbor already returned on many endpoints (for example 412, 422, 404). Clients generated from the spec, such as go-swagger based ones, no longer fail with an opaque undocumented-status error and show the actual Harbor error body. No server behaviour changes.
-
Harden crypto usage and drop unused SMTP package by @wy65701436 in goharbor/harbor#23307 (069c28d)
-
Improve global label listing behavior (goharbor/harbor#24140) by @jUDASmILE in goharbor/harbor#24140 (7119214)
-
Improve job status hook handling (goharbor/harbor#24137) by @github-actions[bot] in #1245 by @jUDASmILE in goharbor/harbor#24137 (f315863)
-
Improve project metadata cache consistency (goharbor/harbor#24139) by @github-actions[bot] in #1280 in goharbor/harbor#24139 (a164357)
-
Keep credentials and secrets out of debug logs (goharbor/harbor#23835) by @github-actions[bot] in #806 by @jUDASmILE in goharbor/harbor#23835 (77f0220)
-
make hostname and endpoint comparisons case-insensitive (goharbor/harbor#23827, #23842) by @bupd in #1308 by @stonezdj in goharbor/harbor#23827 (418876f)
-
perf(replication): filter event policies in query by @chlins in goharbor/harbor#23283 (63b7b89)
-
portal: align robot account immutability label (goharbor/harbor#24171) by @github-actions[bot] in #1277 by @NUAAwqy in goharbor/harbor#24171 (61a84f2)
-
Prevent 500 if no project members have been provided (goharbor/harbor#23642) by @Yanni8 in goharbor/harbor#23642 (e14f711)
-
Proxy the referrer API to upstream registry with paging and local merge (goharbor/harbor#23237) by @stonezdj in goharbor/harbor#23237 (440fbd7)
-
Redact The Upload Location In Rejection Errors (goharbor/harbor#24068) by @bupd in #1426 by @bupd in goharbor/harbor#24068 (29985f0)
-
refactor: remove deprecated io/ioutil usage (goharbor/harbor#23611) by @Norway-02 in goharbor/harbor#23611 (82ab3b1)
-
refactor: replace deprecated golang.org/x/net/context (goharbor/harbor#23630) by @Norway-02 in goharbor/harbor#23630 (a92ae76)
-
refactor: Resolve every project role's permissions from the database (goharbor/harbor#24029) by @bupd in #1287 by @bupd in goharbor/harbor#24029 (c30c0b3)
-
refactor: sanitize connection details in logs and enhance error message formatting (goharbor/harbor#23878) by @jUDASmILE in goharbor/harbor#23878 (6da7d9b)
-
refactor(config): centralize registry HTTP client timeout by @chlins in goharbor/harbor#23154 (4a0f675)
-
refactor(p2p): improve HTTP client request logging and credential string formatting (goharbor/harbor#23873) by @jUDASmILE in goharbor/harbor#23873 (8e47ad0)
-
refactor(task): use Redis SET with SPOP for outdate execution status … by @chlins in goharbor/harbor#23183 (594c228)
-
Refine utils function IsLocalPath (goharbor/harbor#23756) by @stonezdj in goharbor/harbor#23756 (95e331a)
-
Replace gopkg.in/yaml.v2 with github.com/goccy/go-yaml by @stonezdj in goharbor/harbor#23349 (62f6d94)
-
Set blob response headers before streaming the body (goharbor/harbor#23374) by @github-actions[bot] in #498 by @shrenikgala in goharbor/harbor#23374 (878d3bf)
-
test: accelerate flaky tests by removing time.Sleep (goharbor/harbor#23692) by @Norway-02 in goharbor/harbor#23692 (b7f4dd8)
-
test: eliminate arbitrary sleep delays in artifact DAO and gtask pool tests (goharbor/harbor#23778) by @github-actions[bot] in #729 by @Norway-02 in goharbor/harbor#23778 (5916927)
-
test: reduce arbitrary sleep delays in core auth and awsecr tests (goharbor/harbor#23722) by @Norway-02 in goharbor/harbor#23722 (45549f6)
-
Update and improve zh-TW Traditional Chinese locale by @PeterDaveHello in goharbor/harbor#23315 (1bed488)
-
Update artifact_accessory to add source column to identify accessory by @stonezdj in goharbor/harbor#23144 (ac3a351)
-
update ECR adapter to allow for ecr-public to be mirored by @goshlanguage in goharbor/harbor#22351 (a3a52a7)
-
Upgrade harbor go.mod OSS packages by @stonezdj in goharbor/harbor#23314 (efca784)
Reverts
-
Drop The Project-Admin Grant Guard by @bupd in #1137 (#1228) (e69e2c9)
Fixes a security issue: a member-management robot could grant itself the project-admin role. Remediation by @KernelClint (Clinton Thomas) and @anishnaik.
Granting the project-admin role now requires a system admin or a user who already holds project-admin in that project; robots get 403.
-
Drop The System Robot Project-Admin Grant Exemption by @Vad1mo in #1212 (5ab2fb3)
-
Durable Deletion Authority And Limit Developers To Reading Policies (Revert #1164) by @bupd in #1267 (f8625dd)
Reverts #1164: Project Admins and Maintainers whose role comes from an OIDC, LDAP or auth-proxy group, and admins through the provider's admin group, can save scheduled tag retention policies again. The Developer role now only reads and lists tag retention, which closes a security issue. Harbor does not record who created a policy, so review scheduled retention policies after upgrading.
Helm Chart
helm install harbor oci://8gears.container-registry.com/8gcr/charts/harbor \
--version 2.2.1 -n harbor --create-namespace -f my-values.yamlContainer Images
Multi-arch images (linux/amd64, linux/arm64) signed with cosign.
| Image | Reference |
|---|---|
harbor-core |
8gears.container-registry.com/8gcr/harbor-core:v2.16.0 |
harbor-jobservice |
8gears.container-registry.com/8gcr/harbor-jobservice:v2.16.0 |
harbor-registryctl |
8gears.container-registry.com/8gcr/harbor-registryctl:v2.16.0 |
harbor-exporter |
8gears.container-registry.com/8gcr/harbor-exporter:v2.16.0 |
harbor-portal |
8gears.container-registry.com/8gcr/harbor-portal:v2.16.0 |
harbor-registry |
8gears.container-registry.com/8gcr/harbor-registry:v2.16.0 |
trivy-adapter |
8gears.container-registry.com/8gcr/trivy-adapter:v2.16.0 |
Verify an image signature:
cosign verify \
--certificate-identity "https://github.com/container-registry/8gcr/.github/workflows/publish-images.yml@refs/heads/2862ead965368458e1192268828f524262cf8122" \
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
8gears.container-registry.com/8gcr/harbor-core:v2.16.0New Contributors
- @PranavJogdand made their first contribution in #381
- @BojanZelic-DD made their first contribution in #397
- @ingydotnet made their first contribution in #672
- @khuswant18 made their first contribution in #955
- @SurbhiAgarwal1 made their first contribution in #687




