Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide secrets #29

Open
aodj-kara opened this issue Jun 7, 2024 · 1 comment
Open

Hide secrets #29

aodj-kara opened this issue Jun 7, 2024 · 1 comment

Comments

@aodj-kara
Copy link

aodj-kara commented Jun 7, 2024

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

@paxtonhare
Copy link
Owner

paxtonhare commented Jun 7, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants