Skip to content

Hardening checklist

Harbor suiteWindows administratorDescribes Onboard 0.58.0 / Health 0.21.0

Harbor’s defaults are safe: sign-in is mandatory, the consoles listen only on the local machine, every state-changing request needs a CSRF token, and secrets are never written in clear. This checklist covers what is left to you. Work through it before production use, and again after each upgrade.

Do Threat it addresses
Verify every release (hash and signatures) before you run it, and trust only signed releases you verified. Running a tampered copy with access to your vault.
Install the code where only administrators can change it: %ProgramFiles% (all-users install or the Windows service). A standard user planting code that later runs elevated (the HTTPS setup) or as SYSTEM (the service).
Do not loosen the permissions of %ProgramData%\Harbor. Harbor locks it to SYSTEM, Administrators and the account that created it, and refuses to start when anyone else owns or can write it. Reading stored secrets or sessions, or swapping the configuration.
Keep the log and register folders writable only by the accounts that run Harbor. Deleting or rewriting the audit trail.
Do Threat it addresses
Keep the consoles on the local machine. Use -AllowRemote only on a dedicated server, with your own trusted certificate and the Windows Firewall limited to the clients that need it. Exposing the console to the network.
Set up HTTPS (Initialize-HarborTls -TrustRoot), on both ports. Session cookies and vault answers on a plaintext connection.
Do not leave a console on the http fallback on a server. Same.
Do Threat it addresses
Turn on single sign-on, and use your Identity policies (MFA) for it. Shared local passwords.
List operators and admins explicitly in the role map; leave everyone else a viewer. Keep allowedUsers short if only a few people should get in at all. Too many people able to change the vault.
Keep the emergency account password long, random and in your emergency-access process; test it, then rotate it. Being locked out when single sign-on breaks, or a weak recovery account.
Send security events to a webhook someone watches. An emergency sign-in nobody notices.
Keep the identity re-check on: leave destructiveReauthMinutes at its default of 15, never 0. A session left open on an unattended screen used to delete safes.
Never point a demo profile at a real tenant, and never serve a demo profile on a shared machine. Restart the console after changing a demo profile into a real one. The demo posture signs in every local caller as admin.
Do Threat it addresses
Give the service account the least rights your use needs. A leaked secret opening more of the vault than necessary.
Prefer a SecretManagement vault for its secret; on a SYSTEM service, never a DPAPI blob from your own account and never a machine-wide environment variable. The secret readable by other users, or a service that silently cannot connect.
Use connect: manual if nothing scheduled needs the vault. A standing vault session nobody uses.
After moving a tenant, check the declared secret source. Sending an old secret to a new host.
Do Threat it addresses
Verify the audit log regularly (Activity, Verify integrity, or Test-PAMAuditLog), and ship it to your SIEM (Export-HarborSiemEvents). Undetected changes to the record, or losing the log with the machine.
Back up %ProgramData%\Harbor\environment.local.json, your Config\*.json, the registers and the logs. Losing configuration and evidence.
Review the configuration change history (Standards, Change history) after standard changes. Unreviewed changes to the naming standard, permission map or policy rules.
Leave the AI assistant off unless you have decided it is acceptable: when enabled on a profile, it sends safe and member names and the structure of your standard to the Anthropic API (never passwords or secrets). Data leaving your network without a decision.
Read the known limitations and apply their workarounds.
Terminal window
Test-HarborSetup -Connect # configuration, secret source, paths, vault, groups, Identity rights
Get-HarborTlsStatus -Port 8787 # HTTPS bound and usable
Get-HarborTlsStatus -Port 8788
Test-PAMAuditLog # today's audit chain intact

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