Security Policy β egos-lab
π¨ Reporting Vulnerabilities
If you discover a security vulnerability, please email [email protected] directly.
Do NOT open a public GitHub issue for security concerns.
π Rules for All Contributors (Humans AND AI Agents)
Never hardcode secrets in source code, comments, or commit messages
Never commit .env files β they are gitignored for a reason
Never log sensitive values (API keys, passwords, tokens) to console
Never include credentials in AI "thinking" comments (e.g., // the password is X)
Never paste .env contents into code as literal strings
Never commit connection strings with embedded passwords
Always use process.env.VAR_NAME to access secrets
Always add new env vars to .env.example (without real values)
Always run the pre-commit hook β install with scripts/setup-hooks.sh
Always rotate secrets immediately if accidentally exposed
Always use the GitGuardian dashboard to monitor for incidents
Layer
Tool
Status
Pre-commit
scripts/hooks/pre-commit
β
Active
Scanning Config
.gitleaks.toml
β
Active
Remote Monitoring
GitGuardian
β
Active
Git Ignore
.gitignore (env files)
β
Active
π Environment Variables
All secrets live exclusively in .env (never committed). See .env.example for required variables.
Variable
Purpose
Rotation Notes
OPENROUTER_API_KEY
AI model access
Rotate via OpenRouter dashboard
EXA_API_KEY
Web search
Rotate via Exa dashboard
SERPER_API_KEY
Google SERP search
Rotate via serper.dev
SUPABASE_SERVICE_ROLE_KEY
DB admin access
Rotate via Supabase Settings > API
SUPABASE_DB_PASSWORD
Direct Postgres
Rotate via Supabase Settings > Database
GITHUB_PERSONAL_ACCESS_TOKEN
Repo access
Rotate via GitHub Settings > Tokens
GITHUB_TOKEN / GITHUB_PERSONAL_ACCESS_TOKEN
Server-side GitHub API access
Rotate via GitHub Settings > Tokens
Date
Incident
Status
2026-02-18
SUPABASE_DB_PASSWORD hardcoded in deploy_nexus_schema.ts comments (commit 9818f4b) β detected by GitGuardian
β
Remediated β script cleaned, password rotation recommended
# Install pre-commit hook
chmod +x scripts/hooks/pre-commit
cp scripts/hooks/pre-commit .git/hooks/pre-commit
# Or use the setup script
bash scripts/setup-hooks.sh