Description
Why do you want this feature?
Right now, following the guide from https://coder.com/docs/code-server/latest/npm, it doesn't specify that libsecret
needs to be installed - which can cause confusions and issues as seen in #5533
libsecret
is needed because keytar
is a dependency of vscode
- and it's used to store secrets.
HOWEVER, there's a fallback if it can't store creds in the OS store (what libsecret
is used for) - that uses memory. It shows a log message in the console, but code-server
(and vscode
) are fully functional without it, thanks to that fallback built-in into vscode
.
See https://github.com/microsoft/vscode/blob/1fb94816f2d40bdc77536eac44eada91a9a9e8ac/src/vs/platform/credentials/node/credentialsMainService.ts#L44-L48 for that catch
that means there's a fallback.
What is your suggestion?
Need to figure out/agree what is the state of the need for libsecret
when running code-server
. Some ideas:
- Try to get
vscode
to addkeytar
as anoptionalDependency
, as that's what it effectively is - Bring back the "hack" that was removed in 4ae5e26, which moves it to an
optionalDependency
on our side - Update the install doc to make
libsecret
part of the packages installed - https://coder.com/docs/code-server/latest/npm
Are you interested in submitting a PR for this?
Yes