[Question] theoretical passwordless login impl.

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

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

@caniko がすでに取り組んでいます。

2026年10月7日 から。

  • #592 @caniko による — オープン

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
技術スタック
linux, rust

調査の方向性

oo7 の単一パスワードモデルと、issue で言及されているサーバーおよび prompter のインターフェースから始めます。カスタム PAM モジュール、第三の prompter、prompter クライアントが共有キーをどのように受け渡すかを追跡します。パスワードレス方式と keyring のアンロックについて、メンテナーが確認した設計ができれば完了です。

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

説明

question server

Situation:

  • Password-less methods like yubikeys etc have their own unique keys. A backup yubikey has a different second key. (see fido2 hmac-secret for how to get deterministic keys out)
  • Users have a backup-password in-case they do not have their yubikey with them.

For login there currently exists a yubico provided pam module which handles multiple keys and delegates to pam_unix for password login.
However that module doesn't emit the user-password when unlocking with a yubikey, since it doesn't store it.

Problems:

  • No single password during login -> no keyring unlock during certain flows.
  • Current keyring prompters ask for a password, I doubt they are extendible like PAM?

The first thing that comes to mind for me when needing a shared secret is SOPS, but that seems to be aimed at ssh or age keys, not arbitrary ones. Another option is to simply encrypt the shared secret with each key. Keys can hopefully be distinguished by id or method.
I believe would need to solve that shared secret issue outside of oo7, since oo7 seems to already have been written for the single password model.

Question:
If I were to implement a proof of concept for passwordless with oo7.
I suppose I would need to:

  1. write my own pam-module (to support passwordless methods and to extract the shared key, update on passwd change)
  2. create a 3rd prompter in the server to talk to custom prompter client.
  3. create a prompter client (to support passwordless methods and to extract the shared key)

Is what I described the intended path to support passwordless methods?

主要言語
Rust
スター
481
フォーク
62
平均マージ
9時間 51分
マージ済み PR(30日)
55

環境構築

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

はじめの一歩

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

linux-credentials/oo7 のほかの issue

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

似ている issue

Rust の issue をもっと見る

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

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