mozilla / mozilla/authenticator-rs

[Bug] Registration fails when device is full and discoverable credentials is only preferred.

Open
#335 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
316
Forks
82
Avg merge
4d 20h
Merged PRs (30d)
1

Description

Issue description

Right now, the registration process fails when the device cannot create any more discoverable credentials, because is full, when discoverable credential is set as "preferred" and not as "required. The expected outcome should be to fall back to non-discoverable credential as if the device wouldn't support discoverable credentials at all.

Steps to reproduce
  1. use hardware with limited storage for discoverable credentials (for example yubikey 5 series)
  2. Fill the device with dummy credentials
  3. Try to register new credential using the library, with discoverable/resident credential setting set as "preferred"
  4. Observe result
Expected result

Library should fall back into registering non-discoverable credential

Actual result

Registration fails.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the registration failure with a full YubiKey 5-series device and discoverable credentials set to preferred. Trace the registration path for this setting and verify that a failure to create a discoverable credential falls back to a non-discoverable credential, then repeat the reproduction steps to confirm registration succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
authentication, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.