Files
urutau/internal/store/hostile.go
T
Lucas RayanandClaude Opus 5.5 c33cca22e3
CI / Docker image (build and smoke test) (push) Skipped
CI / Format and vet (push) Successful in 28s
CI / Dependency audit (push) Successful in 16s
CI / Tests (Linux, race detector) (push) Successful in 1m3s
Release / Plan (reuse the published image?) (push) Successful in 4s
Release / ci (push) Skipped
Release / Build image (amd64) (push) Skipped
Release / Build image (arm64) (push) Skipped
Release / Publish tags (push) Successful in 13s
Release / Gitea release (push) Successful in 3s
feat: 1.4.0 second firewall, egress analysis and HTML report
Optional second firewall (URUTAU_ENFORCE off/observe/on) through the host
fail2ban, outbound traffic analysis (beaconing, mining, spam, DNS bypass,
unauthorised scans) with authorised scanner workloads, host kit in
deploy/host and a printable HTML report.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 23:35:34 -03:00

12 lines
382 B
Go

package store
// KnownHostile reports, cheaply, whether this instance has seen the address
// attack it: banned by a jail or scored hostile. Used by the egress analysis
// to flag outbound connections to an attacker.
func (s *Store) KnownHostile(ip string) bool {
s.mu.RLock()
defer s.mu.RUnlock()
r := s.ips[KeyOf(ip)]
return r != nil && (len(r.Jails) > 0 || r.Score >= 50)
}