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
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>
12 lines
382 B
Go
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)
|
|
}
|