feat(tracking): add key rotation and worker abuse protections#295
feat(tracking): add key rotation and worker abuse protections#295salmonumbrella wants to merge 3 commits into
Conversation
…aders Drive search now detects raw API filter syntax (field comparisons, contains, membership, has) and passes it through instead of wrapping in fullText contains. Plain-text searches always append trashed=false to prevent false positives. Gmail MIME now RFC 2047-encodes display names with non-ASCII characters in From/To/Cc/Bcc/Reply-To headers using net/mail. Fixes openclaw#254, fixes openclaw#255 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Closes openclaw#293 and openclaw#294. - add TRACKING_KEY_V<n> secrets and current-version tracking metadata\n- add gmail track key rotate command and config metadata\n- persist all key versions and deploy rotated key set to worker\n- add per-IP rate limit + duplicate open dedupe in worker\n- harden bot detection heuristics and tokenized decryption compatibility\n
- Fix Go syntax error in IsConfigured() multiline return - Fix variable scoping bug in DecryptWithVersions (unmarshalErr) - Add admin auth to /q/ endpoint to protect IP/location data - Fix slice mutation in decryptionVersionOrder - Fix test configs missing AdminKey and --no-deploy flag position Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Thanks for the tracking security work. This is now superseded by main, so I’m closing the stale PR rather than trying to merge the dirty branch.\n\nLanded/current coverage:\n- #293 key rotation: fixed in e98f44d (versioned tracking blobs, |
Summary
gog gmail track key rotateCLI command (closes Security: Add key rotation mechanism for email tracking encryption #293)--filterquery pass-through forsearchandsearch-moresubcommandsTest plan
go test ./internal/tracking/... ./internal/cmd/...)/q/endpoint requires admin Bearer token (security fix from code review)Closes #293
Closes #294
🤖 Generated with Claude Code