Harbor v2.15.16
Released 2026-12-04. GitHub release
Supported until v2.17. Container Registry supports the current and previous minor releases; this version reaches end of support when the second newer minor (v2.17) is published.
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)
SFTP Replication
- SFTP endpoints now verify the server host key against a
known_hostsfile (HARBOR_SFTP_KNOWN_HOSTS, default/etc/harbor/sftp_known_hosts); add the host keys of your SFTP servers to that file. Endpoints without the Insecure flag used to fail to connect. A failed chunked upload now closes its SFTP file and SSH session instead of leaking them in jobservice (container-registry/8gcr-ee#431)
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 when unset or empty, and from there to the deprecatedHARBOR_ALLOW_PRIVATE_NETWORK_ACCESS; 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. The chart
sets
network.allowPrivateNetworkAccess: false, which means public addresses only, so such an issuer stops working until it is set up. Harbor fetches the documents 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. Webhooks stay public-only; 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 (container-registry/8gcr-ee#839)
- When a federated token names a key ID the cached JWKS of an online trusted issuer does not hold, Harbor refetches the JWKS once, at most every 30 seconds per JWKS URI, so keys an issuer rotated in work right away instead of after the cache expires (container-registry/8gcr-ee#928)
- A login that arrives just after another one refetched the JWKS uses the keys that refetch got instead of failing, and a client that disconnects during the refetch no longer fails it for the other logins waiting on it (container-registry/8gcr-ee#963)
- Offline trusted issuer
jwks_keysaccept only RSA and EC signature keys, on create, edit and validate: a key needs its public members (nande, orcrv,xandy),usemust besigwhen set, andkey_opsmust includeverifywhen set. Before, an edit could save keys that verify nothing and every token of the issuer was rejected (container-registry/8gcr-ee#979) - The offline JWKS field of both trusted issuer dialogs checks the pasted keys with the API’s rules and shows why a set is refused, such as a private, symmetric or encryption key. OK stays disabled until the set is valid (container-registry/8gcr-ee#981)
What’s Changed
Features
Fixes
- Add Int64FromAny Task Helper Missing From release-2.15 in #1397 (83955f8)
- Let Registry Tokens Read The Catalog When The Principal Holds catalog:read (backport #1384) in #1389 (3cad56e)
- Let Robot Accounts Export And Read CVE Reports (backport #1385) in #1390 (1e5c116)
- portal: Show Proxy Cache Settings Only To System Admins (backport #1501) in #1506 (a8e7901)
- portal: Stop Listing Registries For Project Admins On Project Configuration (backport #1489) in #1502 (0acf89e)
Container Images
Multi-arch images (linux/amd64, linux/arm64) signed with cosign.
| Image | Reference |
|---|---|
harbor-core | 8gears.container-registry.com/8gcr/harbor-core:v2.15.16 |
harbor-jobservice | 8gears.container-registry.com/8gcr/harbor-jobservice:v2.15.16 |
harbor-registryctl | 8gears.container-registry.com/8gcr/harbor-registryctl:v2.15.16 |
harbor-exporter | 8gears.container-registry.com/8gcr/harbor-exporter:v2.15.16 |
harbor-portal | 8gears.container-registry.com/8gcr/harbor-portal:v2.15.16 |
harbor-registry | 8gears.container-registry.com/8gcr/harbor-registry:v2.15.16 |
trivy-adapter | 8gears.container-registry.com/8gcr/trivy-adapter:v2.15.16 |
Verify an image signature:
cosign verify \
--certificate-identity "https://github.com/container-registry/container-registry/.github/workflows/release-please.yml@refs/heads/release-2.15" \
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
8gears.container-registry.com/8gcr/harbor-core:v2.15.16