feat: 1.4.0 second firewall, egress analysis and HTML report
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>
This commit is contained in:
Lucas RayanandClaude Opus 5.5 committed 2026-11-14 23:35:34 -03:00
1 parent 3adaa007ec
commit c33cca22e3
59 files changed
+7364 -24

No files matched your search

+23
View File
@@ -98,6 +98,18 @@ func Serve(c Config) error {
bindHost, _, _ := net.SplitHostPort(c.Bind)
h := server.New(server.Options{Token: token, PeerTokens: c.PeerTokens, PeerAllow: allow, TrustedProxy: tproxy, Ignore: ign,
AllowHosts: []string{bindHost}, NoAuth: c.NoAuth, LocalBlocklist: strings.EqualFold(c.PeerBlocklist, "off"), Version: Version, Store: st, Hub: hub})
egressSrc, err := newEgress(c, st, log)
if err != nil {
return err
}
if egressSrc != nil {
extra := runner.Extra
runner.Extra = func() []store.SourceStatus { return append(extra(), egressSrc.Status()) }
}
eng := newEnforce(c, st, peers, en)
if eng != nil {
server.SetEnforce(eng)
}
ln, err := net.Listen("tcp", c.Bind)
if err != nil {
return err
@@ -110,6 +122,9 @@ func Serve(c Config) error {
go func() { defer wg.Done(); elog.Run(ctx) }()
}
runner.Start(ctx, offsets, &wg)
if egressSrc != nil {
egressSrc.Start(ctx, &wg)
}
wg.Add(2)
go func() { defer wg.Done(); rd.Run(ctx) }()
go func() {
@@ -140,6 +155,14 @@ func Serve(c Config) error {
wg.Add(1)
go func() { defer wg.Done(); hub.Run(ctx) }()
}
if eng != nil {
wg.Add(1)
go func() { defer wg.Done(); eng.Run(ctx) }()
if hub != nil && eng.Share() {
wg.Add(1)
go func() { defer wg.Done(); shareDecisions(ctx, hub, eng, log) }()
}
}
log.Info("urutau started", "version", Version, "name", c.Name, "bind", ln.Addr().String(), "peers", len(peers), "auth", !c.NoAuth)
errc := make(chan error, 1)
go func() { errc <- srv.Serve(ln) }()