Skip to content

Approve-PAMSafeException

Harbor OnboardNo sign-in neededGenerated from the codeDescribes Onboard 0.59.0

Accepts an EXISTING vault safe whose name does not match the naming standard as a governed exception: audited (who/when/why), visible in the Exceptions register on every report, and no longer flagged as rogue.

Terminal window
Approve-PAMSafeException [-SafeName] <string> -Reason <string> [-SafeType <string>] [-DryRun] [-ConfigPath <string>] [-ConfigProfile <string>] [-WhatIf] [-Confirm]

The naming standard stays the rule; this is the governed escape hatch for legitimate legacy estates. The safe must exist in the vault (a session is required). What happens:

  • The register gains (or updates) an entry for the safe carrying a nameException block { reason, actor, at, source:‘accepted’ }.
  • A new entry adopts the UID from the safe Description (‘UID:xxNN’) when present, else allocates the next free one; status ‘imported’; segment fields stay null (the name has no segments to parse).
  • With -SafeType the declared type joins the entry and RBAC DRIFT AUDITING TURNS ON for this safe (group names derive from the {SafeName} pattern token, so any raw name works). Without it the safe is drift-exempt: tracked + reported, never audited.

Compliance scans stop flagging the safe as rogue from the next run (the old rogue finding resolves in the G1 diff – acceptance never fires a new-drift alert). Reverse with Revoke-PAMSafeException.

Terminal window
Approve-PAMSafeException -SafeName 'LegacyFinanceVault' `
-Reason 'Pre-Harbor estate; rename breaks batch jobs (CHG0041)'
Terminal window
Approve-PAMSafeException -SafeName 'Legacy Finance Vault' `
-Reason 'Owned by Finance; migration parked' -SafeType shared-unmanaged

Not described in the module help.

Type Required Position Pipeline input
String No Named No

Not described in the module help.

Type Required Position Pipeline input
String No Named No

Asks for confirmation before the command changes anything.

Type Required Position Pipeline input
SwitchParameter No Named No

Aliases: cf.

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
String Yes Named No

Not described in the module help.

Type Required Position Pipeline input
String Yes 0 No

Optional declared safe type (must exist in the permission standard; personal templates refused). Declaring a type is what enables real drift auditing on the exception safe.

Type Required Position Pipeline input
String No Named No

Shows what the command would do, without doing it.

Type Required Position Pipeline input
SwitchParameter No Named No

Aliases: wi.

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.