jennybc / happy-git-with-r

Using Git and GitHub with R, Rstudio, and R Markdown
https://happygitwithr.com
Other
597 stars 336 forks source link

PAT storage on Linux #218

Open steffen-stell opened 1 year ago

steffen-stell commented 1 year ago

Chapter 9.5.3 gives the appearance that git cache or .Renviron are the only PAT storage options on Linux. But there are two better options as can be seen in the documentation: the freedesktop.org Secret Service API and GPG/pass compatible files.

On Gnome-based systems Gnome Keyring uses the freedesktop.org Secret Service API. A simple setup guide can be found here. The equivalent on KDE should be KWallet, as far as I am aware. I think you are not even limited to these options, for example you can also set up KeePassXC for secret service integration.

It would be nice to at least mention these options to prevent people from using the less secure .Renviron option.

rstub commented 4 months ago

In addition there is https://github.com/hickford/git-credential-oauth, which even works in headless environments when the device flow is used.