Repository navigation
Get‑ShpRedactionPolicy
Returns the custom secret-redaction rules in force for this session.
Get-ShpRedactionPolicy [<CommonParameters>]
Reads the additional rule set applied by Set-ShpRedactionPolicy. Returns nothing when no custom rules have been added - that is NOT the same as "no redaction is happening": the module's built-in patterns (GitHub tokens, AWS access key ids, PEM private-key blocks, JWTs, basic-auth URL credentials, and connection-string password fields) are always active regardless of this policy, and are turned off only by Invoke-Shp -DisableRedaction.
Use it to audit what EXTRA patterns an unattended run was given. See an Invoke-Shp result's Redactions member for what actually matched on a given call (pattern name and count only - never the matched value).
SecretEnvironmentVariable contains only caller-selected variable names. Their values are resolved at egress and are never returned in this policy.
Get-ShpRedactionPolicy
Returns the current custom rules, or nothing if none have been added.
(Get-ShpRedactionPolicy).Rule | Format-Table Name, Pattern
Lists the custom rules in force.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
- Clear-ShpChat
- Clear-ShpContext
- Clear-ShpRedactionPolicy
- Clear-ShpToolPolicy
- Clear-ShpUsage
- Compress-ShpChat
- ConvertTo-ShpAnnotation
- ConvertTo-ShpOtelTrace
- ConvertTo-ShpTokenCount
- Get-ShpChat
- Get-ShpChatCheckpoint
- Get-ShpContext
- Get-ShpContextReport
- Get-ShpCosineSimilarity
- Get-ShpCostEstimate
- Get-ShpDefault
- Get-ShpMcpServer
- Get-ShpModel
- Get-ShpModelName
- Get-ShpRedactionPolicy
- Get-ShpTool
- Get-ShpToolPolicy
- Get-ShpUsage
- Initialize-Shp
- Invoke-Shp
- Invoke-ShpBatch
- Invoke-ShpEval
- Invoke-ShpSubagent
- Register-ShpMcpServer
- Register-ShpTool
- Request-ShpEmbedding
- Resolve-ShpError
- Restore-ShpChat
- Save-ShpChat
- Select-ShpModel
- Set-ShpContext
- Set-ShpRedactionPolicy
- Set-ShpToolPolicy
- Start-ShpChat
- Test-ShpCiReadiness
- Unregister-ShpMcpServer
- Unregister-ShpTool