نتائج تدقيق الأمان: لماذا شعرت بالإحراج

أجريت مؤخرًا تدقيقًا أمنيًا على جميع مشاريعي الجانبية. يشمل ذلك الواجهة الخلفية لـ FastAPI، وبوتات Telegram، وتطبيقات PWA، وتطبيقات Streamlit.

كنت أظن أن الكود الخاص بي آمن لأنني كنت حذرًا. لكنني كنت مخطئًا.

أنا أشارك هذه الأخطاء البرمجية الحقيقية من بيئة الإنتاج لمساعدتكم على تجنبها. هذه ليست مجرد قوائم مراجعة نظرية، بل هي أخطاء ارتكبتها بالفعل.

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