Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

fix(webchat): fail or document ephemeral visitor secret and per-instance rate limiter

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
53/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript

調査の方向性

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 の本文から書いたものです。

説明

ai-handle bug

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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

nextlevelbuilder/dewee-webchat のほかの issue

nextlevelbuilder/dewee-webchat の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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