Skip to content

Sign-in overview

Harbor suiteRole: adminDescribes Onboard 0.58.0 / Health 0.21.0

Every Harbor console requires a sign-in. This page explains how that works as a whole; the pages after it cover each part.

A Harbor console holds a connection to your privileged-access vault. Without a sign-in, anyone who can reach the console (any other user or program on a shared jump host, for example) could create or delete safes, change members, or read the estate as the console’s vault identity. Before release 0.58 / 0.21 a console with no login configured was open in exactly this way. Now it is not.

A console is always in exactly one sign-in posture, worked out from the profile it serves. It re-reads the posture whenever the configuration changes, in this process or on disk, so a new emergency account or single sign-on takes effect within a couple of seconds, without a restart.

Posture When Who gets in
demo The profile is a demo profile (authMethod: demo) with no sign-in configured. Every caller on the local machine is the implicit demo (admin) operator. Callers from elsewhere are refused. A demo profile never runs single sign-on and never reaches a real tenant.
first run A real profile with no emergency account and no single sign-on. Nobody, until the emergency account exists. Only the status call and the setup screen answer. See First-run setup.
gated An emergency account, single sign-on, or both. Signed-in people only.

There is no setting that turns sign-in off for a real profile: demo mode is the only ungated mode.

Method Role Use
CyberArk single sign-on (OpenID Connect) From the role map; anyone not listed is a viewer Everyday use. Operators work under their own CyberArk identity. See SSO (OIDC).
The emergency (break-glass) account Always admin When single sign-on is not available, and for the first setup. See Break-glass account.

When single sign-on is configured, the sign-in page leads with Sign in with CyberArk, and the emergency account sits behind Emergency sign-in. Without single sign-on, the emergency account’s Sign in is the front door.

Separate from these, a console has a service account: its own vault identity, used by scheduled work and by anyone who has no vault session of their own. Signing in never connects it. See Service account & secret sources.

Role Can
viewer Read everything, and run checks that change nothing, such as validating a safe name.
operator The working surface: create safes, onboard accounts, run repairs and scans, decommission safes.
admin Everything, including configuration writes: tenant, service account, single sign-on, standards, connecting the console’s vault session.

Roles are enforced by the console on every request, before anything runs. The console also hides what your role cannot use (settings show “Settings need the admin role.”), but that is convenience, not the control. The exact list per action is the roles and permissions matrix.

Everything the console lets you do still happens in CyberArk as an identity, and CyberArk’s own permissions apply on top. A CyberArk 403 means that identity lacks the right: CyberArk’s access control working as intended.

Property Behaviour
Cookie __Host-harbor_sid on https (Secure, HttpOnly, SameSite=Lax, Path=/); harbor_sid on the http fallback.
Idle time-out 20 minutes by default (idleTimeoutMinutes on the emergency account and on single sign-on).
Absolute lifetime 12 hours, then sign in again.
Shared between consoles Yes, when both consoles run as the same Windows account.
Sign out Account menu, Sign out.

Re-checking identity before destructive actions

Section titled “Re-checking identity before destructive actions”

Decommissioning a safe, a repair that removes unexpected members, changing the service account and changing single sign-on are destructive, and so is creating the emergency account from a single sign-on session. They need a sign-in, or a fresh identity check, within the last 15 minutes (the profile setting destructiveReauthMinutes; 0 turns the check off, which is not recommended).

When the check is due, the console shows Confirm your identity (“This destructive action needs a recent sign-in.”):

  • the emergency account confirms with its username and password;
  • a single sign-on user selects Sign in again with CyberArk.

Then run the action again. Harbor does not repeat it for you.

The threat this addresses: a session left open on an unattended screen cannot be used to destroy anything after a quarter of an hour.

Before a request reaches any action, the console checks, in order: the host and origin of the request (against cross-site requests and DNS rebinding), the CSRF token on every state-changing request, the sign-in, the role, the profile the console serves, and the identity re-check for destructive actions. These checks live in one place shared by both consoles.

  • Turning single sign-on off does not end the SSO sessions the console already issued; they last until they go idle or reach 12 hours. Restart the console to cut them off at once.
  • See Known limitations for the rest.

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