Record the forward policies before disabling ufw, so a retried retirement restores them (hq ADR 0100)

This commit is contained in:
2026-09-22 18:33:09 +02:00
parent aef4993d10
commit 444ad8f3cf
5 changed files with 85 additions and 20 deletions
+4
View File
@@ -116,6 +116,10 @@ type FoundFirewall struct {
// DisabledByMesh is set when converging retired it, so returning to adopted enables it again
// and nothing else ever does.
DisabledByMesh bool `json:"disabled_by_mesh,omitempty"`
// Forward is each family's forward policy as it was before the mesh disabled the firewall,
// by the tool that sets it — recorded before, so a retirement retried puts back what the
// machine had.
Forward map[string]string `json:"forward,omitempty"`
FoundAt time.Time `json:"found_at"`
}