How to deal with authenticators with multiple CTAP transports on one physical interface

オープン
#182 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
静か
技術スタック
linux, rust

調査の方向性

まず issue #154 を読み、USB、BLE、NFC、CCID/PC/SC のトランスポート検出パスを追跡してください。libnfc と PC/SC が現在どのように使用されているかを確認し、そのうえで、トランスポートの重複排除エラーを避けながら NFC キーの読み取りを維持できる変更かどうかを判断してください。完了時には、影響を受ける検出動作に対する焦点を絞ったテストを含める必要があります。

索引モデルが issue の本文から書いたものです。

説明

Somewhat related to #154 is that if a device supports the CCID/smart-card protocol over USB as well as HID, then it will appear as two devices without a way to deduplicate them[^1].

[^1]: I think this needs CTAP spec changes to make this robust (e.g., returning a random ID from getInfo on every power cycle to identify the same device across transports).

But I think that we can improve this situation by only using physical interface-specific APIs. USB and BLE are fine: we should use libnfc only for the nfc::is_available(), or return false. (The reason for this is that PC/SC abstracts over physical transports, so we can't know at that level whether it's NFC, USB or a smartcard on some other port.)

  • We can still support reading NFC keys with just pcsc, we just won't be able to tell inform the UI that they should say "a USB or NFC security key" rather than just "a USB security key". Similarly, this allows us to use "smart-card only" authenticators, though I don't know if any of those exist.

(I think this issue motivates a change in credentialsd though: instead of selecting transports for security keys, we should just generically show "security key" and preemptively discovery on all available transports. That'll be a separate issue in credentialsd.)

主要言語
Rust
スター
602
フォーク
33
平均マージ
1日 13時間
マージ済み PR(30日)
9

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

linux-credentials/libwebauthn のほかの issue

linux-credentials/libwebauthn の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。