reportportal / logger-java-rest-assured

Report Portal logger for REST Assured
Apache License 2.0
2 stars 0 forks source link

How to mask specific data in a JSON response #28

Closed vfalco02 closed 6 months ago

vfalco02 commented 8 months ago

Pretty novice in Java and I'm just trying to figure out how to mask sensitive data in my requests/responses so that they are not visible in ReportPortal.

Example:


{
    "username": "joetester",
    "password": "*****"
}
HardNorth commented 6 months ago

@vfalco02 You should extend or create your own content prettier and configure it as said here, where you can cut whatever data you want: https://github.com/reportportal/logger-java-rest-assured?tab=readme-ov-file#sanitize-request--response-data