Skip to content

← All questions

har record printed no scrub line and the Cookie header is still sitting in the file

Asked 96 views0 answers

We only have one project registered, so I have got into the habit of leaving -p off and letting it pick.

bash
bun run sdods har record -e staging -t @har:cart

Recorded fine, scenario replays. But there was no line like this at the end, which I have seen on every other recording I have made:

text
scrubbed 214 credential value(s) from 3 HAR file(s)

And sure enough the Cookie header in har/staging/cart.har is the real value, not ***. Ran the identical command again with -p demo-shop in front of it and it scrubbed on the spot.

So the scrub appears to be skipped when the project is resolved rather than passed. Is that deliberate, or should I be filing it? Asking because "credentials are only stripped when you happen to type a flag" is a slightly alarming shape for a safety net.

asked by Devon Marsh183 ·

No answers yet

Nobody has answered this one. If you have hit the same thing and worked it out, that is worth writing down.

Ask a related question

Have the same question?

Ask it with the command you ran and the output you got, and it will be answered here.

Ask a question

Related