vcr icon indicating copy to clipboard operation
vcr copied to clipboard

Warn users of possible sensitive data

Open sckott opened this issue 7 years ago • 4 comments

Could look for keywords like key/token etc and throw warning if found

sckott avatar Dec 02 '18 07:12 sckott

probably don't want to have this at normal run time unless really fast.

could start off with a separate function

sckott avatar Dec 09 '18 14:12 sckott

maybe use_vcr() should add a link to the docs about sensitive data. I.e. another explicit item after the item called learn_more.

secrets_protection = paste0(
    "If your package uses secrets such as API keys read this chapter to know how to handle them securely:\n   ",
    "https://books.ropensci.org/http-testing/security.html"
  )
)

maelle avatar Feb 06 '20 09:02 maelle

Yes, good idea!

sckott avatar Feb 06 '20 17:02 sckott

this is a good alternative/complement to #182

maelle avatar Nov 19 '20 11:11 maelle