Please report security issues privately through GitHub's Security → Report a vulnerability form on this repository. Do not open a public issue. I'll acknowledge reports as soon as I can.
- Keys never live in code. API keys are read from environment variables (
.env, which is git-ignored). - Least privilege. Use one key per purpose, scoped to a single universe, with only the operations you need and an expiry date.
- Writes are allowlisted. DataStore writes and deletes are refused unless the DataStore name starts with
ocops_. - Test profile by default.
--profile prodmust be passed explicitly and requires typingprodto confirm each write. - Dry-run.
--dry-runshows old and new values without writing. - Audit log. Every write records the old value in
audit.jsonl(git-ignored, may contain player data), whichrestoreuses to undo changes. - Protected users. User IDs in
PROTECTED_USER_IDScan never be banned. - Retries only for transient errors (
429,5xx, timeouts), with exponential backoff.
- The
ocops_guard is a client-side safety net, not a permission boundary: a key with write access can write to any DataStore in its universe. Scope keys tightly. audit.jsonlis local. Back it up if you rely onrestore.- No guarantee of being vulnerability-free. Use at your own risk and try commands on a throwaway universe first.