One rule
Never paste or commit real secrets. A secret is anything that lets someone access money, data, accounts, servers, or APIs as you.
AI coding assistants can use open files, chat history, and repo context. Keep keys out of files the assistant can read unless your tool and repo settings intentionally exclude them.
What counts
Common secrets include API keys, database URLs, JWT secrets, OAuth client secrets, service account JSON, private keys, access tokens, SMTP passwords, and payment gateway keys.
For Indian hackathon projects, watch for Razorpay test keys, Firebase configs, MongoDB Atlas URLs, Supabase service role keys, Twilio tokens, and cloud credentials. Even test keys should not be public.