Repository navigation
Record deletes and auto-wipe cross-channel copy-paste spam - #31
Open
alexeygrigorev wants to merge 1 commit into
Open
alexeygrigorev wants to merge 1 commit into
alexeygrigorev wants to merge 1 commit into
Conversation
Log every delete/ban with the triggering reaction, admin, and message text (Dynamo 90-day TTL + S3 archive). Route user message events to the automator. Similar text in two or more channels is folded into a Dynamo aggregate; a 5-minute EventBridge scan deletes quiet sessions and DMs Alexey the same deactivate flow as :ban-user: (summary, then the user id as a separate message).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
We need a durable record of what was deleted and why, especially
:ban-user:wipes. We also want copy-paste spam across channels removed automatically after the person stops, with the same deactivate DM as:ban-user:.What
DELETE_AUDIT, DynamoDBautomator-delete-audit(90-day TTL), and S3dtc-automator-delete-audit-<account>. Query with/delete-auditorautomator/scripts/query_delete_audit.py.messageevents go to the automator (bots/edits/joins ignored).last_seenis older than 3 minutes, deletes those copies (+ thread replies), DMsU01AXE0P5M3the summary then the user id as its own message.Infra (already merged): aws-infra#87 and aws-infra#85. Apply
main/automatorif that has not happened yet.Slack app
Subscribe the router to
message.channels(andmessage.groupsif private channels matter). Message events were off.Tests
automator: 100 tests.router: 6 tests.