abhinav / git-spice

Manage stacked Git branches
https://abhinav.github.io/git-spice/
GNU General Public License v3.0
220 stars 11 forks source link

Alternative Secret Store #294

Closed klnusbaum closed 2 months ago

klnusbaum commented 2 months ago

No matter what auth method I try, I keep getting the following error:

FTL gs: The name org.freedesktop.secrets was not provided by any .service files

I'm running in a headless docker container, without GNOME or KDE installed. I'm unaware of any headless options for a org.freedesktop.secret service.

It would nice if there was some way to store github tokens/credentials without a secret store (or point in the documentation to a headless secret store if we can find one).

One alternative might be storing the token in a dedicated file in $XDG_DATA_HOME, i.e. maybe ~/.local/share/git-spice/github-token, with the perms set to 400 so only the user can read it.

abhinav commented 2 months ago

Yeah, this is valid. Putting it in UserConfigDir seems to make sense. 400 won't do—that's read-only. We need write permissions too: 600. This issue was reported in #293 first, so closing in favor of that.