Project

General

Profile

Actions

결함 #506

closed

[보안][P0] 백오피스 DB 자격증명 하드코딩 제거 (db.py → 환경변수)

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

Status:
완료
Priority:
긴급
Assignee:
-
Start date:
06/27/2026
Due date:
% Done:

100%

Estimated time:

Description

문제

backoffice/db.py에 DB 사용자/비밀번호/DSN이 소스에 하드코딩되어 있음 (DB_USER, DB_PASSWORD, DB_DSN, WALLET_DIR). 저장소에 평문 노출 위험.

영향

  • DB 비밀번호가 코드/이력에 남음. 유출 시 ADB 전체 접근 가능.

조치

  • 환경변수(또는 .env, 이미 .gitignore됨)로 이전: DB_USER/DB_PASSWORD/DB_DSN/WALLET_DIR.
  • 코드는 os.environ에서 로드하고 기본값 제거.
  • 노출된 비밀번호는 ADB에서 로테이션 권장.

참고

역설계서: docs/design/503-backoffice/README.md §11 · ADR-0002. [AI 등록]

Actions

Also available in: Atom PDF