𝗦𝗲𝗰𝘂𝗿𝗶𝘁𝘆 𝗔𝘂𝗱𝗶𝘁 𝗥𝗲𝘀𝘂𝗹𝘁𝘀: 𝗪𝗵𝘆 𝗜 𝗳𝗲𝗹 𝗲𝗺𝗯𝗮𝗿𝗿𝗮𝘀𝘀𝗲𝗱

I recently ran a security audit on all my side projects. This includes my FastAPI backend, Telegram bots, PWA, and Streamlit apps.

I thought my code was safe because I was careful. I was wrong.

I am sharing these real production bugs to help you avoid them. These are not theoretical checklists. These are mistakes I actually made.

새로운 필수 체크리스트:

코딩 전: • .gitignore 생성 • .env.example 생성

모든 엔드포인트에 대해: • 인증 추가 • 일반적인 에러 메시지 사용 • 비용이 많이 드는 작업에 속도 제한(rate limits) 추가

커밋 전: • diff에서 비밀 정보(secrets) 스캔

배포 전: • 의존성(dependencies)에 대한 보안 감사 실행

보안 문제는 우연히 발생하지 않습니다. "TODO" 주석과 프로덕션 환경에 영원히 남게 되는 "임시" 수정 사항들 때문에 발생합니다.

버그를 고치는 것은 지루한 일입니다. 보안 침해를 해결하는 것은 막대한 비용이 듭니다.

출처: https://dev.to/justjinoit/nae-saideu-peurojegteu-boan-gamsa-gyeolgwa-buggeureobjiman-gongyuhabnida-3aj7