Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#3 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
53/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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).

Ngôn ngữ chính
TypeScript
Star
7
Fork
1
Merge trung bình
1 ngày 6 giờ
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nextlevelbuilder/dewee-webchat

Tất cả issue của nextlevelbuilder/dewee-webchat

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.