@moq/net cannot identify a refused or revoked configured token

オープン
#10,331 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
34/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust

調査の方向性

Start by tracing Connection, Connection.answered(), connection.auth, and Handle.add() in the Rust client, then inspect how configured tokens are presented across reconnects and how SETUP credentials are handled. The issue gives an in-memory lite-07 relay reproduction at commit 62c0ec81fa to use as a starting point. Done means each configured token exposes pending, granted, refused, or revoked state without revealing token bytes in errors or logs.

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

説明

A client can share one lite-07 connection across several independently authorized subscriptions by passing a Signal<readonly string[]> to Connection. It needs to replace a credential the peer refuses or revokes while the other subscriptions keep their access.

Connection.answered() rejects with the first error for the set, and connection.auth exposes the union of live grants. Neither identifies which configured token was refused. The answer also latches, so a revocation after a successful answer does not change it. Handle.add() returns a per-token credential, but presents an additional AUTH stream when used to observe a token the connection already presents.

I reproduced this with an in-memory lite-07 relay at 62c0ec81fa:

  1. Connect with configured tokens [primary, alpha, beta]. Grant the connection credential for the primary path and leave both additional tokens pending.
  2. Refuse alpha with Unauthorized and leave beta pending. Repeat on a fresh connection with the two roles swapped.
  3. Both runs leave the connection connected, grant only primary, and reject answered() with the same error. The client cannot tell which token to replace.

A configured token needs an observable pending, granted, refused, or revoked state across reconnects, including when it is the SETUP credential. The application should be able to identify the affected input without putting token bytes in errors or logs.

(Written by GPT-6.2 Sol with xhigh)

主要言語
Rust
スター
1.6k
フォーク
251
平均マージ
10時間 10分
マージ済み PR(30日)
832

環境構築

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

はじめの一歩

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

moq-dev/moq のほかの issue

moq-dev/moq の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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