Kebijakan keamanan repo agentai01.
- jangan commit API key, token, credential, cookie, atau private cert
.envhanya untuk default non-secret- secret lokal taruh di
.env.localatau env runtime - output operator/TUI/web tidak boleh menampilkan raw secret
OPERATOR_TOKEN,OWNER_TOKEN,OBSERVER_TOKEN,TELEGRAM_WEBHOOK_SECRET, danWHATSAPP_WEBHOOK_SECREThanya boleh berasal dari env/runtime secret source
- endpoint mutating harus terlindungi operator auth
- production tidak boleh memakai fallback
dev-owner-token - approval, retry, dan aksi high-risk harus memakai role
owner - role header hanya boleh down-scope token; tidak boleh menaikkan token operator menjadi owner
- approval/retry/directive flows harus eksplisit
- jangan anggap session label sebagai auth boundary
- sub-agent hanya boleh memakai
allowedMcpTools - departemen tidak boleh bocor memory lintas scratchpad
- cross-project access harus lewat validasi registry
- shell / workspace actions
- provider API calls
- Telegram / WhatsApp outbound
- Telegram / WhatsApp webhook endpoints (wajib HMAC signature, timestamp replay window, dan event id dedupe sebelum mutasi)
- MCP config merge dan bootstrap
- operator TUI actions yang memicu side effects
Semua surface itu harus:
- audit-safe
- explicit
- bisa dijelaskan perilakunya
Kalau ada indikasi leak atau misuse:
- hentikan perluasan perubahan
- identifikasi surface dan scope
- jangan print secret ke chat/log
- dokumentasikan dampak dan remediation
Kalau security posture berubah, update:
SECURITY.mdREADME.mdbila user-facing- file terkait di
docs/