secret icon indicating copy to clipboard operation
secret copied to clipboard

Non-interactive functionality?

Open egoipse opened this issue 5 years ago • 3 comments

Is it possible to decrypt the secret in non-interactive sessions (i.e., Rscript SomeFile.R from UNIX-based OS terminal)?

The get_secret() function requieres the passphrase for privatekey. So, when running the Rscript from CMD, it stops with the error Access denied to secret ‘somesecret’

egoipse avatar Aug 23 '20 08:08 egoipse

I think it should already work for private keys without a password.

For private keys with passwords, we would need to pass the password down to openssl:::read_key. Would you like to support a PR for this?

gaborcsardi avatar Aug 23 '20 09:08 gaborcsardi

I'd like to support, but my coding capacity is rather poor. Anyway, I'll do the research and if I find a solution, I'll pull it.

egoipse avatar Aug 23 '20 10:08 egoipse

Thanks! No pressure, and no rush.

gaborcsardi avatar Aug 23 '20 10:08 gaborcsardi