Skip to content

Export command doesn't include passkeys #6925

Description

@jessicah

Steps To Reproduce

With an account with a passkey added (GitHub in this example):

  1. bw export --format json --output bitwarden.json
  2. cat bitwarden.json | jq '.items[] | select(.name=="github.com")'

The 'login.fido2Credentials' array is empty.

The same export from the browser extension includes the passkey under the 'login.fido2Credentials' array.

Expected Result

A JSON export that includes the passkey data:

{
  "otherKeys": "omitted",
  "name": "github.com",
  "login": {
    "fido2Credentials": [
      {
        "credentialId": "...",
        "keyType": "public-key",
        "keyAlgorithm": "ECDSA",
        "keyCurve": "P-256",
        "keyValue": "....",
        "rpId": "github.com",
        "userHandle": "...",
        "counter": "0",
        "rpName": "GitHub",
        "userDisplayName": "...",
        "discoverable": "true",
        "creationDate": "..."
      }
    ],
    "uris": [
      {
        "match": null,
        "uri": "https://github.com/login"
      }
    ],
    "username": "...",
    "password": "...",
  },
  "collectionIds": null
}

Actual Result

A JSON export without the passkey data:

{
  "otherKeys": "omitted",
  "name": "github.com",
  "login": {
    "fido2Credentials": [],
    "uris": [
      {
        "match": null,
        "uri": "https://github.com/login"
      }
    ],
    "username": "...",
    "password": "...",
  },
  "collectionIds": null
}

Screenshots or Videos

No response

Additional Context

No response

Operating System

Linux

Operating System Version

Ubuntu 20.04.6 LTS

Shell

Bash

Build Version

2023.10.0

Issue Tracking Info

  • I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcliCLI Application

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions