Approve-PAMSafeException
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.
Syntax
Section titled “Syntax”Approve-PAMSafeException [-SafeName] <string> -Reason <string> [-SafeType <string>] [-DryRun] [-ConfigPath <string>] [-ConfigProfile <string>] [-WhatIf] [-Confirm]Description
Section titled “Description”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.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Approve-PAMSafeException -SafeName 'LegacyFinanceVault' ` -Reason 'Pre-Harbor estate; rename breaks batch jobs (CHG0041)'Example 2
Section titled “Example 2”Approve-PAMSafeException -SafeName 'Legacy Finance Vault' ` -Reason 'Owned by Finance; migration parked' -SafeType shared-unmanagedParameters
Section titled “Parameters”-ConfigPath
Section titled “-ConfigPath”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | Named | No |
-ConfigProfile
Section titled “-ConfigProfile”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | Named | No |
-Confirm
Section titled “-Confirm”Asks for confirmation before the command changes anything.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
SwitchParameter |
No | Named | No |
Aliases: cf.
-DryRun
Section titled “-DryRun”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
SwitchParameter |
No | Named | No |
-Reason
Section titled “-Reason”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
Yes | Named | No |
-SafeName
Section titled “-SafeName”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
Yes | 0 | No |
-SafeType
Section titled “-SafeType”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 |
-WhatIf
Section titled “-WhatIf”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).
See also
Section titled “See also”- All Harbor Onboard cmdlets
- In PowerShell:
Get-Help Approve-PAMSafeException -Full
Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.
