Skip to content

Provide a unified, secure, credential store #15414

Closed

Description

At the moment, extension who need access to various resources need to implement their own credential storage, e.g. for storing tokens. For example, the VSTS extension does this, and what we want to implement in the (community-driven) Azure tools for Vscode, also looks like we'd need to it, to avoid having users sign-in into Azure every single session.

What I'd expect, is the platform (Vscode) to provide a unified interface for secure credential service (ideally something that looks like this: https://github.com/Microsoft/vsts-vscode/blob/master/src/credentialstore/credentialstore.ts)

Activity

  1. added
    feature-request
    on Nov 14, 2016
  2. bpasero commented on Nov 14, 2016

    @bpasero
    Contributor

    Anže Vodovnik (@avodovnik) this should probably move into the Electron framework, have you guys thought about contributing it to them?

  3. joaomoreno commented on Jun 26, 2017

    @joaomoreno
    Contributor
  4. michelkaporin commented on Jun 27, 2017

    @michelkaporin
    Contributor

    It would be great to enable it in our API.

    As part of smoket test status awareness I've worked on VSTS Build Status extension, that stores password in settings currently, which is not secure.
    Visual Studio Team Services Extension had to code their own credential store themselves to tackle the problem. However, their solution is not easily reusable by other extensions as long as it's not extracted in a separate module. Better option would be to have VS Code API that surfaces Credential Store.

    There is W3C draft on credentials API (https://w3c.github.io/webappsec-credential-management/), however it is not implemented in Electron, and seems unlikely that it will be there soon. There is an issue on that in their repo electron/electron#7150.

    As an option, we can go for keytar node module that provides very intuitive and simple interface to work with system's keychain, that we can surface in our API.

    This has a potential in Azure Attach extensions as well as any others that require secure credential store (e.g. SCM extensions).

    cc Erich Gamma (@egamma) Chris Dias (@chrisdias) Michael Kiefer (@kieferm)

  5. chrisdias commented on Jun 28, 2017

    @chrisdias
    Contributor
  6. added
    plan-item
    on Jul 11, 2017
  7. removed
    plan-item
    on Sep 25, 2017
  8. bpasero commented on Nov 16, 2017

    @bpasero
    Contributor

    Christof Marti (@chrmarti) this can be closed?

  9. chrmarti commented on Nov 16, 2017

    @chrmarti
    Collaborator

    Yes, not planned in the near future.

  10. locked and limited conversation to collaborators on Dec 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

apifeature-request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions