الأدوات
احتفظ بالقيم الخاصة خارج الكود
استخدم Secrets للتوكنات ومفاتيح API وبيانات قواعد البيانات والإعدادات الحساسة.
ما الذي يوضع هنا؟
- Bot tokens.
- API keys.
- Database passwords.
- Private service credentials.
- Environment values that must not be committed to code.
استخدام القيم في التطبيق
Configure the application to read these values from environment variables rather than hard-coding them.
تغيير المفاتيح
If a credential is exposed, replace it at the provider and update the matching Secret.
لا تسجل الأسرار
Avoid printing secret values to Console, deployment logs, screenshots, or support messages.
تنبيه
A secret that was publicly exposed should be treated as compromised even if you delete the message later.