Skip to content

Start-HarborWeb

Harbor OnboardNo sign-in neededGenerated from the codeDescribes Onboard 0.59.0

Launches the local Harbor Onboard web UI – a zero-dependency HttpListener server (bound to 127.0.0.1 only) over the module’s functions.

Terminal window
Start-HarborWeb [[-Port] <int>] [[-AllowedHostname] <string[]>] [[-ConfigProfile] <string>] [-NoBrowser] [-Https] [-Http] [-AllowRemote]

Serves the SPA from WebUI/wwwroot and dispatches /api/* to the module via Invoke-HarborApiRoute. No external modules. The OAuth secret is supplied in the browser (or via HARBOR_OAUTH_SECRET) and held only in module memory. Blocks until Ctrl-C, the window closes, or POST /api/_stop. The explicit 127.0.0.1 prefix normally needs no admin rights.

Phase 2: the edge itself – the Host/Origin guard, the CSRF token, the operator gate, role enforcement, cookie flags, the static sandbox, the CSP and the authenticated /api/_stop – lives ONCE in the vendored platform (Platform/Web/Start-HarborModuleWeb.ps1, canonical in harbor-platform). What stays here is only what genuinely differs between Harbor consoles; WHICH routes exist – and which are long-running, admin-only or destructive – is declared once in Private/Web/HarborRoutes.ps1.

Terminal window
Start-HarborWeb
Terminal window
Start-HarborWeb -Port 9000 -NoBrowser

Not described in the module help.

Type Required Position Pipeline input
String[] No 1 No

Default: @().

Opt-in bind beyond loopback (‘+’ prefix; needs a urlacl – see Install-HarborService). Default stays 127.0.0.1.

Type Required Position Pipeline input
SwitchParameter No Named No

Not described in the module help.

Type Required Position Pipeline input
String No 2 No

Not described in the module help.

Type Required Position Pipeline input
SwitchParameter No Named No

HTTPS is the default whenever a certificate is bound to the port (Initialize-HarborTls, elevated, once per machine – Install-HarborService does it too); without one the console falls back to plain http on loopback with a warning. -Https requires TLS (refuses to start without it); -Http serves plain http on purpose.

Type Required Position Pipeline input
SwitchParameter No Named No

Not described in the module help.

Type Required Position Pipeline input
SwitchParameter No Named No

Not described in the module help.

Type Required Position Pipeline input
Int32 No 0 No

Default: 8787.

This command also accepts the PowerShell common parameters (-Verbose, -ErrorAction, and so on).

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