Learn how to use the CLI to sanitize your HAR files in this guide.
When you're troubleshooting issues you encounter using Identity Security Cloud, some of the most helpful data can be contained in a HAR file collected from your browser's API calls made while replicating the issue.
The problem lies in the amount of information, specifically sensitive information that the HAR file contains, due to the nature of the data it's capturing. The CLI is very useful for this. You can use the CLI to sanitize the HAR file, which removes sensitive information but still still leaves the file in a useful state for troubleshooting the issue.
The existing support guide for collecting and sanitizing the HAR file can be found here.
The sanitize command sanitizes a HAR file of sensitive data. It only removes access tokens matching the Identity Security Cloud format and origin urls similar to the examples below:
To use the CLI to sanitize HAR files, you can run this command:
sail sanitize ./path/to/har/file.har
You can also sanitize multiple files at once:
sail sanitize ./path/to/har/file1.har ./path/to/har/file2.har ./path/to/har/file3.har