praetorian-inc / chariot-ui

Chariot Offensive Security Platform
https://preview.chariot.praetorian.com
MIT License
15 stars 6 forks source link

convert json to yaml #95

Closed storbeck closed 1 week ago

storbeck commented 1 week ago

Summary

The nosey parker data isn't always returned in the same format. I'm also structuring this data myself, which assumes I know all the data and what is most important, which is not true. I've restructured the logic for displaying secret-scanner results so that it just converts it from json into yaml and then displays some nice headers for easier scrolling.

This prevents issues with data not showing even if it is available in the response.

Type

bug fix

Context

This was caused by blob_path not being visible. This property is not always available, it's only sometimes available. I haven't looked into the logic as to why or why not some things may be available. Instead now we just default to show everything by automatically converting formats from json (not as readable) to yaml (more readable).