fix(webchat): fail or document ephemeral visitor secret and per-instance rate limiter
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 53/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- backend, documentation, security
調査の方向性
Start with packages/dewee-webchat/src/server/handler.ts lines 69–75 and trace how the handler chooses its secret and default rate limiter. Define and verify the production behavior when no secret is configured, and document that the memory limiter is per instance and when a shared RateLimiter is needed. Done when startup enforces the agreed secret behavior and the deployment limitation is documented.
索引モデルが issue の本文から書いたものです。
説明
Observed
When no secret is configured, the handler generates an ephemeral one, so visitor sessions reset on every restart. A console.warn is printed, but startup continues, including in production. The default rate limiter (memoryRateLimiter) is per-instance, so limits are not shared across replicas.
Where
packages/dewee-webchat/src/server/handler.ts:69-75
Suggested fix
Fail at startup in production when no secret is set (or require explicit opt-in), and document that the default limiter is per-instance and a shared RateLimiter is needed for multi-instance deployments.
Found while planning nextlevelbuilder/dewee#1450 (out of scope there).
- 主要言語
- TypeScript
- スター
- 7
- フォーク
- 1
- 平均マージ
- 1日 6時間
- マージ済み PR(30日)
- 5
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nextlevelbuilder/dewee-webchat のほかの issue
-
PHP backend: fixed file names in the shared temp dir対応中かも @dannyward630 が今日担当しました。 オープンai-handle
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
ai-handle
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
-
ai-handle enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
ai-handle enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
nextlevelbuilder/dewee-webchat の issue をすべて見る
似ている issue
-
area:desktop area:ui bug platform:macos
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
anthropics/claude-code#106183 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
feature:App-Tour feature:Chat ready Web
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
digitalfabrik/integreat-app#4523 · リアクション 2 件 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Required Lexical field accepts two empty paragraphs対応中かも @lazerg が今日担当しました。 オープンBug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
payloadcms/payload#19222 ·
メンテナーはふだん 1 日以内に返信