This Python script takes a Newman report file as input and generates a new file with all sensitive information redacted. This is useful for security purposes as it prevents the exposure of pre-production and production credentials and other PII (personally identifiable information) to unauthorized personnel.
Python 3.x
Newman report file in HTML format
To use this script, follow these steps:
- Clone this repository to your local machine using git clone https://github.com/4nk1t/newman/
- Navigate to the repository folder using cd newman-report-redaction
- Install the required packages using pip install -r requirements.txt
- Run the script using python3 script.py -i inputfile.html -o outputfile.html
- Replace inputfile.html with the name of your Newman report file, and outputfile.html with the desired name of your redacted report file.
This script uses an array called parameters to specify which sensitive parameters should be redacted. You can modify this array by editing the script.py file and adding or removing parameters as needed.
If you find any issues with this script or would like to suggest improvements, please feel free to open a new issue or submit a pull request.