# harbor

Harbor: OCI container registry

This page is generated from [`kix/packages/stable/harbor`](https://github.com/kix-run/kix/tree/main/kix/packages/stable/harbor).

| | |
| --- | --- |
| Stability | Stable |
| `package` value | `packages.harbor` |
| Default software version | `2.15.5` |

## Dependencies

Kix matches each dependency below to another package instance by instance name, alias, or role. To bind a specific instance, set [`deps.<name>`](/docs/reference/instances-and-composition/#deps) in your cluster definition. See [Declaring dependencies](/docs/reference/package-anatomy/#declaring-dependencies) for how required and optional dependencies work.

| Dependency | Requirement |
| --- | --- |
| `database` | Required |
| `harborSecrets` | Required |
| `redis` | Required |
| `storage` | Required |
| `caBundle` | Optional |
| `clusterIssuer` | Optional |
| `gateway` | Optional |
| `ingressNginx` | Optional |
| `oidc` | Optional |
| `prometheus` | Optional |
| `reloader` | Optional |

## Options

### `core.env`

Extra environment variables for core, over the package's
tunables (LOG_LEVEL, PERMITTED_REGISTRY_TYPES_FOR_PROXY_CACHE, REPLICATION_ADAPTER_WHITELIST, POSTGRESQL_MAX_IDLE_CONNS, and POSTGRESQL_MAX_OPEN_CONNS). A value is a string, a `fieldRef` source, or a
`secretKeyRef` source naming a Secret managed outside Kix with
`kix.untrackedRef`; null removes a tunable. Addresses and
credentials the package derives from its dependencies cannot be
set here.

- **Type:** ``attribute set of (null or string or env var source with `valueFrom`)``
- **Default:** `{ }`

### `core.image`

Image of Harbor core. The other Harbor images follow its tag.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    digest = "sha256:f7c0ad9b8bae40d4a6460e80be88b6c7d624eebdfbb5690b5b7ae13b4c1bd862";
    pullPolicy = "IfNotPresent";
    repository = "docker.io/goharbor/harbor-core";
    tag = "v2.15.5";
  }
  ```

### `core.image.digest`

Resolved manifest digest, `sha256:` followed by 64 hex characters. What will actually run. Null means not resolved.

- **Type:** `null or string`
- **Default:** the package's digest while `tag` is the package's tag, otherwise null

### `core.image.note`

Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.

- **Type:** `null or string`
- **Default:** `null`

### `core.image.promotedBy`

Who resolved this pin, for the record. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `core.image.pullPolicy`

imagePullPolicy for containers using this image. Null leaves it to Kubernetes.

- **Type:** `null or string`
- **Default:** `"IfNotPresent"`

### `core.image.repository`

Image repository, registry host included.

- **Type:** `string`
- **Default:** `"docker.io/goharbor/harbor-core"`

### `core.image.resolvedAt`

When this pin was resolved, RFC 3339. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `core.image.sourceRev`

Revision of the source the image was built from, when Kix built it. Null for upstream images.

- **Type:** `null or string`
- **Default:** `null`

### `core.image.tag`

Image tag. What was asked for.

- **Type:** `string`
- **Default:** `"v2.15.5"`

### `core.replicas`

Number of core pods. Core is a stateless API; its state lives in the database and valkey.

- **Type:** `positive integer, meaning >0`
- **Default:** 1 at availability `none`, otherwise 2

### `core.resources`

Container resource requests and limits. Each field keeps its default until set, and null removes a default.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    limits = {
      cpu = "1";
      memory = "256Mi";
    };
    requests = {
      cpu = "20m";
      memory = "128Mi";
    };
  }
  ```

### `core.resources.claims`

Dynamic resource claims the container uses. Null leaves it unset.

- **Type:** `null or (list of (submodule))`
- **Default:** `null`

### `core.resources.claims.*.name`

Name of an entry in the pod's `resourceClaims`.

- **Type:** `string`

### `core.resources.claims.*.request`

Request within the claim to use. Null uses the whole claim.

- **Type:** `null or string`
- **Default:** `null`

### `core.resources.limits`

Resource quantities by name.

- **Type:** `open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `{ }`

### `core.resources.limits.cpu`

The cpu quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"1"`

### `core.resources.limits.ephemeral-storage`

The ephemeral-storage quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `core.resources.limits.memory`

The memory quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"256Mi"`

### `core.resources.requests`

Resource quantities by name.

- **Type:** `open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `{ }`

### `core.resources.requests.cpu`

The cpu quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"20m"`

### `core.resources.requests.ephemeral-storage`

The ephemeral-storage quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `core.resources.requests.memory`

The memory quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"128Mi"`

### `core.settings`

Harbor configuration items (the keys of `GET /api/v2.0/configurations`),
which core applies from CONFIG_OVERWRITE_JSON on every start. A
non-empty value, or an `oidc` dependency, makes every setting
read-only in Harbor's UI. With `oidc` wired the package sets `auth_mode`,
`oidc_endpoint`, `oidc_client_id`, `oidc_client_secret`,
`oidc_scope`, `oidc_groups_claim`, and `oidc_admin_group`, and
refuses them here; it defaults `oidc_name` to "OpenID Connect".
`oidc_client_secret` and `ldap_search_password` are always
refused, because the value would land in the pod spec. Values
reach Harbor as written: the package escapes `$` against
Kubernetes' `$(VAR)` expansion.

- **Type:** `attribute set of (boolean or signed integer or string)`
- **Default:** `{ }`
- **Example:**

  ```nix
  {
    oidc_auto_onboard = true;
    oidc_user_claim = "preferred_username";
    project_creation_restriction = "adminonly";
  }
  ```

### `database.sslmode`

libpq sslmode for core, jobservice, and the exporter. Null derives
it from the database dependency's `out.tls`: "require" when the
server speaks TLS, "disable" when it does not.

- **Type:** `null or one of "disable", "allow", "prefer", "require", "verify-ca", "verify-full"`
- **Default:** `null`

### `exporter.env`

Extra environment variables for the exporter, over the package's
tunables (LOG_LEVEL, HARBOR_DATABASE_MAX_IDLE_CONNS, HARBOR_DATABASE_MAX_OPEN_CONNS, HARBOR_EXPORTER_CACHE_TIME, and HARBOR_EXPORTER_CACHE_CLEAN_INTERVAL). A value is a string, a `fieldRef` source, or a
`secretKeyRef` source naming a Secret managed outside Kix with
`kix.untrackedRef`; null removes a tunable. Addresses and
credentials the package derives from its dependencies cannot be
set here.

- **Type:** ``attribute set of (null or string or env var source with `valueFrom`)``
- **Default:** `{ }`

### `exporter.image`

Image of harbor-exporter. Its tag follows core.image.tag.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    digest = "sha256:d1fa474567b6b1efb5325570f523de457efec4d2ba871691c2982835f76b87ac";
    pullPolicy = "IfNotPresent";
    repository = "docker.io/goharbor/harbor-exporter";
    tag = config.core.image.tag;
  }
  ```

### `exporter.image.digest`

Resolved manifest digest, `sha256:` followed by 64 hex characters. What will actually run. Null means not resolved.

- **Type:** `null or string`
- **Default:** the package's digest while `tag` is the package's tag, otherwise null

### `exporter.image.note`

Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.

- **Type:** `null or string`
- **Default:** `null`

### `exporter.image.promotedBy`

Who resolved this pin, for the record. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `exporter.image.pullPolicy`

imagePullPolicy for containers using this image. Null leaves it to Kubernetes.

- **Type:** `null or string`
- **Default:** `"IfNotPresent"`

### `exporter.image.repository`

Image repository, registry host included.

- **Type:** `string`
- **Default:** `"docker.io/goharbor/harbor-exporter"`

### `exporter.image.resolvedAt`

When this pin was resolved, RFC 3339. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `exporter.image.sourceRev`

Revision of the source the image was built from, when Kix built it. Null for upstream images.

- **Type:** `null or string`
- **Default:** `null`

### `exporter.image.tag`

Image tag. What was asked for.

- **Type:** `string`
- **Default:** `config.core.image.tag`

### `exporter.resources`

Container resource requests and limits. Each field keeps its default until set, and null removes a default.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    limits = {
      cpu = "500m";
      memory = "128Mi";
    };
    requests = {
      cpu = "10m";
      memory = "32Mi";
    };
  }
  ```

### `exporter.resources.claims`

Dynamic resource claims the container uses. Null leaves it unset.

- **Type:** `null or (list of (submodule))`
- **Default:** `null`

### `exporter.resources.claims.*.name`

Name of an entry in the pod's `resourceClaims`.

- **Type:** `string`

### `exporter.resources.claims.*.request`

Request within the claim to use. Null uses the whole claim.

- **Type:** `null or string`
- **Default:** `null`

### `exporter.resources.limits`

Resource quantities by name.

- **Type:** `open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `{ }`

### `exporter.resources.limits.cpu`

The cpu quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"500m"`

### `exporter.resources.limits.ephemeral-storage`

The ephemeral-storage quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `exporter.resources.limits.memory`

The memory quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"128Mi"`

### `exporter.resources.requests`

Resource quantities by name.

- **Type:** `open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `{ }`

### `exporter.resources.requests.cpu`

The cpu quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"10m"`

### `exporter.resources.requests.ephemeral-storage`

The ephemeral-storage quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `exporter.resources.requests.memory`

The memory quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"32Mi"`

### `externalURL`

URL clients use to reach Harbor (EXT_ENDPOINT), when it differs from
the route Kix renders. The host must be one that route serves
(`ingress.host`, else `<instance>.<cluster.domain>`): registry
clients follow the token realm to this URL, so a host the route does
not serve breaks `docker login`. Set it only to add a port (a
port-forward) or a scheme that an external load balancer
terminates. No path: Harbor does not serve under a sub-path. Null
derives it from the route.

- **Type:** `null or string matching the pattern https?://[^/]+`
- **Default:** `null`
- **Example:** `"https://harbor.example.com:8443"`

### `htpasswd.image`

Image of the registry's init container, which writes the htpasswd line for registryPassword with the image's `htpasswd`.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    digest = "sha256:4e585da9d0125dec36d4500a9f5c5df7b2c0a01f67cb47865a91a4b05bdbec1b";
    pullPolicy = "IfNotPresent";
    repository = "docker.io/library/httpd";
    tag = "2.4.68-alpine";
  }
  ```

### `htpasswd.image.digest`

Resolved manifest digest, `sha256:` followed by 64 hex characters. What will actually run. Null means not resolved.

- **Type:** `null or string`
- **Default:** the package's digest while `tag` is the package's tag, otherwise null

### `htpasswd.image.note`

Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.

- **Type:** `null or string`
- **Default:** `null`

### `htpasswd.image.promotedBy`

Who resolved this pin, for the record. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `htpasswd.image.pullPolicy`

imagePullPolicy for containers using this image. Null leaves it to Kubernetes.

- **Type:** `null or string`
- **Default:** `"IfNotPresent"`

### `htpasswd.image.repository`

Image repository, registry host included.

- **Type:** `string`
- **Default:** `"docker.io/library/httpd"`

### `htpasswd.image.resolvedAt`

When this pin was resolved, RFC 3339. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `htpasswd.image.sourceRev`

Revision of the source the image was built from, when Kix built it. Null for upstream images.

- **Type:** `null or string`
- **Default:** `null`

### `htpasswd.image.tag`

Image tag. What was asked for.

- **Type:** `string`
- **Default:** `"2.4.68-alpine"`

### `ingress.annotations`

Annotations added to the generated Ingress or HTTPRoute (for example, external-dns annotations). Keys set here override package defaults.

- **Type:** `attribute set of string`
- **Default:** `{ }`

### `ingress.extraHosts`

Additional hostnames added to the Ingress or HTTPRoute alongside `host`. In Gateway mode, a listener must accept each hostname or evaluation fails. The instance's public URL (`self.exposure.url`) still uses `host`.

- **Type:** `list of string`
- **Default:** `[ ]`
- **Example:**

  ```nix
  [
    "www.example.com"
  ]
  ```

### `ingress.host`

Ingress hostname. Null = auto-derive from cluster.domain.

- **Type:** `null or string`
- **Default:** `null`

### `ingress.timeouts`

Gateway API HTTPRoute rule `timeouts` for this instance. When set, replaces any default `timeouts` set by the package; `null` keeps the package defaults. Ignored in Ingress mode.

- **Type:** `null or (submodule)`
- **Default:** `null`
- **Example:**

  ```nix
  {
    request = "0s";
  }
  ```

### `ingress.timeouts.backendRequest`

Maximum duration for a single request from the Gateway to a backend, as a Gateway API duration string such as `10s`.

- **Type:** `null or string`
- **Default:** `null`

### `ingress.timeouts.request`

Maximum duration for the entire client request, as a Gateway API duration string such as `30s`. Set `0s` to disable the timeout.

- **Type:** `null or string`
- **Default:** `null`

### `jobservice.env`

Extra environment variables for jobservice, over the package's
tunables (LOG_LEVEL, REGISTRY_HTTP_CLIENT_TIMEOUT in minutes, JOBSERVICE_WEBHOOK_JOB_MAX_RETRY, and JOBSERVICE_WEBHOOK_JOB_HTTP_CLIENT_TIMEOUT in seconds). A value is a string, a `fieldRef` source, or a
`secretKeyRef` source naming a Secret managed outside Kix with
`kix.untrackedRef`; null removes a tunable. Addresses and
credentials the package derives from its dependencies cannot be
set here.

- **Type:** ``attribute set of (null or string or env var source with `valueFrom`)``
- **Default:** `{ }`

### `jobservice.image`

Image of harbor-jobservice. Its tag follows core.image.tag.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    digest = "sha256:aafa49237fef5ce8be2990caf7dcd4c9ff8d921d77c129bd36e4a5c510868a7c";
    pullPolicy = "IfNotPresent";
    repository = "docker.io/goharbor/harbor-jobservice";
    tag = config.core.image.tag;
  }
  ```

### `jobservice.image.digest`

Resolved manifest digest, `sha256:` followed by 64 hex characters. What will actually run. Null means not resolved.

- **Type:** `null or string`
- **Default:** the package's digest while `tag` is the package's tag, otherwise null

### `jobservice.image.note`

Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.

- **Type:** `null or string`
- **Default:** `null`

### `jobservice.image.promotedBy`

Who resolved this pin, for the record. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `jobservice.image.pullPolicy`

imagePullPolicy for containers using this image. Null leaves it to Kubernetes.

- **Type:** `null or string`
- **Default:** `"IfNotPresent"`

### `jobservice.image.repository`

Image repository, registry host included.

- **Type:** `string`
- **Default:** `"docker.io/goharbor/harbor-jobservice"`

### `jobservice.image.resolvedAt`

When this pin was resolved, RFC 3339. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `jobservice.image.sourceRev`

Revision of the source the image was built from, when Kix built it. Null for upstream images.

- **Type:** `null or string`
- **Default:** `null`

### `jobservice.image.tag`

Image tag. What was asked for.

- **Type:** `string`
- **Default:** `config.core.image.tag`

### `jobservice.replicas`

Number of jobservice pods. Job logs live in the database, so any pod can serve any job's log.

- **Type:** `positive integer, meaning >0`
- **Default:** 1 at availability `none`, otherwise 2

### `jobservice.resources`

Container resource requests and limits. Each field keeps its default until set, and null removes a default.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    limits = {
      cpu = "2";
      memory = "1Gi";
    };
    requests = {
      cpu = "20m";
      memory = "128Mi";
    };
  }
  ```

### `jobservice.resources.claims`

Dynamic resource claims the container uses. Null leaves it unset.

- **Type:** `null or (list of (submodule))`
- **Default:** `null`

### `jobservice.resources.claims.*.name`

Name of an entry in the pod's `resourceClaims`.

- **Type:** `string`

### `jobservice.resources.claims.*.request`

Request within the claim to use. Null uses the whole claim.

- **Type:** `null or string`
- **Default:** `null`

### `jobservice.resources.limits`

Resource quantities by name.

- **Type:** `open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `{ }`

### `jobservice.resources.limits.cpu`

The cpu quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"2"`

### `jobservice.resources.limits.ephemeral-storage`

The ephemeral-storage quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `jobservice.resources.limits.memory`

The memory quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"1Gi"`

### `jobservice.resources.requests`

Resource quantities by name.

- **Type:** `open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `{ }`

### `jobservice.resources.requests.cpu`

The cpu quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"20m"`

### `jobservice.resources.requests.ephemeral-storage`

The ephemeral-storage quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `jobservice.resources.requests.memory`

The memory quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"128Mi"`

### `jobservice.settings`

Jobservice `config.yml` keys, merged over the package's own, such
as `worker_pool.workers` (10), `reaper`, and `loggers`. A null
removes a key the package sets. The package locks `protocol`,
`port`, `worker_pool.backend`, `worker_pool.redis_pool.namespace`,
`worker_pool.redis_pool.redis_url`, `job_loggers`, and `metric`;
setting one fails evaluation.

- **Type:** `attribute set of anything`
- **Default:** `{ }`
- **Example:**

  ```nix
  {
    reaper = {
      max_update_hours = 48;
    };
    worker_pool = {
      workers = 20;
    };
  }
  ```

### `metrics.enabled`

Enable metrics endpoint and monitoring resources (ServiceMonitor, PrometheusRules) when prometheus is available.

- **Type:** `boolean`
- **Default:** `true`

### `metrics.interval`

Scrape interval (e.g. "30s"). Null = use Prometheus default.

- **Type:** `null or string`
- **Default:** `null`

### `oidc.adminGroup`

Members of this group, read from `groupsClaim`, are Harbor system administrators (`oidc_admin_group`). Requires `groupsClaim`.

- **Type:** `null or non-empty string`
- **Default:** `null`
- **Example:** `"harbor-admins"`

### `oidc.groupsClaim`

The ID token claim that lists the user's groups (`oidc_groups_claim`). Harbor creates a group for each and maps project membership to it. Keycloak adds such a claim through a "Group Membership" mapper on the client.

- **Type:** `null or non-empty string`
- **Default:** `null`
- **Example:** `"groups"`

### `oidc.scopes`

OAuth scopes the application requests. OpenID Connect needs `openid`, so a list without it is refused.

- **Type:** `list of scopes without spaces or commas that includes "openid"`
- **Default:**

  ```nix
  [
    "openid"
    "profile"
    "email"
    "offline_access"
  ]
  ```

### `portal.image`

Image of harbor-portal. Its tag follows core.image.tag.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    digest = "sha256:2c05137a69a8f1cd51ce238b81f70d774396ff3a92494351857ced142d03253d";
    pullPolicy = "IfNotPresent";
    repository = "docker.io/goharbor/harbor-portal";
    tag = config.core.image.tag;
  }
  ```

### `portal.image.digest`

Resolved manifest digest, `sha256:` followed by 64 hex characters. What will actually run. Null means not resolved.

- **Type:** `null or string`
- **Default:** the package's digest while `tag` is the package's tag, otherwise null

### `portal.image.note`

Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.

- **Type:** `null or string`
- **Default:** `null`

### `portal.image.promotedBy`

Who resolved this pin, for the record. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `portal.image.pullPolicy`

imagePullPolicy for containers using this image. Null leaves it to Kubernetes.

- **Type:** `null or string`
- **Default:** `"IfNotPresent"`

### `portal.image.repository`

Image repository, registry host included.

- **Type:** `string`
- **Default:** `"docker.io/goharbor/harbor-portal"`

### `portal.image.resolvedAt`

When this pin was resolved, RFC 3339. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `portal.image.sourceRev`

Revision of the source the image was built from, when Kix built it. Null for upstream images.

- **Type:** `null or string`
- **Default:** `null`

### `portal.image.tag`

Image tag. What was asked for.

- **Type:** `string`
- **Default:** `config.core.image.tag`

### `portal.replicas`

Number of portal pods. The portal serves a static web UI.

- **Type:** `positive integer, meaning >0`
- **Default:** 1 at availability `none`, otherwise 2

### `portal.resources`

Container resource requests and limits. Each field keeps its default until set, and null removes a default.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    limits = {
      cpu = "500m";
      memory = "128Mi";
    };
    requests = {
      cpu = "10m";
      memory = "32Mi";
    };
  }
  ```

### `portal.resources.claims`

Dynamic resource claims the container uses. Null leaves it unset.

- **Type:** `null or (list of (submodule))`
- **Default:** `null`

### `portal.resources.claims.*.name`

Name of an entry in the pod's `resourceClaims`.

- **Type:** `string`

### `portal.resources.claims.*.request`

Request within the claim to use. Null uses the whole claim.

- **Type:** `null or string`
- **Default:** `null`

### `portal.resources.limits`

Resource quantities by name.

- **Type:** `open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `{ }`

### `portal.resources.limits.cpu`

The cpu quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"500m"`

### `portal.resources.limits.ephemeral-storage`

The ephemeral-storage quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `portal.resources.limits.memory`

The memory quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"128Mi"`

### `portal.resources.requests`

Resource quantities by name.

- **Type:** `open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `{ }`

### `portal.resources.requests.cpu`

The cpu quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"10m"`

### `portal.resources.requests.ephemeral-storage`

The ephemeral-storage quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `portal.resources.requests.memory`

The memory quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"32Mi"`

### `registry.image`

Image of registry-photon. Its tag follows core.image.tag.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    digest = "sha256:6f9670a13d7f0ba2f896c571543343c1fcd9a36f585e30fe0f8c4edc9a0f8aa9";
    pullPolicy = "IfNotPresent";
    repository = "docker.io/goharbor/registry-photon";
    tag = config.core.image.tag;
  }
  ```

### `registry.image.digest`

Resolved manifest digest, `sha256:` followed by 64 hex characters. What will actually run. Null means not resolved.

- **Type:** `null or string`
- **Default:** the package's digest while `tag` is the package's tag, otherwise null

### `registry.image.note`

Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.

- **Type:** `null or string`
- **Default:** `null`

### `registry.image.promotedBy`

Who resolved this pin, for the record. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `registry.image.pullPolicy`

imagePullPolicy for containers using this image. Null leaves it to Kubernetes.

- **Type:** `null or string`
- **Default:** `"IfNotPresent"`

### `registry.image.repository`

Image repository, registry host included.

- **Type:** `string`
- **Default:** `"docker.io/goharbor/registry-photon"`

### `registry.image.resolvedAt`

When this pin was resolved, RFC 3339. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `registry.image.sourceRev`

Revision of the source the image was built from, when Kix built it. Null for upstream images.

- **Type:** `null or string`
- **Default:** `null`

### `registry.image.tag`

Image tag. What was asked for.

- **Type:** `string`
- **Default:** `config.core.image.tag`

### `registry.resources`

Container resource requests and limits. Each field keeps its default until set, and null removes a default.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    limits = {
      cpu = "1";
      memory = "512Mi";
    };
    requests = {
      cpu = "20m";
      memory = "64Mi";
    };
  }
  ```

### `registry.resources.claims`

Dynamic resource claims the container uses. Null leaves it unset.

- **Type:** `null or (list of (submodule))`
- **Default:** `null`

### `registry.resources.claims.*.name`

Name of an entry in the pod's `resourceClaims`.

- **Type:** `string`

### `registry.resources.claims.*.request`

Request within the claim to use. Null uses the whole claim.

- **Type:** `null or string`
- **Default:** `null`

### `registry.resources.limits`

Resource quantities by name.

- **Type:** `open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `{ }`

### `registry.resources.limits.cpu`

The cpu quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"1"`

### `registry.resources.limits.ephemeral-storage`

The ephemeral-storage quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `registry.resources.limits.memory`

The memory quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"512Mi"`

### `registry.resources.requests`

Resource quantities by name.

- **Type:** `open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `{ }`

### `registry.resources.requests.cpu`

The cpu quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"20m"`

### `registry.resources.requests.ephemeral-storage`

The ephemeral-storage quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `registry.resources.requests.memory`

The memory quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"64Mi"`

### `registry.settings`

Distribution `config.yml` keys, merged over the package's own. A
null removes a key the package sets. `storage` accepts only
`cache`, `maintenance`, `delete`, `redirect`, and `tag`: blobs stay
on the storage claim with the filesystem driver. The package locks
`storage.filesystem`, `redis.addr`, `redis.db`,
`redis.sentinelMasterSet`, `redis.password`, `http.addr`,
`http.debug`, and `auth`; setting one fails evaluation.

- **Type:** `attribute set of anything`
- **Default:** `{ }`
- **Example:**

  ```nix
  {
    log = {
      level = "debug";
    };
    storage = {
      maintenance = {
        uploadpurging = {
          age = "72h";
        };
      };
    };
  }
  ```

### `registryctl.image`

Image of harbor-registryctl. Its tag follows core.image.tag.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    digest = "sha256:e3c64071cf72f47566f27a16d8a57c6a71ec710e72ba9190168d24103eb57925";
    pullPolicy = "IfNotPresent";
    repository = "docker.io/goharbor/harbor-registryctl";
    tag = config.core.image.tag;
  }
  ```

### `registryctl.image.digest`

Resolved manifest digest, `sha256:` followed by 64 hex characters. What will actually run. Null means not resolved.

- **Type:** `null or string`
- **Default:** the package's digest while `tag` is the package's tag, otherwise null

### `registryctl.image.note`

Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.

- **Type:** `null or string`
- **Default:** `null`

### `registryctl.image.promotedBy`

Who resolved this pin, for the record. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `registryctl.image.pullPolicy`

imagePullPolicy for containers using this image. Null leaves it to Kubernetes.

- **Type:** `null or string`
- **Default:** `"IfNotPresent"`

### `registryctl.image.repository`

Image repository, registry host included.

- **Type:** `string`
- **Default:** `"docker.io/goharbor/harbor-registryctl"`

### `registryctl.image.resolvedAt`

When this pin was resolved, RFC 3339. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `registryctl.image.sourceRev`

Revision of the source the image was built from, when Kix built it. Null for upstream images.

- **Type:** `null or string`
- **Default:** `null`

### `registryctl.image.tag`

Image tag. What was asked for.

- **Type:** `string`
- **Default:** `config.core.image.tag`

### `registryctl.resources`

Container resource requests and limits. Each field keeps its default until set, and null removes a default.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    limits = {
      cpu = "500m";
      memory = "128Mi";
    };
    requests = {
      cpu = "10m";
      memory = "32Mi";
    };
  }
  ```

### `registryctl.resources.claims`

Dynamic resource claims the container uses. Null leaves it unset.

- **Type:** `null or (list of (submodule))`
- **Default:** `null`

### `registryctl.resources.claims.*.name`

Name of an entry in the pod's `resourceClaims`.

- **Type:** `string`

### `registryctl.resources.claims.*.request`

Request within the claim to use. Null uses the whole claim.

- **Type:** `null or string`
- **Default:** `null`

### `registryctl.resources.limits`

Resource quantities by name.

- **Type:** `open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `{ }`

### `registryctl.resources.limits.cpu`

The cpu quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"500m"`

### `registryctl.resources.limits.ephemeral-storage`

The ephemeral-storage quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `registryctl.resources.limits.memory`

The memory quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"128Mi"`

### `registryctl.resources.requests`

Resource quantities by name.

- **Type:** `open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `{ }`

### `registryctl.resources.requests.cpu`

The cpu quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"10m"`

### `registryctl.resources.requests.ephemeral-storage`

The ephemeral-storage quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `registryctl.resources.requests.memory`

The memory quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"32Mi"`