Key the application notice per-user limit on the canonical user id
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- Nửa ngày
- Mức phù hợp với người mới
- 55/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ệ
- postgresql, typescript
- Lĩnh vực
- authentication, security
Hướng nghiên cứu
Start with the applicationNoticeUserLimiter key generator in src/middleware/applicationNoticeRateLimit.ts, where the raw req.body.userId is used as the bucket key. Compare it with the user lookup that resolves the canonical user.id to see where case normalization fits. Done when case variants of one UUID share a bucket and the limiter store choice is documented or made configurable for multi-instance deployments.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
applicationNoticeUserLimiter in src/middleware/applicationNoticeRateLimit.ts keys on the raw req.body.userId. z.uuid() accepts upper-case UUIDs and the Postgres lookup is case-insensitive, so case variants of one id get separate buckets, up to the per-client cap. Both notice limiters use the in-memory store, so each additional API instance multiplies the limits.
Fix
- key on
userId.toLowerCase(), or on the resolveduser.idafter lookup - use the shared rate-limit store when more than one instance runs
- Ngôn ngữ chính
- TypeScript
- Star
- 2
- Fork
- 2
- Merge trung bình
- 11 giờ 40 phút
- Pull request đã merge (30 ngày)
- 104
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của fells-code/seamless-auth-api
-
easy P2 v0.23
Độ khó 4/5 Hơn một tuần Mức phù hợp với người mới 8/100
fells-code/seamless-auth-api#561 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
epic P1 security v0.23
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 8/100
fells-code/seamless-auth-api#558 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
epic P2 v0.23
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 5/100
fells-code/seamless-auth-api#551 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
P2 secure v2.1
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
fells-code/seamless-auth-api#512 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
P3 secure v1.0
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
fells-code/seamless-auth-api#439 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của fells-code/seamless-auth-api
Issue tương tự
-
desktop v3 windows
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
esengine/DeepSeek-Reasonix#15016 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
FR: Support CJK brackets, symbols and full-width markers in footnoteHeuristics (EBPAJ support)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
readest/readest#7413 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue priority: medium size: XS
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
content triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
eliasstravik/herdr-projects#788 ·