Skip to content

Bearer Token Storage Location #2

Description

@Hobadee

Bearer Token is currently stored as an environment variable. This is both insecure and hard to manage.

Insecure because sometimes users root home directories will be readable by others for various reasons. This token should be stored somewhere that can be set mode 0600 without breaking anything. (And ideally check for 0600 similar to how SSH does for ~/.ssh.)

Hard to manage because you either need to set this manually each session, or store it in a .bashrc file or something, which is a pain to update. (And even worse, can leak if you store your dotfiles in a public repo!)

I propose storing this in a subdir of the OS-specific config dir. (Not sure if there is a single environment variable that can tell us this.) Linux: ~/.config/ OSX: ~/Library/Application Support/ Windows: %AppData%/. Perhaps there is an existing Python library to find this dir for us?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions