Skip to content

v2.16.0

Latest

Choose a tag to compare

@github-actions github-actions released this 17 Nov 23:58
2862ead

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.

Push dialog with the publish commands for each package format

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.

New Model Sync policy with the resolved Hugging Face source

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.

Bookmarks in the left navigation

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 with the IP Address and User Agent columns (addresses blurred)

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.

Audit Log configuration with the OTLP endpoint and the event matrix

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_POLICY and
    HARBOR_TRUSTED_ISSUER_EGRESS_ALLOWLIST, with the same values as the webhook settings. Each
    falls back to its HARBOR_WEBHOOK_EGRESS_* counterpart (chart network.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_only and
    HARBOR_TRUSTED_ISSUER_EGRESS_ALLOWLIST=kubernetes.default.svc, plus the host of the cluster's
    jwks_uri when it differs
  • The OpenID configuration and JWKS test endpoints need permission to create a trusted issuer:
    system admin, or project admin with project_id in 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-configuration is rejected with
    400; a query such as Azure AD B2C's ?p=<policy> is kept and sent as given. The discovered
    jwks_uri must 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 aud or iss claim 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 GOSUMDB can 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/list includes 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, metadata is_project_group, RBAC resource grouped-project, "Lookup Order" in the UI. The 2.16 /subprojects paths and multi_project key 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 as openssl@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 is library.

  • 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 library when that project exists. Helm users can pin it with core.defaultProjectName (env DEFAULT_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 variable HARBOR_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 optional storage.s3.spooldir setting 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 as 3.1.2+patched.3. Maintainers can add more upstream patches through DISTRIBUTION_PATCHES in Taskfile.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 AuditLogExt API 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.enabled to provision it through a Grafana sidecar.

  • chart: Production Helm chart by @Vad1mo in #56 (2f19897)

    New harbor Helm chart at deploy/chart, published as a cosign-signed OCI chart at oci://8gears.container-registry.com/8gcr/charts/harbor. One image.source value switches every image between 8gcr builds and upstream goharbor images, and the portal, Trivy, exporter and bundled Valkey can each be turned off. Rendering is deterministic for GitOps, and autoGenSecrets: false fails the render on any unpinned secret. To move from the goharbor chart, follow deploy/chart/docs/MIGRATION.md or run task 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), to allow_all, block_restricted or public_only, with network.webhookEgress.allowlist (HARBOR_WEBHOOK_EGRESS_ALLOWLIST) for trusted receivers. The chart defaults to block_restricted, so internal receivers work while loopback, link-local and metadata stay blocked; compose keeps public_only. network.allowPrivateNetworkAccess is deprecated: true maps to allow_all, false to public_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-exporter container optional. Set METRIC_ENABLE=true and METRIC_EXPORTER_ENABLE=true on core; metrics are served on METRIC_PORT (default 9090) and cached for METRIC_EXPORTER_CACHE_TIME seconds (default 30). Both flags default to false. When you switch, repoint Prometheus and then remove the exporter container, or sum() queries double-count; dashboards keyed on job="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.txt by @Vad1mo in #995 (743fd56)

    The portal now serves an RFC 9116 /.well-known/security.txt that points vulnerability reports at the project's private advisory form.

  • Registry endpoints accept non-HTTP schemes such as sftp:// and s3:// by @bupd in #742 (fa85864)

    Registry endpoint URL validation is now scheme-aware: replication targets accept http, https, s3, sftp, and ftp URLs, while p2p preheat providers and scanner adapters remain restricted to http/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 https only and no longer names http://localhost as an API endpoint.

  • api: Bound Audited And Manifest Request Bodies by @bupd in #1138 (5a418ee)

    Fixes an unauthenticated memory-exhaustion DoS through POST /c/login reported 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 /permissions now 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/roles now omits created_at and modified_at for 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 format values Swagger 2.0 defines, which changes Storage.total, Storage.free and ReplicationPolicy.dest_namespace_replace_count in generated clients from unsigned and 8-bit integers to int64 and int32.

  • 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 new update_feature event 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_FILL environment 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, unknown and a Scanner Version of Unknown.

  • 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:update can 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_HTTP now keep the port in the token realm returned by /v2/. Before, docker push and podman push were 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/ping no 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/docs is no longer served by default and answers 404, because it loaded ReDoc and fonts from public CDNs, unpinned. To serve it again, set API_DOCS_ENABLE=true on core: in Docker Compose under services.core.environment, in the Helm chart through core.config, or core.extraEnv when the value comes from a Secret.

  • core: Set Secure and SameSite on the session cookie by @Vad1mo in #993 (1a78bf4)

    The session cookie sid now carries Secure when the external endpoint is https, and SameSite=Lax by default. Set SESSION_COOKIE_SAMESITE to Strict, Lax, None or Default to 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/csrf is replaced by Go's http.CrossOriginProtection, which closes CVE-2025-24358 and CVE-2025-47909. No endpoint configuration is needed and CSRF_KEY is ignored. Over plain HTTP the Origin must match the Host including 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 audience column no longer return 401 to their federated robots after an upgrade. On start, core fills the audience from the issuer's single aud claim. Issuers with several aud values 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.minConns can now be set to 0 (POSTGRESQL_MIN_CONNS=0) to run without warm connections. Before, 0 was 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 action and template now default to immutable and immutable_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/crypto to 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/crypto v0.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: Resolve Non-UI CVEs by @bupd in #374 (abef6af)

  • 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 cache after 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 changing CORE_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). DELETE of a missing project member also returns 200. GET and PUT on 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_port and point TLS_CONF at 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 the catalog:read permission, 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:create on a project can start a CVE export, and with export-cve:read it 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 include member:create or member:update can 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-Agent header." 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 forbidden error.

  • 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 http or https; other schemes such as ftp are 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/configurations now returns 400 when the body contains a feature toggle such as enable_model_sync. Use PUT /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_URL differs 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 name now 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 type now returns 400 unsupported registry type instead 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_id that does not exist now returns 400 registry N not found instead 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 (DELETE and 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)

    PUT and DELETE on /projects/{project_name_or_id}/members/{mid} now return 404 when mid is 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_URL has no port, for example http://harbor-core. The accessory push was resolved against Docker Hub, sending robot credentials to auth.docker.io and failing every SBOM scan. It now targets the local registry, so no CORE_URL change 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 with VACUUM (FULL) or pg_repack plus REINDEX. The vulnerability report_id is 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. The access_cred column 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-store on /api/ responses and on the portal files /setting.json, /swagger.json and /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-origin and Permissions-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 include X-Content-Type-Options: nosniff, so browsers no longer sniff a content type that differs from the declared Content-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/labels now 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 manifest latency spikes (up to 10+ minutes at P99) caused by row-lock contention on the blob table. Pushes and blob HEAD requests no longer issue a redundant status UPDATE when 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 when GC_TIME_WINDOW_HOURS is 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

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.yaml

Container 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.0

New Contributors