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

Harden the badge-photo, github-avatar and og/badge.png API routes

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

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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
54/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
api, security

Hướng nghiên cứu

Read apps/web/src/pages/api/badge-photo.ts, github-avatar.ts, og/badge.png.ts, and compare badge-photo.ts with signup.ts for the cited error handling and BotID patterns. Then inspect the firewall rate-limit configuration for the avatar and OG routes. Done means the three routes have the requested error handling, badge-photo checks BotID, and both routes have rate limits.

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

Mô tả

area:web bug P2

Area: Landing (apps/web) · Priority: P2 · Difficulty: intermediate · Confidence: medium

Evidence

apps/web/src/pages/api/badge-photo.ts:68-77 runs the Drizzle update with no try/catch and no BotID check, unlike signup.ts. github-avatar.ts:20-36 proxies any handle with no rate limit. og/badge.png.ts:55 awaits the DB with no error boundary.

Suggested fix

Wrap DB calls with the same safeSentry and save_failed envelope. Add checkBotId() to badge-photo. Add a firewall rate-limit rule for the avatar and OG routes.


Backlog ID W-17 from the 2026-09-22 read-only audit of this repository at commit 3eef3b4. Line numbers refer to that commit. Confidence marks where a claim rests on a code read only and was not reproduced.

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

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

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

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 HackSpain/hackspain26

Tất cả issue của HackSpain/hackspain26

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.