Skip to content

Releases: pardnchiu/go-ip-sentry

v1.0.0

18 Jul 17:30

Choose a tag to compare

Clear README history and release v1.0.0


清空 README 記錄並釋出 v1.0.0

v0.3.0

23 Jun 16:02
594564d

Choose a tag to compare

v0.3.0 Pre-release
Pre-release

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

09 Jun 16:32

Choose a tag to compare

v0.2.0 Pre-release
Pre-release

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 calcBasic
    • LoginFailure default: 4 attempts +15 points
    • NotFound404 default: 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 list
  • ScoreGeoHighRisk: High-risk Country score
  • ScoreLoginFailure: Login failure score
  • ScoreNotFound404: 404 error score

File Management

Supports custom file path configuration

  • CityDB: GeoLite CityDB
  • CountryDB: GeoLite CountryDB
  • BanList: ban_list.json
    [
      {
        ip: string
        reason: string
        added_at: int // timestamp
      }
      ...
    ]
  • TrustList: trust_list.json
    [
      {
        ip: string
        tag: string
        added_at: int // timestamp
      }
      ...
    ]

v0.1.0

08 Jun 17:44

Choose a tag to compare

v0.1.0 Pre-release
Pre-release

未完成

  • AbuseIPDB 驗證
  • Geo 驗證