Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Secret schema on Linux is inconsistent with python, go keyring libraries #223

Open
@ccope

Description

@ccope

Prerequisites

Description

Unfortunately it doesn't seem like there are predefined schemas for secrets in the freedesktop secretservice backend, other than for network servers. Keytar chose to use account and keyring chose username. The keychain library for go, keybase/go-keychain, also chose username. Setting both fields would allow the libraries to interoperate.

https://github.com/atom/node-keytar/blob/master/src/keytar_posix.cc#L14-L17
https://github.com/jaraco/keyring/blob/master/keyring/backends/SecretService.py#L84-L87

Steps to Reproduce

  1. Add a secret with either library.
  2. Try to retrieve the secret with the other library.

Expected behavior:
The secret should be returned

Actual behavior:
It fails

Reproduces how often:
100%

Versions

5.0.0-beta.2 (but all are broken)

Additional Information

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions