תוצאות ביקורת אבטחה: למה הרגשתי מבוכה

לאחרונה הרצתי ביקורת אבטחה על כל הפרויקטים האישיים שלי. זה כולל את ה-FastAPI backend שלי, בוטים של Telegram, אפליקציות PWA ו-Streamlit.

חשבתי שהקוד שלי בטוח כי הייתי זהיר. טעיתי.

אני משתף את באגים אמיתיים מסביבת הייצור (production) כדי לעזור לכם להימנע מהם. אלו אינם רשימות תיוג תיאורטיות. אלו טעויות שאני באמת עשיתי.

My new mandatory checklist:

Before coding: • Create a .gitignore • Create a .env.example

For every endpoint: • Add authentication • Use generic error messages • Add rate limits to expensive tasks

Before committing: • Scan for secrets in your diff

Before deploying: • Run security audits on your dependencies

Security issues do not happen by accident. They happen because of "TODO" comments and "temporary" fixes that stay in production forever.

Fixing a bug is boring. Fixing a breach is expensive.

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