Skip to content

local-app: Handle access token storage if keyring isn't running on enviroments such as WSL #8178

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

Closed
ajhalili2006 opened this issue Feb 13, 2022 · 2 comments
Labels
component: local app meta: stale This issue/PR is stale and will be closed soon team: IDE type: feature request New feature or request

Comments

@ajhalili2006
Copy link

Is your feature request related to a problem? Please describe

One of the painpoints of running the Local Companion in server environments where there's no GUI installed by default or in case of WSL, the distro's init system of choice isn't ran as PID 1 so we need to use the good old /etc/init.d scripts.

mikedmoy@HaliliFam-Win10-Dell: ~/git-projects/oss/gitpodified-workspace-images recaptime-dev-mainline!
$ gp-localapp                                                                                            [19:44:41]
INFO[0000] writing workspace ssh_config file             ssh_config=/tmp/gitpod_ssh_config
2022/02/13 19:44:50 failed to unlock correct collection '/org/freedesktop/secrets/aliases/default'
FAIL

Describe the behaviour you'd like

Possibly store the access token generated from the OAuth authorization code exchange as an SQLite database or YAML config in ~/.config/gitpod-local-companion (~/AppData/Local/gitpod-local-companion in Windows).

Describe alternatives you've considered

While --mock-keyring flag might be closest alternative to this situation, we need to literally reauthenicate every time we fire up the Local Companion binary.

Additional context

No response

@loujaybee
Copy link
Member

Thanks for raising, @ajhalili2006. Since local companion app is still beta, we'll be taking a look into this as part of the move of local companion to GA. Thanks! 🙏

Also related roadmap item: #7185

@stale
Copy link

stale bot commented May 31, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the meta: stale This issue/PR is stale and will be closed soon label May 31, 2022
@stale stale bot closed this as completed Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: local app meta: stale This issue/PR is stale and will be closed soon team: IDE type: feature request New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants