Skip to content

environment.json and profiles

Harbor suiteRole: adminDescribes Onboard 0.58.0 / Health 0.21.0

environment.json holds profiles: one per tenant (environment) of your organisation, for example prod and test. Your real values go in the shared override, %ProgramData%\Harbor\environment.local.json; see Configuration files for how the layers combine.

A JSON Schema for these files is planned; until then this page is the reference.

{
"defaultProfile": "prod",
"profiles": {
"prod": {
"pvwaUrl": "https://<tenant>.privilegecloud.cyberark.cloud",
"identityUrl": "https://<tenant id>.id.cyberark.cloud",
"serviceAccount": {
"kind": "oauth",
"clientId": "[email protected]",
"secretSource": "secretManagement",
"connect": "startup"
},
"secretManagement": { "vault": "<vault name>", "secret": "HarborOAuth-prod" },
"defaultManagingCpm": "PasswordManager",
"logPath": ".\\Logs",
"registerPath": ".\\Register\\safe-register.json",
"appLogin": { "username": "<account name>", "passwordHash": "<written by Set-HarborWebLogin>" },
"appAuth": { "enabled": true, "oidcClientId": "<client id>", "issuer": "https://<tenant id>.id.cyberark.cloud/<app>" },
"notifications": { "webhookUrl": "<incoming webhook URL>" }
},
"demo": { "authMethod": "demo" }
}
}
Top-level field Meaning
defaultProfile The profile a plain launch serves. -ConfigProfile <name> on the launchers and cmdlets picks another. A console keeps the profile it started with until it is restarted.
profiles The profiles, by name. Names are simple tokens (letters, digits, -, _).
thresholds Harbor Health only: check thresholds for every profile (see below).
Field Meaning
pvwaUrl The Privilege Cloud URL, https://<tenant>.privilegecloud.cyberark.cloud.
identityUrl The CyberArk Identity URL, https://<tenant id>.id.cyberark.cloud.
tenantName, tenantId Written by the setup wizard and Tenant & service account, which derive the two URLs from them. Each must be one DNS label, and the URLs must be CyberArk cloud hosts.
authMethod demo makes a demo profile (the built-in sample vault, no tenant). Older profiles also used it for the vault logon kind; that now lives in serviceAccount.kind.

Saving the tenant with a different host removes the stored service secret, resets the service account’s secret source to prompt and ends the service session, so an old secret is never sent to a new host.

Field Meaning
serviceAccount The console’s own vault identity: kind, clientId or username, secretSource, envVar, connect. See Service account & secret sources.
oauthClientId The OAuth client id; the default for serviceAccount.clientId.
username The vault user; the default for serviceAccount.username.
oauthClientSecretDpapi, logonPasswordDpapi A secret stored with DPAPI for one Windows account (secretSource: dpapi). Written by Harbor; never edit by hand.
secretManagement { "vault": "<vault>", "secret": "<name>" } for secretSource: secretManagement.
Field Meaning
appLogin The emergency (break-glass) account: username, passwordHash (salted PBKDF2), passwordChangedAt, idleTimeoutMinutes (default 20). Written by Set-HarborWebLogin and the first-run screen; never edit the hash. role and allowBypass are ignored.
appAuth CyberArk single sign-on: enabled, oidcClientId, issuer (or discoveryUrl), scope (default openid profile email), allowedUsers, roles (admin, operator, viewer lists), idleTimeoutMinutes (default 20). See SSO (OIDC).
destructiveReauthMinutes How recent a sign-in or identity check must be for a destructive action. Default 15; 0 turns the check off (not recommended).
Field Meaning
https false serves plain http on purpose (loopback only, no warning). Absent: https when a certificate is bound, else the http fallback. See HTTPS setup.
webPool Request handling: { "size": 4, "warm": 2, "jobs": 2, "queue": 16, "jobQueue": 8, "requestTimeoutSeconds": 300, "jobTimeoutMinutes": 30, "drainSeconds": 10, "bodyTimeoutSeconds": 10, "abandonSeconds": 30, "perCaller": 8, "perAnonymous": 2 }. Values are clamped to safe ranges. false handles one request at a time.
branding Optional relabelling of the console header: productName, tagline, accent (a hex colour; you are responsible for its contrast).
notifications Teams or Slack webhook: webhookUrl, events. See Webhooks / notifications.
logPath The folder for the daily logs and the audit log; Harbor Health also keeps its scan history there. Relative paths are relative to the module folder.
Field Meaning
registerPath The safe register file. Relative to the module folder unless absolute.
accountRegisterPath The account register file (default account-register.json beside the safe register).
defaultManagingCpm The managing CPM for new managed safes, unless the request names one. Wins over safe-defaults.json.
cpms The CPMs you use: [{ "name": "PasswordManager", "location": "AZR" }]. The location becomes part of personal safe names. Maintained on Managing CPMs & Doctor or with Set-HarborCpmList.
registerSync { "maxAgeHours": 24 }: creating a safe warns when the register was last synchronised with the vault longer ago.
compliance snapshotKeep (dated compliance snapshots to keep, default 60, at least 5) and autoRemediate { "enabled", "maxSafesPerRun" (1-50, default 5), "dryRun" }: after a scheduled compliance scan, repair standing drift by adding what is missing, never by removing members.
assistant The optional AI assistant, written by Set-HarborAssistant. Off unless present and enabled. Its API key is never stored here.

Thresholds come from Harbor’s defaults, then a top-level thresholds block, then the profile’s own thresholds block (the profile wins, key by key). The Thresholds & tuning page writes the profile’s block.

Threshold Default Used by
cpmStaleDays 2 A CPM whose last logon is older is stale.
rotationMaxDays 90 A rotation interval above this is overdue policy.
managedRatioTarget 0.9 Target share of sampled accounts under CPM management.
failureBacklogMax 0.05 Tolerated share of accounts in CPM failure.
accountSampleLimit 200 How many accounts a scan samples.
monitorScanMinutes 30 Background monitoring scans when the last scan is older.
fleetRefreshSeconds 60 Background fleet refresh interval; 0 turns it off.
bandGreen, bandAmber 90, 70 Score bands: healthy, attention, at risk.

disabledChecks (a list of check ids, set on Checks & rules) skips those checks in every scan and removes them from the score.

Field Since
allowBypass (on appLogin or appAuth) Onboard 0.58 / Health 0.21: ignored with a warning. Remove it.
appLogin.role Onboard 0.58 / Health 0.21: the emergency account is always admin.

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