https://github.com/matt-ball/sanity-check-collections
Check your Postman collections aren't exposing sensitive values in plain text
https://github.com/matt-ball/sanity-check-collections
Last synced: 29 days ago
JSON representation
Check your Postman collections aren't exposing sensitive values in plain text
- Host: GitHub
- URL: https://github.com/matt-ball/sanity-check-collections
- Owner: matt-ball
- License: mit
- Created: 2019-01-18T21:49:42.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-09-27T23:24:29.000Z (over 2 years ago)
- Last Synced: 2025-04-08T17:21:21.622Z (about 2 months ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sanity Check Collections
Check that your Postman collections are using variables for sensitive auth fields.
## Usage
Clone this repo.
`node index.js -k POSTMAN_API_KEY`
Optionally, pass `--fix` to have the scanner replace plain text values with an empty string.
`node index.js -k POSTMAN_API_KEY --fix`
## Output
The scanner will output `No issues found!` if all auth values are using variables.
Where plain text is found, the scanner will list collection IDs, names and a link to the collection in table format.
When `--fix` is passed, the same table will be output, but these values will also be replaced inside collections. Running the scanner again should render no further issues.