Closed bhogan-mitre closed 5 years ago
This issue is potentially related: https://github.com/r-lib/keyring/issues/47
Yes, I am afraid that you cannot do that. In theory you could have a SS client without X11, but I don't know any and I don't know a way to use the regular clients without X11.
Thanks for the reply. What do you think about using secret-tool
to access SS without X11? That is recommended in the Gnome Keyring documentation:
secret-tool — Access the GNOME keyring (and any other service implementing the DBus Secret Service API) from the command line. https://wiki.gnome.org/Projects/Libsecret || libsecret
and leveraged by the keyringr
package:
keyringr::decrypt_gk_pw
function (key_value_pairs)
{
stopifnot(Sys.info()["sysname"] == "Linux")
invisible(system(paste("secret-tool lookup ", key_value_pairs,
sep = ""), intern = TRUE))
}
Well, when the keyring is locked then the above will bring up an X11 dialog. Similarly for storing items:
csardi@ubuntu1604:~$ secret-tool store --label='label' attr val
(secret-tool:9235): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
secret-tool: Cannot autolaunch D-Bus without X11 $DISPLAY
csardi@ubuntu1604:~$ secret-tool lookup attr val
(secret-tool:9241): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
secret-tool: Cannot autolaunch D-Bus without X11 $DISPLAY
Is it possible to use the default Linux Secret Service backend from RStudio Server? It seems at first glance that the X11 requirement may be prohibitive.