demo-magic icon indicating copy to clipboard operation
demo-magic copied to clipboard

Hide secrets

Open aodj-kara opened this issue 8 months ago • 1 comments

Hello, and thank you for demo-magic. I've been using it to showcase demos of some APi interactions that I can script with curl. Is there anyway you know of that I could employ to avoid displaying secrets like passwords or tokens?

As a limited example I'm doing things like this:

TOKEN="Bearer 908y712ugehjkljds"

comment "# Get the frobulator"
pe "curl --silent 'https://127.0.0.1:5000/frobulator' -H 'Authorization: $TOKEN' | jq"

... which results in a very long output as the command interpolates the full bearer token of 1500+ characters

aodj-kara avatar Jun 07 '24 10:06 aodj-kara