diff --git a/integration_http_race_test.go b/integration_http_race_test.go index 4e7c428..702088c 100644 --- a/integration_http_race_test.go +++ b/integration_http_race_test.go @@ -373,7 +373,6 @@ func TestIntegrationZoneCreationDelegationRace(t *testing.T) { if _, err := newUserStore(gate, tables).UserByIDForUpdate(ctx, firstActor.ID); err != nil { t.Fatal(err) } - // Both handlers acquire the zone lock before checking the actor's row. a := make(chan *httptest.ResponseRecorder, 1) b := make(chan *httptest.ResponseRecorder, 1) go func() { a <- it.do(ctx, first) }() diff --git a/rules.go b/rules.go index 5372021..2ea7609 100644 --- a/rules.go +++ b/rules.go @@ -198,8 +198,6 @@ func validateZoneChanges(zone string, current []recordRow, changes zoneChanges) problems, warnings = zoneRuleProblems(zone, result, after, true) soaRepair := len(after.soa) != 0 && soaDefects(after.soa) < soaDefects(before.soa) soaOnlyRepair := soaRepair && slices.Equal(nonSOARows(current), nonSOARows(result)) - // An existing CNAME can block an SOA repair at the apex. Permit an - // independent repair without permitting normal writes on the broken zone. cnameRepair := soaDefects(after.soa) != 0 && changes.deletesOnly() if len(problems) != 0 && (soaOnlyRepair || cnameRepair) { beforeProblems, _ := zoneRuleProblems(zone, current, before, true) diff --git a/templates/html/layout.html b/templates/html/layout.html index a84362b..bf3a9cc 100644 --- a/templates/html/layout.html +++ b/templates/html/layout.html @@ -1,5 +1,6 @@ {{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}} {{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}} + {{define "layout"}} diff --git a/templates/html/pages/account.html b/templates/html/pages/account.html index 4640fab..70a0bf4 100644 --- a/templates/html/pages/account.html +++ b/templates/html/pages/account.html @@ -1,5 +1,6 @@ {{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}} {{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}} + {{define "title"}}Account{{end}} {{define "content"}}

Account

diff --git a/templates/html/pages/audit.html b/templates/html/pages/audit.html index ea597ef..bea6872 100644 --- a/templates/html/pages/audit.html +++ b/templates/html/pages/audit.html @@ -1,5 +1,6 @@ {{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}} {{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}} + {{define "title"}}Audit{{end}} {{define "content"}}

Audit

diff --git a/templates/html/pages/forbidden.html b/templates/html/pages/forbidden.html index 28eced5..23ec3c7 100644 --- a/templates/html/pages/forbidden.html +++ b/templates/html/pages/forbidden.html @@ -1,5 +1,6 @@ {{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}} {{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}} + {{define "title"}}Forbidden{{end}} {{define "content"}}

Forbidden

diff --git a/templates/html/pages/import.html b/templates/html/pages/import.html index b7d01e4..6b7d8b0 100644 --- a/templates/html/pages/import.html +++ b/templates/html/pages/import.html @@ -1,5 +1,6 @@ {{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}} {{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}} + {{define "title"}}Import {{.Zone}}{{end}} {{define "content"}}

Zones / {{.Zone}}

diff --git a/templates/html/pages/login.html b/templates/html/pages/login.html index 536d950..4b92018 100644 --- a/templates/html/pages/login.html +++ b/templates/html/pages/login.html @@ -1,5 +1,6 @@ {{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}} {{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}} + {{define "title"}}Sign in{{end}} {{define "content"}}

Sign in

diff --git a/templates/html/pages/not_found.html b/templates/html/pages/not_found.html index 4780e58..a9a00c5 100644 --- a/templates/html/pages/not_found.html +++ b/templates/html/pages/not_found.html @@ -1,5 +1,6 @@ {{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}} {{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}} + {{define "title"}}Not found{{end}} {{define "content"}}

Not found

diff --git a/templates/html/pages/user.html b/templates/html/pages/user.html index bf3c2d5..f0c2926 100644 --- a/templates/html/pages/user.html +++ b/templates/html/pages/user.html @@ -1,5 +1,6 @@ {{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}} {{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}} + {{define "title"}}User {{.TargetUser}}{{end}} {{define "content"}}

Users

diff --git a/templates/html/pages/users.html b/templates/html/pages/users.html index d4a9819..955d174 100644 --- a/templates/html/pages/users.html +++ b/templates/html/pages/users.html @@ -1,5 +1,6 @@ {{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}} {{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}} + {{define "title"}}Users{{end}} {{define "content"}}

Users

diff --git a/templates/html/pages/zone.html b/templates/html/pages/zone.html index 921373e..288bef4 100644 --- a/templates/html/pages/zone.html +++ b/templates/html/pages/zone.html @@ -1,5 +1,6 @@ {{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}} {{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}} + {{define "title"}}{{.Zone}}{{end}} {{define "content"}}

Zones

diff --git a/templates/html/pages/zones.html b/templates/html/pages/zones.html index 99dda91..2334c99 100644 --- a/templates/html/pages/zones.html +++ b/templates/html/pages/zones.html @@ -1,5 +1,6 @@ {{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}} {{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}} + {{define "title"}}Zones{{end}} {{define "content"}}

Zones

diff --git a/templates/html/partials/record_dialog.html b/templates/html/partials/record_dialog.html index cd1b930..fa4a9d2 100644 --- a/templates/html/partials/record_dialog.html +++ b/templates/html/partials/record_dialog.html @@ -1,5 +1,6 @@ {{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}} {{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}} + {{define "record_dialog"}}
diff --git a/templates/html/partials/soa_dialog.html b/templates/html/partials/soa_dialog.html index 2965ecc..5946a21 100644 --- a/templates/html/partials/soa_dialog.html +++ b/templates/html/partials/soa_dialog.html @@ -1,5 +1,6 @@ {{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}} {{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}} + {{define "soa_dialog"}}
diff --git a/templates/html/partials/zone_create_dialog.html b/templates/html/partials/zone_create_dialog.html index 54e3077..397a102 100644 --- a/templates/html/partials/zone_create_dialog.html +++ b/templates/html/partials/zone_create_dialog.html @@ -1,5 +1,6 @@ {{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}} {{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}} + {{define "zone_create_dialog"}}