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

Secrets are deleted when unchecking 'Remember with keyring' in rstudioapi::askForSecret() #109

Closed
nwstephens opened this issue May 14, 2021 · 3 comments
Milestone

Comments

@nwstephens
Copy link

Cross posting this to rstudio/rstudioapi#226, because it's hard to tell if the issue is with the rstudioapi package or the keyring package.

@nwstephens
Copy link
Author

This issue occurs with the current rstudioapi and keyring packages on CRAN. When a user unchecks the box Remember with keyring it also deletes the secret from the keyring. This is unexpected, especially now that askForPassword calls askForSecret. I would not expect the secret to be deleted when unchecking the box. Instead, I would expect to return the password and leave the secret in the keychain (in essence, I would expect to fall back to askForPassword).

@nwstephens
Copy link
Author

nwstephens commented May 14, 2021

This also raises the question of how to delete secrets in the keyring. From the console, I would just run key_delete(). With the dialogs, you could prompt the user to delete the secret when the entering a NULL value in the input window -- but I personally don't think that's necessary. Until there is a more complete UX for managing secrets in the IDE, I think issuing key_delete() is sufficient for deleting secrets.

@gaborcsardi gaborcsardi added this to the 1.3.0 milestone Nov 28, 2021
@gaborcsardi
Copy link
Member

gaborcsardi commented Nov 28, 2021

I am fairly sure that this is not an issue with keyring, and it does not delete keys unless you explicitly call key_delete()

But please reopen if you think I am wrong.

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