Releases: pardnchiu/go-ip-sentry
Releases · pardnchiu/go-ip-sentry
v1.0.0
v0.3.0
Features
- Added JSON format support: Integrated Go's standard log/slog package for structured logging output
- Added dual output formats: Support for both JSON (machine-readable) and Text (readable tree structure) formats
- Added log type configuration field: Introduced Type field in Log struct to allow users to select output format
v0.2.0
New Features
Login Failure and 404 Error Tracking
- Added
LoginFailure(): Records login failure events - Added
NotFound404(): Records 404 error events
Enhanced Dynamic Risk Score Checking
- Added checks for login failures and 404 errors in
calcBasicLoginFailuredefault: 4 attempts +15 pointsNotFound404default: 8 attempts +15 points
- Risk score increases when threshold exceeded: 2x score increase when exceeding 1.5x threshold
Complete Country Checking Features (requires GeoLite download)
- Supports city-level Country analysis
- Distance calculation and movement speed detection
Extended Configuration Parameters
HighRiskCountry: High-risk country listScoreGeoHighRisk: High-risk Country scoreScoreLoginFailure: Login failure scoreScoreNotFound404: 404 error score
File Management
Supports custom file path configuration
CityDB: GeoLite CityDBCountryDB: GeoLite CountryDBBanList: ban_list.json[ { ip: string reason: string added_at: int // timestamp } ... ]TrustList: trust_list.json[ { ip: string tag: string added_at: int // timestamp } ... ]