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

Don't store authentication credentials in $XDG_CONFIG_HOME #1912

Open
rpdelaney opened this issue Oct 22, 2018 · 1 comment
Open

Don't store authentication credentials in $XDG_CONFIG_HOME #1912

rpdelaney opened this issue Oct 22, 2018 · 1 comment

Comments

@rpdelaney
Copy link

hub stores an oauth token in $HOME/.config/hub/. This behavior is a deviation from the XDG directory standard with serious security implications. XDG_CONFIG_HOME is intended to store configuration files only, which means many users may accidentally back up this sensitive data via insecure means to insecure locations.

A much better place to put passwords and cryptographic keys would be in $XDG_DATA_HOME (on my system this is /home/ryan/.local/share).

Further reading: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

@rwe
Copy link

rwe commented Jul 11, 2019

If there's a security label in this repo, that should be applied to this issue rather than feature. As a user, I sync almost all of my XDG_CONFIG_HOME files between devices. ~/.config/hub is one of the few I need to exclude, because it embeds secrets in that file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants