Security
Curator runs as a public worker, so access control and secret handling matter.
Manual trigger authentication
- Use
CURATOR_API_KEYfor/runand sendAuthorization: Bearer <key>. - Cloudflare Access can protect
/runusingCF-Access-JWT-Assertion. - Set
ENFORCE_ACCESS_JWT=trueto verify Access JWTs against JWKS. - In development, set
ENVIRONMENT=developmentto allow unauthenticated/runfor local testing.
Secrets and sensitive files
- Store secrets with
npx wrangler secret put. - Never commit
packages/curator/.wallets.jsonorpackages/curator/.api-keys.txt. - Keep per-persona private keys isolated.
Data isolation
Enable CURATOR_SCOPED_KEYS=true to prevent KV collisions between personas, chains, or environments.