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>
14 lines
647 B
Bash
Executable File
14 lines
647 B
Bash
Executable File
#!/bin/sh
|
|
# Urutau: writes "<ip> <container name>" for every running container, so the
|
|
# egress analysis can name workloads whose address changes on each redeploy.
|
|
set -eu
|
|
out=/var/log/urutau/containers.map
|
|
tmp=$(mktemp /var/log/urutau/.containers.map.XXXXXX)
|
|
trap 'rm -f "$tmp"' EXIT
|
|
docker ps -q | xargs -r docker inspect -f '{{$n := .Name}}{{range .NetworkSettings.Networks}}{{if .IPAddress}}{{.IPAddress}} {{$n}}
|
|
{{end}}{{if .GlobalIPv6Address}}{{.GlobalIPv6Address}} {{$n}}
|
|
{{end}}{{end}}' | sed 's# /# #' | grep -E '^[0-9a-fA-F.:]+ [A-Za-z0-9_.-]{1,128}$' > "$tmp" || true
|
|
chgrp adm "$tmp"; chmod 0640 "$tmp"
|
|
mv -f "$tmp" "$out"
|
|
trap - EXIT
|