Harbor v2.16.1
Released 2026-12-04. GitHub release
Supported until v2.18. Container Registry supports the current and previous minor releases; this version reaches end of support when the second newer minor (v2.18) is published.
Summary
A scan now writes one audit log entry (scan_artifact) for the scanned artifact, attributed to whoever started it, and no longer logs the temporary robot account it uses. The entry can be switched off and purged like other audit event types.
The registry and Trivy adapter images are rebuilt with patched dependencies, which clears the fixable CVEs a scan of the 2.16.0 images reported (#1648).
The Go images and the chart keep trusting CA certificates mounted in /etc/ssl/certs and /etc/pki/tls/certs in addition to /etc/harbor/ca and /harbor_cust_cert. Setting SSL_CERT_DIR had stopped Go from reading those default directories.
Tag create and delete events can be switched off in the audit log settings and are removed by audit log purge.
A proxy cache fill for an older digest that finishes after a newer one no longer moves the cached tag back to the older digest. (#1673)
A multi-platform image pulled by tag through a proxy cache project is now cached with its tag, so later tag pulls are served from the local copy instead of the short-lived Redis copy, and garbage collection with untagged deletion no longer removes it (#1653).
The compose deployment starts PostgreSQL with max_connections=1024, so bursts of webhook or job activity no longer run out of database connections (#1650).
On cgroup v1 hosts where the container shares the host cgroup namespace, core, jobservice and registryctl now derive the Go memory limit from their own cgroup instead of the unlimited hierarchy root. (#1674)
Registry pushes and pulls now get 503 Service Unavailable with Retry-After: 5 when Harbor can’t reach its database during the auth check. Before, they got 401 Unauthorized, so docker and CI clients reported bad credentials and gave up instead of retrying. A missing project still returns 401. (#1459)
Harbor’s Go images (core, jobservice, exporter, registryctl, registry) now trust private CA certificates mounted at /etc/harbor/ca or /harbor_cust_cert, in addition to the public CA bundle. The chart mounts externalRedis.tlsOptions.existingCaSecret at /etc/harbor/ca instead of /etc/harbor/extra-ca.
Commercial Features
Branding
- Branding takes a light mode and a dark mode logo URL. Once set, the logo replaces the Harbor logo everywhere, including the header, the About dialog and the browser tab icon, following the color scheme. One URL alone serves both modes, and an existing product logo carries over as the light mode logo (container-registry/8gcr-ee#808)
- The browser tab icon crops the branding logo to its visible content and fills the whole square, so logos with padding or a non-square canvas no longer show up tiny (container-registry/8gcr-ee#818)
/favicon.ico, the dark icon path and/apple-touch-icon.pnglead to the branding logo, so bookmarks, link previews and the first page load show it. The portal also declares typed light and dark icon links,apple-touch-iconandog:imagefrom the logo URL. Without a logo the stock Harbor icon stays (container-registry/8gcr-ee#825)
Federated Robot Accounts
- Federated tokens must now match the trusted issuer exactly as registered. If your identity provider ends
isswith a/, create the trusted issuer again with that/, since the issuer cannot be edited. Deleting a trusted issuer also removes its robot links and claim rules, so link the robots and add their claim rules again (container-registry/8gcr-ee#923) - Federated tokens without an
expclaim are rejected. Issuers that mint tokens withoutexpmust add it (container-registry/8gcr-ee#892) POST /api/v2.0/trusted-issuers/openid-configandPOST /api/v2.0/trusted-issuers/jwksare removed. Scripts that call them should usePOST /api/v2.0/trusted-issuers/validate, which needs permission to create a trusted issuer (container-registry/8gcr-ee#953)- Hardening: Harbor’s own OIDC ID tokens are never accepted as federated robot tokens, and a trusted issuer that pairs Harbor’s OIDC provider with Harbor’s OIDC client ID as audience is refused. Give such a trusted issuer an audience of its own (container-registry/8gcr-ee#997)
- Test a trusted issuer before saving it: the Test Connection button in the trusted issuer dialogs and
POST /api/v2.0/trusted-issuers/validaterun the checks of saving and show the issuer, JWKS URI, keys and algorithms Harbor would use, or why it refuses the issuer. A trusted issuer whose keys cannot verify any token can no longer be saved (container-registry/8gcr-ee#943, container-registry/8gcr-ee#944) - Creating an online trusted issuer fails when its discovery document names a different issuer, or lists no signing algorithm in
id_token_signing_alg_values_supported(container-registry/8gcr-ee#914, container-registry/8gcr-ee#919) - Online trusted issuers are set up by their issuer URL. Harbor fetches the discovery document
from the issuer followed by
/.well-known/openid-configuration(a trailing/of the issuer is dropped first), and the issuer the document names must equal the one entered. The OpenID configuration URL is now optional and only needed when the document lives elsewhere, such as Azure AD B2C’s?p=<policy>URL. An issuer with a query or fragment is refused with 400. In manual mode the issuer comes from the pasted discovery document (container-registry/8gcr-ee#918, container-registry/8gcr-ee#929, container-registry/8gcr-ee#1062, container-registry/8gcr-ee#1064) - Trusted issuer discovery and JWKS requests, including the JWKS fetch at login, follow an
egress policy of their own:
HARBOR_TRUSTED_ISSUER_EGRESS_POLICYandHARBOR_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. A block is logged as “trusted issuer egress policy … blocked” and names theHARBOR_TRUSTED_ISSUER_EGRESS_*settings even when they are unset; the API answers only “the URL’s host is not allowed by the trusted issuer egress policy” (container-registry/8gcr-ee#719) - Per-issuer CA bundle: an online trusted issuer takes
ca_bundle, PEM CA certificates (up to 64 KiB) that Harbor trusts for that issuer’s discovery and JWKS requests instead of the system roots. Other issuers and the rest of Harbor never trust them. Saving rejects anything that is not a PEM CA certificate with 400, and offline issuers cannot set one. Prefer it over mounting the CA for every component withSSL_CERT_DIR - In-cluster Kubernetes issuer, whose discovery document is served by the API server. Harbor
fetches it without credentials, so:
- Let anonymous clients read the discovery document and JWKS:
kubectl create clusterrolebinding service-account-issuer-discovery-unauthenticated --clusterrole=system:service-account-issuer-discovery --group=system:unauthenticated. The default binding covers only service accounts - Trust the cluster CA for this issuer only: paste the output of
kubectl get configmap kube-root-ca.crt -o jsonpath='{.data.ca\.crt}'into its CA bundle - Allowlist exactly the host of the OpenID configuration URL you enter, for example
kubernetes.default.svc(orkubernetes.default.svc.cluster.localif you enter that), and the host of thejwks_uriin the discovery document, which on kubeadm and kind is the API server address such as172.19.0.2. Keep webhooks locked down and add tocore.extraEnv:HARBOR_TRUSTED_ISSUER_EGRESS_POLICY=public_onlyandHARBOR_TRUSTED_ISSUER_EGRESS_ALLOWLIST=kubernetes.default.svc,<jwks_uri host> - The issuer Harbor stores comes from the discovery document (
--service-account-issuer, by defaulthttps://kubernetes.default.svc.cluster.local), whatever host the URL uses. Managed clusters that publish a public issuer need none of these steps (container-registry/8gcr-ee#805)
- Let anonymous clients read the discovery document and JWKS:
- 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 discoveredjwks_urimust use HTTPS, and redirects from HTTPS to HTTP are refused (container-registry/8gcr-ee#719) - Trusted issuers served by a Kubernetes API server work: the JWKS request accepts
application/jwk-set+json, which the API server requires (container-registry/8gcr-ee#805) - An OpenID configuration URL may end with one
/, which Harbor drops. An encoded/or other escape that only makes the decoded path end with/.well-known/openid-configurationis rejected (container-registry/8gcr-ee#805) - Hardening: federated robot login ignores symmetric (
oct) keys from an issuer’s JWKS or offlinejwks_keysand logs their key IDs. Issuers must sign federated tokens with an asymmetric key (container-registry/8gcr-ee#805) - Hardening: federated tokens are rejected when their header marks an extension as critical (
crit), or whenexp,nbforiatis not a number (container-registry/8gcr-ee#917, container-registry/8gcr-ee#945) - Hardening: JWKS keys whose
key_opsleave outverifyno longer verify tokens, and offline trusted issuers accept public keys only;jwks_keyswith private or symmetric key material is refused with 400 (container-registry/8gcr-ee#925, container-registry/8gcr-ee#954) - Trusted issuers whose JWKS keys have no
alg, such as Microsoft Entra ID, accept valid tokens again (container-registry/8gcr-ee#910) - A trusted issuer’s accepted signing algorithms now come from its keys and show read only in the portal.
supported_algorithmsis ignored when sent, so scripts that set it can drop it. A token is rejected when its key does not fit the token’s algorithm (container-registry/8gcr-ee#930, container-registry/8gcr-ee#935, container-registry/8gcr-ee#964, container-registry/8gcr-ee#965) - Login keeps working when an issuer’s JWKS also holds a key Harbor cannot use, such as an unknown key type. That key is skipped instead of failing the whole set, and the algorithms shown for the trusted issuer match what login accepts (container-registry/8gcr-ee#922, container-registry/8gcr-ee#1045)
- After a trusted issuer is edited, login on that core uses the new signing keys right away instead of the old ones for up to 15 minutes; other core replicas pick them up within 15 minutes. Keys past their
max-ageare no longer used (container-registry/8gcr-ee#911, container-registry/8gcr-ee#1004, container-registry/8gcr-ee#1078) - Hardening: a robot claim rule is accepted only on the trusted issuer the robot is linked to (container-registry/8gcr-ee#837)
- Claim rules now match numeric token claims such as project or repository IDs. Before, numbers of seven or more digits never matched (container-registry/8gcr-ee#924)
- Token
audand claim values are compared exactly, so a value with leading or trailing spaces no longer matches a rule without them (container-registry/8gcr-ee#949) - Federated robot login stays fast on trusted issuers with many robots, and Harbor’s own registry tokens no longer trigger trusted issuer lookups.(container-registry/8gcr-ee#846)
- Adding claim rules no longer answers 409 for a robot whose claim has several values when another robot holds only some of them (container-registry/8gcr-ee#846)
- Editing a project federated robot in the portal saves claim changes. Before, the form reported success and kept the old claims (container-registry/8gcr-ee#838)
- Reopening a federated robot while its update is still saving no longer undoes that update, and a failed claim delete that may still have gone through says so (container-registry/8gcr-ee#1070, container-registry/8gcr-ee#898, container-registry/8gcr-ee#993)
- A project admin can link the project’s robots to a system trusted issuer, such as one shared GitHub or GitLab issuer, and manage those robots’ claim rules without being a system admin. The issuer’s own claim rules stay with system admins and apply to every robot linked to it. On a system issuer, users who are not system admins list only the issuer’s rules and the rules of robots they can read, and a token only signs in as a robot linked to the issuer it was routed to (container-registry/8gcr-ee#810)
- Federated robot login keeps working right after an issuer rotates its signing key. A token signed with a key ID that is not in the cached JWKS triggers one refetch, at most once every 30 seconds per JWKS URL (container-registry/8gcr-ee#928)
- Hardening: offline trusted issuer
jwks_keysaccept only RSA and EC public keys meant for signatures. Other key types, keys missing their public members, keys whoseuseis notsigand keys whosekey_opsleave outverifyare refused with 400 (container-registry/8gcr-ee#979)
Package Repositories
- Two Cargo publishes of the same version at the same time no longer both succeed; the second is refused instead of replacing the first crate and changing its checksum (container-registry/8gcr-ee#1265)
- Uploading the wheel and the sdist of one PyPI version at the same time keeps both files when Harbor runs more than one core replica. Before, both uploads succeeded but one file was dropped and later removed by GC (container-registry/8gcr-ee#1264)
- Concurrent publishes to one package no longer hold a database connection while they wait for its lock, so a burst larger than the pool no longer stalls core. A publish that waits more than 30 seconds gets 503 and can be retried (container-registry/8gcr-ee#1284)
- Package URLs move under
/pkg/<format>/<project>/, for example/pkg/npm/<project>/or/pkg/maven/<project>/. The 2.16.0 paths such as/npm/<project>/and/maven/<project>/return 404 after the upgrade and are not kept as aliases, so rewrite.npmrc, Mavensettings.xml, pip index URLs, Cargo registries andGOPROXYsettings to add the/pkgprefix. An ingress or reverse proxy in front of Harbor must route/pkg/to core; the chart’s Ingress and Gateway API routes already do (container-registry/8gcr-ee#758) - In OIDC mode, users can push and pull packages under
/pkg/with their CLI secret, the same way they log in to the registry. Before, every package request with a CLI secret got 401 (container-registry/8gcr-ee#1261) - The Package Repositories setting is renamed from
enable_commercial_multi_format_artifactstoenable_commercial_package_repositories, and the package tables frommulti_format_*topackage_repo_*, the names 2.17 uses. The upgrade carries the setting’s value and the stored packages over. Scripts that read the setting from the configuration API or toggle it through the features API need the new key; theHARBOR_ENABLE_COMMERCIAL_MULTI_FORMAT_ARTIFACTSenvironment variable keeps working. Upgrade all core replicas together: an older 2.16 core started after the upgrade finds no packages and reads the feature as off (container-registry/8gcr-ee#1236) - Multi-project (Project Groups) is removed. The upgrade drops the group table, the
multi_projectandis_project_groupmetadata and thesub-projectandgrouped-projectpermissions, so grouped projects become plain projects. The project group API and portal pages are gone, and 2.16 has no replacement for them (container-registry/8gcr-ee#833) - The feature is now called Package Repositories in the portal, with a tooltip listing the package formats every project can store (container-registry/8gcr-ee#815)
- The NPM proxy streams upstream packuments instead of loading them whole, passes the client’s
Acceptthrough so npm gets the abbreviated document, and reads only one version’s metadata on a tarball cache miss, so onenpm ciof a large lockfile peaks core at about 170 MiB instead of about 570 MiB (container-registry/8gcr-ee#765) - 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)
- 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 hosted project serves the Go modules it stores (container-registry/8gcr-ee#732)
Linked Projects
- Beta: a project can link other projects. A pull through the project checks the project itself first, then its links in rank order, and serves images, tags, referrers and blobs from linked projects under the requested project’s name. Turn it on with
enable_commercial_linked_projectsin the Commercial section of the configuration (container-registry/8gcr-ee#783, container-registry/8gcr-ee#785, container-registry/8gcr-ee#786, container-registry/8gcr-ee#790, container-registry/8gcr-ee#784, container-registry/8gcr-ee#793) - The project page has a Linked Projects tab. Its Linked Projects view manages links and its Linked By view shows which projects link this one (container-registry/8gcr-ee#791)
- Linked content is read-only through the linking project: pushing a signature or SBOM for it, tagging, labelling or scanning it there is refused, and deleting it there answers not found (container-registry/8gcr-ee#788)
- A pull served through a link is audited on the requested project with the link path. The owning project’s pull count, pull time and pull webhooks record it too (container-registry/8gcr-ee#787)
- A lookup walks at most 25 projects and follows at most 3 links by default. Both limits can be changed in System Settings (
linked_projects_max_lookup,linked_projects_max_depth) (container-registry/8gcr-ee#785, container-registry/8gcr-ee#821) - Replication rules can copy a project as before, together with every linked project, or flattened into one target project. The linked and flattened modes need this Harbor as the source and allow at most one name filter (container-registry/8gcr-ee#789)
- With Package Repositories, NPM and Maven reads follow the same lookup order (container-registry/8gcr-ee#961)
- Setting the project metadata
linked_projects_opt_outtotruekeeps a project out of links in both directions. It is refused while the project still has links
What’s Changed
Features
- Allow Editing And Deleting Built-In Roles Except Project Admin (backport #1563) in #1575 (6f8fe44)
- db: Add The Claim Rule Match Schema To harbor_next.sql (backport #1690) in #1693 (a976fa5)
- db: Add The Linked Project Schema To harbor_next.sql (backport #1692) in #1696 (186063a)
- Group Commercial Features Under Their Own Heading (backport #1547) in #1581 (7527087)
Fixes
- Answer The Tab Icon Paths Through The API (backport #1658) in #1659 (1c88e39)
- Audit A Multi-Arch Pull Once And Keep Its Tag (backport #1553) in #1577 (fdecc4a)
- Audit Each Scan As One Row (backport #1556) in #1675 (6cb4b1f)
- blob: Bound The Touch Skip To A Short Staleness Window (backport #1569) in #1644 (5a2fd2c)
- build: Clear Fixable CVEs In The Registry And Trivy Adapter Images in #1648 (e47e73d)
- Compile Audit Resolver Patterns Once (backport #1558) in #1576 (fde1069)
- compose: Route /pkg/ To Core In The Portal Proxy (backport #1706) in #1709 (9b41360)
- db: Drop Empty Legacy Package Tables After A 2.16 Rollback (backport #1661) in #1701 (6c0910a)
- db: Drop The Project Group Schema (backport #1691) in #1695 (759ebec)
- db: Rename The Package Repositories Switch (backport #1691) in #1702 (db63659)
- Describe Each Audit Log Entry In One Sentence (backport #1550) in #1580 (df80aad)
- Harden Migrator DSN Parsing And Bound Authoritative Schema Locking (backport #1559) in #1572 (e51b591)
- Keep Go Default CA Directories In SSL_CERT_DIR (backport #1665) in #1680 (9c56edc)
- Let Tag Events Be Switched Off And Purged In The Audit Log (backport #1557) in #1676 (ff7b233)
- Mark Webhook Executions As Error When The Job Cannot Be Submitted (backport #1458) in #1639 (b2d9a9c)
- oidc: Follow The OAuth And OIDC Refresh Rules For CLI Secrets (backport #1562) in #1574 (8cd0918)
- portal: Guide First Push From The Empty Repository List (backport #1492) in #1503 (7366c00)
- portal: Show Proxy Cache Settings Only To System Admins (backport #1501) in #1505 (6b06daf)
- portal: Show Push Commands In A Dialog With Format Tabs (backport #1491) in #1495 (b270b08)
- portal: Stop Listing Registries For Project Admins On Project Configuration (backport #1489) in #1494 (1c7ecb1)
- proxy: Keep A Tag On The Upstream Digest When An Older Fill Finishes Last (backport #1673) in #1686 (146da95)
- proxy: Tag A Cached Index When It Is Pulled By Tag (backport #1653) in #1678 (b840d2e)
- quota: Let The Database Enforce The Detached Rollback Deadline (backport #1570) in #1646 (de559e8)
- Raise Postgres max_connections In The Compose Deployment (backport #1561) in #1650 (eb70b59)
- Read The Cgroup V1 Memory Limit From The Process’s Own Cgroup (backport #1674) in #1684 (e699d90)
- Return 503 Instead Of 401 When The Registry Auth Check Cannot Reach The Database (backport #1459) in #1677 (b7be0b2)
- Run One Proxy-Cache Manifest Fill Per Manifest (backport #1468) in #1642 (a59ca82)
- scan: Parse The Vulnerability Report Once During Conversion (backport #1568) in #1645 (c1c5c6d)
- Serve Cached Referrers When The Proxy Upstream Is Unhealthy (backport #1456) in #1638 (5310767)
- Set The Go Memory Limit From The Container Memory Limit (backport #1587) in #1605 (2f22c65)
- Show Old And New Values In Configuration Audit Entries (backport #1551) in #1579 (51e500b)
- Skip A Locked Repository Row When Bumping Its update_time (backport #1466) in #1641 (8ff3ab3)
- Stabilize Security Hub Vulnerability Paging And Skip Redundant Counts (backport #1535) in #1643 (ef156dc)
- Store The Audit Client Address Without Its Port (backport #1552) in #1578 (5a9ecde)
- Trust Mounted CA Certificates In Scratch Images (backport #1626) in #1679 (e3a1a37)
Updates
- Rename Multi-format Artifacts To Package Repositories In Schema And Patch Series (backport #1654) in #1700 (c2fecf0)
Upstream
- fix(i18n): correct wrong Korean labels (goharbor/harbor#24483) (backport #1597) in #1602 in goharbor/harbor#24483 (8f87329)
- fix(i18n): fix broken placeholders in Korean translation (goharbor/harbor#24482) (backport #1596) in #1603 in goharbor/harbor#24482 (b132891)
- fix(i18n): translate Korean strings still shown in English (goharbor/harbor#24488) (backport #1615) in #1664 in goharbor/harbor#24488 (d3c31d9)
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.1 |
harbor-jobservice | 8gears.container-registry.com/8gcr/harbor-jobservice:v2.16.1 |
harbor-registryctl | 8gears.container-registry.com/8gcr/harbor-registryctl:v2.16.1 |
harbor-exporter | 8gears.container-registry.com/8gcr/harbor-exporter:v2.16.1 |
harbor-portal | 8gears.container-registry.com/8gcr/harbor-portal:v2.16.1 |
harbor-registry | 8gears.container-registry.com/8gcr/harbor-registry:v2.16.1 |
trivy-adapter | 8gears.container-registry.com/8gcr/trivy-adapter:v2.16.1 |
Verify an image signature:
cosign verify \
--certificate-identity "https://github.com/container-registry/container-registry/.github/workflows/publish-images.yml@refs/heads/release-2.16" \
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
8gears.container-registry.com/8gcr/harbor-core:v2.16.1