Code-server: Keytar missing for Docker-extension

Created on 5 Apr 2019  路  8Comments  路  Source: cdr/code-server

Description

When i try to use the Docker-extension above it throws this error;

Activating extension 'PeterJausovec.vscode-docker' failed: Internal error: Could not find keytar module for reading and writing passwords.

Where and how can i install keytar?

Steps to Reproduce

  1. Install Docker extension from marketplace
  2. Click the Docker icon in the left hand toolbar

Most helpful comment

Will fix! Keytar is an interesting one since it uses the system keychain.

All 8 comments

Will fix! Keytar is an interesting one since it uses the system keychain.

I am wondering of you all made any progress on this? It seems like libsecret, which is the Linux implementation that this is using doesn't support any type of headless or CLI mode, it wants Dbus and X11 to be functioning.

Does libsecret really need X11? I understand it uses Dbus but I didn't think it required a running X11 server.

I'm also checking in on this one as I've run into this as well. Any progress here? Or has anyone found a workaround?

I've tried to just install npm and then keytar in the docker container, but it doesn't seem to be working (though I didn't really dive into why that didn't work, yet)

No workaround or solution at the moment, the issue is that libsecret requires Dbus (a message bus) and possibly X11 (a desktop environment) to be running and accessible to code-server.

I'm not completely sure, but the easiest solution seems to be writing a "fake" keytar that stores passwords by some other method instead of using those dependencies.

I use this library for accessing keyrings in Go: https://github.com/99designs/keyring
It has a list of backends that it supports. pass may be a good one for writing a fake keytar.

Works fine now. If this is still a problem, please feel free to reopen.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pchecinski picture pchecinski  路  3Comments

avelino picture avelino  路  3Comments

grant picture grant  路  3Comments

Arsaev picture Arsaev  路  3Comments

balazssoltesz picture balazssoltesz  路  3Comments