Add welcomebot-signups CLI to inspect signup-IP classification history
This commit is contained in:
@@ -99,11 +99,31 @@ admin.yttrx.com (source: `bin/welcomebot-logs` in this repo). It wraps
|
||||
ssh admin.yttrx.com welcomebot-logs # last 200 lines
|
||||
ssh admin.yttrx.com welcomebot-logs -f --abuse # follow abuse activity only
|
||||
ssh admin.yttrx.com welcomebot-logs -n 1000 --since 24h
|
||||
ssh admin.yttrx.com welcomebot-logs --ip --since 24h # signup-IP scrutiny decisions
|
||||
ssh admin.yttrx.com 'welcomebot-logs --help'
|
||||
```
|
||||
|
||||
To reinstall after editing `bin/welcomebot-logs`:
|
||||
`scp bin/welcomebot-logs admin.yttrx.com:/tmp/ && ssh admin.yttrx.com 'install -m755 /tmp/welcomebot-logs /usr/local/bin/'`
|
||||
### Inspecting signup-IP classification history
|
||||
|
||||
`welcomebot-signups` (also `/usr/local/bin/welcomebot-signups`, source
|
||||
`bin/welcomebot-signups`) reads the persistent `signup_ip` sqlite table
|
||||
directly — a permanent record of every classification decision, independent
|
||||
of log retention:
|
||||
|
||||
```bash
|
||||
ssh admin.yttrx.com welcomebot-signups # last 20 decisions
|
||||
ssh admin.yttrx.com welcomebot-signups --flagged # only datacenter-flagged signups
|
||||
ssh admin.yttrx.com welcomebot-signups -a someuser
|
||||
ssh admin.yttrx.com welcomebot-signups -n all
|
||||
```
|
||||
|
||||
Both CLIs are just files tracked in this repo now — after editing either one,
|
||||
reinstall with:
|
||||
|
||||
```bash
|
||||
ssh admin.yttrx.com 'cd /root/yttrx-welcomebot && git pull origin main && \
|
||||
install -m755 bin/welcomebot-logs bin/welcomebot-signups /usr/local/bin/'
|
||||
```
|
||||
|
||||
### Rollback
|
||||
|
||||
|
||||
Reference in New Issue
Block a user