Project

General

Profile

Actions

결함 #517

open

[보안/비용][P1] 백오피스 batch GET SSE가 rate-limit·origin·LLM cap 전부 우회 → 무인증 비용 DoS

Added by joungmin ko about 2 months ago. Updated about 2 months ago.

Status:
진행
Priority:
높음
Assignee:
-
Start date:
06/27/2026
Due date:
% Done:

50%

Estimated time:

Description

origin guard는 POST에만(main.py:138), per-IP limit/LLM cap 데코레이터는 POST translate/regenerate에만. 무거운 batch 작업은 GET SSE(/lyrics/batch-translate, /lyrics/batch-fetch, /genres/batch-update)라 어떤 가드도 안 탐. 0.0.0.0:8091 + 무인증(#508 수용)과 결합 시 URL 한 번으로 LLM 예산/MusicBrainz 남용.
수정: origin guard를 모든 비안전 메서드로 확대, batch 제너레이터 내부에서 곡 단위 LLM cap 체크. (#508 리스크 수용 맥락 — 비용 측면만 별도 처리.)

— 6-페르소나 코드리뷰(2026-06-27)에서 도출. 소스 검증 완료. [AI 등록]

Actions #1

Updated by joungmin ko about 2 months ago

  • Status changed from 신규 to 진행
  • % Done changed from 0 to 50

커밋 a279c3e. 빌드·재기동·스모크 검증 완료. origin guard를 모든 비안전 메서드(/lyrics,/genres,/songs,/reports)로 확대. ⚠️ 잔여: batch 내부 LLM cap 곡단위 계수·앱 인증은 #508(리스크 수용)·#521과 연계, 미적용. [AI 조치]

Actions

Also available in: Atom PDF