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

Non-interactive unlocking of file backend keyring? #162

Open
mattmoo opened this issue Jan 21, 2025 · 3 comments
Open

Non-interactive unlocking of file backend keyring? #162

mattmoo opened this issue Jan 21, 2025 · 3 comments

Comments

@mattmoo
Copy link

mattmoo commented Jan 21, 2025

Thank you for this great package!

I tend to use the targets package for architecture, and I am running into a problem with keyring and RStudio Server.

It seems that the root cause is that targets spawns new R processes, and the file backend keyring is not unlocked in these processes.

Do you see any way around this?

@gaborcsardi
Copy link
Member

I don't understand what your issue is. To unlock a keyring, call the keyring_unlock() method and pass in the keyring and the unlock password.

@mattmoo
Copy link
Author

mattmoo commented Jan 22, 2025

Thanks, Gábor! To do that without interaction, would the password not have to be saved in plain text?

@gaborcsardi
Copy link
Member

It does not have to be a string literal if that's what you are asking. You would obviously need a way to get the password to the subprocess. keyring does not do anything about this, it is up to targets and/or your application.

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