Harbor user guide#

This guide describes, in one place, how to use the credential Threedy Customer Success (CS) hands over for harbor.threedy.io: what you receive, where it goes, and how to log in and pull images and Helm charts for released versions (GA), the preview and tracks.

If you still pull from images.threedy.io or the Helm repository on repo.threedy.io, the migration guides for releases and preview and for tracks explain the switch.

In the examples, <project> is your Harbor project, <track> the name of a track, and <namespace> the Kubernetes namespace of your installation. The release name is instant3dhub; if your existing installation has another name, use that one, otherwise helm upgrade --install creates a second installation next to it.

The three channels#

GA release

Preview

Track

What it is

Released instant3Dhub versions

Upcoming versions before their release, so you can check them for CVEs before they are public

Builds made for your team (versions 0.0.<build number>)

Harbor project

instant3dhub (public)

instant3dhub-preview (private)

<project>, your private project; a track shared by several customers is in instant3dhub-preview

Credential

None

Yes

Yes, the same one

Chart

oci://harbor.threedy.io/instant3dhub/instant3dhub

oci://harbor.threedy.io/instant3dhub-preview/instant3dhub

oci://harbor.threedy.io/<project>/instant3dhub-trk-<track>

Images (registry value)

harbor.threedy.io/instant3dhub

harbor.threedy.io/instant3dhub-preview

harbor.threedy.io/<project>/trk-<track>

Versions

3.13.7, 3.14.0, …

3.14.0-rc.1, 3.14.0, …

0.0.<build number>

Kept

GA versions are never removed automatically

Newest 20, release candidates included, plus anything pushed within 30 days

Newest 5 per image, plus anything pulled within 60 days

<track> is the name of your track with underscores turned into hyphens: track trk_my_track has the chart instant3dhub-trk-my-track and the images under trk-my-track/.

Every GA and preview version from 3.12.0 on, and every track build, is signed with the same Threedy release key (see Verifying signatures).

Your project#

A project holds the tracks of one team. It is usually named after that team rather than after your organisation, so an organisation with several teams that must not see each other’s builds has several projects, each with its own credential. CS tells you the name of your project.

If you only use the preview and have no tracks, you have no project of your own.

What you receive from CS#

Item

Example

How you get it

Username

robot$<project>-202611 (preview only: robot$preview-<organisation>-202611)

Ticket or mail

Secret

a random string

One-time link, valid once; store it right away

Project name

<project>

Ticket or mail

Expiry date

2027-11-30

Ticket or mail

One credential covers your project and the preview. It only pulls: it cannot push, delete or log in to the Harbor web UI.

The username is robot$, then your project, then the month the credential was issued. Use it exactly as you received it. On the command line, put it in single quotes: in a shell $ starts a variable, so an unquoted robot$<project>-202611 loses everything after robot and the login fails with unauthorized.

Where the credential goes#

The same username and secret go into every tool that pulls from your project or the preview:

Where

What you configure

GA

Preview and tracks

Helm CLI

helm registry login harbor.threedy.io

–

username and secret

Docker / containerd on a workstation

docker login harbor.threedy.io

–

same

Kubernetes nodes pulling images

an image pull secret in the namespace, referenced by imagePullSecret in the chart values

–

same

Argo CD

a repository secret per project URL

secret without username and password

with username and password

Flux

a HelmRepository of type oci with secretRef

without secretRef

with secretRef

Terraform helm_release

repository_username / repository_password

–

same

CI pipelines

masked CI/CD variables, e.g. HARBOR_USERNAME and HARBOR_SECRET

–

same

cosign, oras, skopeo, crane

the Docker login (docker login / oras login)

–

same

Store the secret like any other password: in your Kubernetes secret store or CI variables, never in Git.

GA releases: no credential#

Images and chart#

helm upgrade --install instant3dhub oci://harbor.threedy.io/instant3dhub/instant3dhub \
  --version 3.14.0 -n <namespace> -f values.yaml
# values.yaml
registry: harbor.threedy.io/instant3dhub

No helm registry login, no pull secret. To look at a chart first:

helm show values oci://harbor.threedy.io/instant3dhub/instant3dhub --version 3.14.0
helm pull oci://harbor.threedy.io/instant3dhub/instant3dhub --version 3.14.0 --untar --untardir ./chart

Argo CD#

apiVersion: v1
kind: Secret
metadata:
  name: harbor-instant3dhub
  namespace: argocd
  labels:
    argocd.argoproj.io/secret-type: repository
stringData:
  type: helm
  name: instant3dhub
  url: harbor.threedy.io/instant3dhub
  enableOCI: "true"
# Application
spec:
  source:
    repoURL: harbor.threedy.io/instant3dhub
    chart: instant3dhub
    targetRevision: 3.14.0

Preview#

Use the username you received: robot$<project>-…, or robot$preview-<organisation>-… if you only use the preview. The examples show the first form.

1. Log in#

helm registry login harbor.threedy.io --username 'robot$<project>-202611' --password-stdin

The command reads the secret from the terminal; paste it and press Enter, then Ctrl-D. In scripts, pipe it in: printf '%s' "$HARBOR_SECRET" | helm registry login ….

2. Pull secret for the cluster#

kubectl create secret docker-registry harbor \
  --docker-server=harbor.threedy.io \
  --docker-username='robot$<project>-202611' \
  --docker-password='<secret>' \
  -n <namespace>

The pull secret is for the registry host, so the same secret pulls images from your project and the preview.

3. Values and install#

# values-preview.yaml
registry: harbor.threedy.io/instant3dhub-preview
imagePullSecret: harbor
helm upgrade --install instant3dhub oci://harbor.threedy.io/instant3dhub-preview/instant3dhub \
  --version 3.14.0-rc.1 -n <namespace> -f values-preview.yaml

Argo CD#

apiVersion: v1
kind: Secret
metadata:
  name: harbor-instant3dhub-preview
  namespace: argocd
  labels:
    argocd.argoproj.io/secret-type: repository
stringData:
  type: helm
  name: instant3dhub-preview
  url: harbor.threedy.io/instant3dhub-preview
  enableOCI: "true"
  username: robot$<project>-202611
  password: <secret>

In YAML the $ needs no quoting. The cluster still needs the pull secret from step 2 for the images.

Listing preview versions#

The preview is private, so list its versions with your credential, for example with the ORAS CLI:

oras login harbor.threedy.io --username 'robot$<project>-202611' --password-stdin
oras repo tags harbor.threedy.io/instant3dhub-preview/instant3dhub

After the release#

When the version you tested is released, switch back to the GA channel: chart oci://harbor.threedy.io/instant3dhub/instant3dhub, registry: harbor.threedy.io/instant3dhub, no pull secret. The artifacts are identical, with the same digests and signatures, so you run exactly what you tested.

Tracks#

The examples use the track trk_my_track in <project>.

1. Log in#

helm registry login harbor.threedy.io --username 'robot$<project>-202611' --password-stdin

2. Pull secret for the cluster#

kubectl create secret docker-registry harbor \
  --docker-server=harbor.threedy.io \
  --docker-username='robot$<project>-202611' \
  --docker-password='<secret>' \
  -n <namespace>

3. Values and install#

# values-track.yaml
registry: harbor.threedy.io/<project>/trk-my-track
imagePullSecret: harbor
helm upgrade --install instant3dhub oci://harbor.threedy.io/<project>/instant3dhub-trk-my-track \
  --version 0.0.102283 -n <namespace> -f values-track.yaml

Keep the release name you used so far (instant3dhub here): Helm then upgrades the existing installation. Changing registry changes the image references, so the pods restart with a rolling update.

Argo CD#

apiVersion: v1
kind: Secret
metadata:
  name: harbor-<project>
  namespace: argocd
  labels:
    argocd.argoproj.io/secret-type: repository
stringData:
  type: helm
  name: <project>
  url: harbor.threedy.io/<project>
  enableOCI: "true"
  username: robot$<project>-202611
  password: <secret>
# Application
spec:
  source:
    repoURL: harbor.threedy.io/<project>
    chart: instant3dhub-trk-my-track
    targetRevision: 0.0.102283

Argo CD keeps one repository secret per URL. If you use the preview as well, add a second secret for harbor.threedy.io/instant3dhub-preview with the same username and secret.

Flux#

kubectl create secret docker-registry harbor \
  --docker-server=harbor.threedy.io \
  --docker-username='robot$<project>-202611' \
  --docker-password='<secret>' \
  -n flux-system
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
  name: harbor-<project>
  namespace: flux-system
spec:
  interval: 10m
  type: oci
  url: oci://harbor.threedy.io/<project>
  secretRef:
    name: harbor
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
  name: instant3dhub
  namespace: flux-system
spec:
  interval: 10m
  targetNamespace: <namespace>
  chart:
    spec:
      chart: instant3dhub-trk-my-track
      version: 0.0.102283
      sourceRef:
        kind: HelmRepository
        name: harbor-<project>
  values:
    registry: harbor.threedy.io/<project>/trk-my-track
    imagePullSecret: harbor

The HelmRelease installs into <namespace>; the image pull secret harbor has to exist there as well, not only in flux-system.

Terraform#

resource "helm_release" "instant3dhub" {
  name                = "instant3dhub" # keep your existing release name
  namespace           = "<namespace>"
  repository          = "oci://harbor.threedy.io/<project>"
  chart               = "instant3dhub-trk-my-track"
  version             = "0.0.102283"
  repository_username = var.harbor_username
  repository_password = var.harbor_secret
  values              = [file("values-track.yaml")]
}

kustomize#

helmCharts:
  - name: instant3dhub-trk-my-track
    repo: oci://harbor.threedy.io/<project>
    version: 0.0.102283
    valuesFile: values-track.yaml

kustomize uses the helm registry login from step 1.

A track shared by several customers#

A shared track lives in the preview project. Use the same credential with the chart oci://harbor.threedy.io/instant3dhub-preview/instant3dhub-trk-<track> and registry: harbor.threedy.io/instant3dhub-preview/trk-<track>.

Several projects in one organisation#

Each project has its own credential, and each credential covers only its own project (plus the preview). An installation uses the credential of the project it installs from. helm, docker and oras keep one login per registry host, so log in again with the other project’s credential before you pull from that project by hand.

Verifying signatures#

Images and charts are signed with cosign. The public key is published at https://repo.threedy.io/cosign/cosign.pub. Check its SHA-256 before you trust it:

curl -fsSLO https://repo.threedy.io/cosign/cosign.pub
sha256sum cosign.pub
# c0e2d0e85ac3afa84a420cb48a522c23fa59b1f3e7fe0bc168f76d43330be602

GA, no login needed:

cosign verify --key cosign.pub harbor.threedy.io/instant3dhub/i3dhub-apigw@sha256:<digest>

Preview and tracks: cosign reads the Docker login, so log in first:

docker login harbor.threedy.io --username 'robot$<project>-202611' --password-stdin
cosign verify --key cosign.pub harbor.threedy.io/<project>/instant3dhub-trk-my-track:0.0.102283

Verify by digest where you can, so the check covers exactly what you run. Without internet access, add --offline=true.

Mirroring into your own registry#

Copy every image of the version and the chart, so that digests and signatures stay intact. The images of a version are the ones your rendered chart references:

helm template instant3dhub oci://harbor.threedy.io/instant3dhub/instant3dhub \
  --version 3.14.0 -f values.yaml --set registry=harbor.threedy.io/instant3dhub \
  | grep -oE 'harbor\.threedy\.io/[^"[:space:]]+' | sort -u

Copy each of them, and the chart:

cosign copy harbor.threedy.io/instant3dhub/<image>:<tag> <your-registry>/instant3dhub/<image>:<tag>
cosign copy harbor.threedy.io/instant3dhub/instant3dhub:3.14.0 <your-registry>/instant3dhub/instant3dhub:3.14.0

For private projects, docker login harbor.threedy.io first. Do not use docker pull, docker tag and docker push: they can change the digest, and verification then fails.

Expiry, rotation and leaks#

  • Credentials have an expiry date. Before it, CS sends you a new one; both work during an overlap, so you can switch without downtime.

  • The new credential has a new username as well as a new secret, because the month is part of the name (robot$<project>-202611 becomes, for example, robot$<project>-202711). Replace both.

  • To switch: update the pull secret (kubectl create secret … --dry-run=client -o yaml | kubectl apply -f -), the Argo CD or Flux secret and CI variables; pods pick up the new pull secret at their next image pull.

  • If a credential leaks, tell CS immediately. Threedy revokes it and issues a new one.

Troubleshooting#

Symptom

Likely cause

unauthorized at login, for example Error: Get "https://harbor.threedy.io/v2/": unauthorized

Username without single quotes on the command line ($ was expanded), a typo in username or secret, or a credential that has expired

denied: requested access to the resource is denied

The credential does not cover that project, e.g. the credential of another team’s project

ImagePullBackOff

The pull secret is missing in the pod’s namespace, not referenced in imagePullSecret, or the registry value points to a project the credential does not cover

Argo CD: failed to get index or unsupported protocol scheme

enableOCI: "true" missing in the repository secret, or the URL has oci:// (Argo CD wants it without)

helm: unknown command "registry" or OCI errors

Helm older than 3.8

manifest unknown for a track build

The build was removed by retention (newest 5, plus anything pulled within 60 days); ask CS or move to a newer build

Login to the Harbor web UI fails

Expected: the credential is for machines only

Quick reference#

GA

Preview

Track (trk_my_track in <project>)

Login

none

helm registry login harbor.threedy.io --username 'robot$<project>-…'

same

Chart

oci://harbor.threedy.io/instant3dhub/instant3dhub

oci://harbor.threedy.io/instant3dhub-preview/instant3dhub

oci://harbor.threedy.io/<project>/instant3dhub-trk-my-track

registry

harbor.threedy.io/instant3dhub

harbor.threedy.io/instant3dhub-preview

harbor.threedy.io/<project>/trk-my-track

Pull secret

none

yes

yes, the same

Argo CD url

harbor.threedy.io/instant3dhub

harbor.threedy.io/instant3dhub-preview

harbor.threedy.io/<project>

Questions

Your Threedy Customer Success contact