Skip to content

oo7 fails to match secrets when searched attributes are a subset of stored attributes #233

@noxpardalis

Description

@noxpardalis

I was testing oo7 as a replacement for gnome-keyring on my system. I noticed that signing in to my GitHub account with zed (which uses the Secret Service API) would write a secret to the collection, but it couldn’t find that secret again after being closed and reopened.

When zed wrote the secret, the attributes looked like this:

{
  "url": "https://zed.dev",
  "username": "..."
}

However, it searched for the secret using only a subset of the attributes:

{
  "url": "https://zed.dev"
}

I'm not familiar enough with the FreeDesktop specification, but it seems reasonable to expect that items with a superset of the searched attributes should still match.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions