Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.

Update Invoke-TppRestMethod.ps1 #121

Closed
wants to merge 1 commit into from

Conversation

bwright86
Copy link

Prevent password leaks from REST calls.

It detects Password or Token keys in the Body hash, and creates a redactedParams hash.
It replaces the value for the Verbose output with "[Redacted]", while sending the actual value to the REST call.

This would resolve #120

Prevent password leaks from REST calls.

It detects `Password` or `Token` keys in the Body hash, and creates a `redactedparams` hash.
It replaces the value for the Verbose output with "[Redacted]".
@bwright86
Copy link
Author

If there is interest in merging this, it would resolve sensitive data from being displayed on-screen, or be captured in transcript logs.

@gdbarron gdbarron closed this Dec 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Verbose param leaks passwords from basic auth
2 participants