Skip to content

Upgrading

Harbor suiteWindows administratorDescribes Onboard 0.58.0 / Health 0.21.0

Harbor Onboard and Harbor Health are released together and must be upgraded together: they share the platform code, the configuration and the sign-in. This page lists what changes for you in each release line, newest first. The release notes have every detail.

  1. Read the section for every release line between yours and the new one.
  2. Download and verify both new releases.
  3. Back up the configuration and data: %ProgramData%\Harbor\environment.local.json, the Config\*.json files you changed, the register files and their .sync.json files, and the Logs folder. See Troubleshooting.
  4. Stop the consoles: gear menu, Stop server. For a service: Stop-ScheduledTask -TaskName 'Harbor Onboard Web'.
  5. Install the new release the way you installed the old one:
    • Per-user or all-users: extract the new release over the old folder (or into a new one), then run Install-Harbor.ps1 and Install-HarborHealth.ps1 again with the same switches. -InstallModule adds a new version subfolder.
    • Windows service: extract the new release, then from an elevated PowerShell in that folder: Import-Module .\HarborOnboard\HarborOnboard.psd1; Install-HarborService. It redeploys the code and is safe to re-run.
  6. Start the consoles and check Setup Doctor (or Test-HarborSetup).

Onboard 0.58 / Health 0.21 BREAKING

Section titled “Onboard 0.58 / Health 0.21 ”

This release makes sign-in mandatory, makes HTTPS the default, and cuts the ways Harbor authenticates down to four: CyberArk single sign-on, the emergency (break-glass) account, demo mode, and an explicitly declared service account.

If you … What changes What to do
have no sign-in configured (no emergency account, no single sign-on) There is no unauthenticated console any more. The first start is a first run: the console prints a one-time setup code (and the launcher opens the browser with it), and you create the emergency account. Nothing else answers until then. Follow First-run setup, or run Set-HarborWebLogin -Username <you> on the machine. Service installs: re-run Install-HarborService elevated; it asks for the account before it re-registers the task.
use the consoles on http (everyone) Both consoles serve https://localhost:8787 and https://localhost:8788 as soon as a certificate is bound. Old http:// bookmarks stop working then. Without a certificate the consoles still start on http, with a warning strip. Run the HTTPS setup once per machine (elevated): Initialize-HarborTls -TrustRoot, or Install-Harbor.ps1 -SetupTls from an admin-only install.
use CyberArk single sign-on The redirect URIs change to https. Until they are registered, CyberArk sign-in fails (the emergency account still works). Before switching to https, add https://localhost:8787/auth/callback and https://localhost:8788/auth/callback to the CyberArk Identity app. Keep the http ones until every console has moved.
have SSO users who are not in the role map They are now viewers (they used to be operators). They can read but not create safes, onboard accounts or run repairs. List them as operators (or admins): the Operators field of the SSO setup dialog, or Set-HarborSsoConfig -OperatorUsers. See SSO roles.
use the testing bypass (allowBypass) Gone. The flag is ignored with a warning, POST /api/auth/bypass no longer exists, and an appLogin block without a credential is a configuration error. Remove allowBypass from your profiles. Demo profiles need nothing: every caller of a demo console is the demo operator.
gave the local login a narrower role (appLogin.role) The emergency account is always admin. appLogin.role is ignored; Set-HarborWebLogin -Role and -AllowBypass warn and do nothing. Passwords need 12+ characters. Use single sign-on roles for narrower access.
rely on the console connecting to the vault by itself The service account is now explicit: a serviceAccount block declares its kind, the one place its secret comes from, and whether it connects at start. A sign-in never connects it any more, and a secret typed in the Connect form is no longer remembered. Check the migrated declaration under Tenant & service account (below).
run a SYSTEM service or scheduled scans with HARBOR_OAUTH_SECRET set while a DPAPI blob also exists The migration picks the stored blob (dpapi), which SYSTEM cannot decrypt, so that host does not connect. Declare the variable explicitly from the account that runs Harbor (see below). Better: move to SecretManagement.
use Harbor Health inside Harbor Home Embedded, Harbor Health never signs anyone in itself; it points to Sign in at Harbor Home. Its automatic scans need a service account with connect: startup (or one an admin connects). Nothing, if Harbor Home has a service account that connects at startup.

Not affected: demo use (still one click), the registers, the configuration files, and the CLI cmdlets apart from the service-account secret rules.

An older profile has no serviceAccount block. Harbor reads it as the equivalent block, and the web console writes that block into the profile at its first start (logged). The secret source is chosen in this order, durable sources first:

  1. the profile’s secretManagement block (OAuth accounts);
  2. a stored DPAPI blob (oauthClientSecretDpapi / logonPasswordDpapi);
  3. the environment variable (HARBOR_OAUTH_SECRET / HARBOR_LOGON_PASSWORD), only when nothing durable exists;
  4. otherwise prompt, connecting manually.

Sources 1 to 3 are written down with connect: startup. A prompt account is worked out again at each start and never written. A vault-user profile without a username is still an account: type the name in the Connect form, as before.

To declare an environment variable explicitly, from the account that runs Harbor:

Terminal window
Set-HarborServiceAccount -Kind oauth -ClientId <client id> -SecretSource env -EnvVar HARBOR_OAUTH_SECRET -Connect startup
# a vault user:
Set-HarborServiceAccount -Kind cyberark -Username <name> -SecretSource env -EnvVar HARBOR_LOGON_PASSWORD -Connect startup

The variable must belong to that account, never to the machine: every local user can read a machine-wide variable. Scheduled scans that relied on the variable need the same explicit -SecretSource env. See Service account & secret sources.

  1. Before the upgrade: register the https redirect URIs in the CyberArk Identity app, list your operators and admins in the role map, and decide where a SYSTEM host’s secret comes from.
  2. Install the new releases (above).
  3. Set up HTTPS once, elevated: Initialize-HarborTls -TrustRoot.
  4. Start the consoles. If no sign-in existed, complete the first run.
  5. As an admin, open Tenant & service account and check the Service account card: kind, client id or user, where the secret comes from, and when it connects.
  6. Sign in once with single sign-on as an operator, and preview a safe to confirm the role.

See Known limitations for what this release does not cover yet.

Requests are now handled concurrently on a bounded pool. Nothing to do.

  • Every security check still runs first; handlers then run on a request pool (4 runspaces by default) and long scans on a separate job pool (2).
  • New answers: 503 with Retry-After: 2 when the pool or your share of it is full, and 504 for a read that passes its time limit (“it may still complete”). A write is never stopped part-way.
  • The pool is tuned with the profile setting "webPool"; "webPool": false restores the single-threaded loop.
  • An operator who signs in with single sign-on, and whose token PVWA accepts, works under their own vault session.
  • Connect is admin-only when a sign-in is configured: it sets the console’s service session, which everyone without their own session uses.
  • When an operator works on the service session, audit records read <operator> (vault: <service identity>).
  • Service installs: the code moved from %ProgramData%\Harbor to %ProgramFiles%\Harbor. Re-run Install-HarborService; it moves the old copy out and keeps your logs, registers and local configuration.
  • The shared store %ProgramData%\Harbor is locked down to SYSTEM, Administrators and the account that created it, and the console refuses to start if anyone else owns or can write it.
  • -AllowRemote needs HTTPS and a sign-in.
  • Local sign-in hashes move to PBKDF2-SHA256 with 600,000 iterations, upgraded at the next sign-in.

Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.