fix: close record repair and verification gaps

This commit is contained in:
bryanpedini committed 2026-11-19 15:46:12 +01:00
1 parent 9251c85fd8
commit adff599e08
27 files changed
+787 -153

No files matched your search

+3 -1
View File
@@ -81,6 +81,8 @@ After field validation every record is converted to the `miekg/dns` RR the plugi
Errors refuse a write with HTTP `422`: a zone has exactly one SOA, at the apex, which cannot be created twice or deleted on its own; the last apex NS cannot be deleted; a name with a CNAME has no other record and only one CNAME; no two records share name, type and canonical content. Warnings let the write through and are returned with the response: records of one name and type with different TTLs, `NS`, `MX` or `SRV` targets that are CNAME owners or have no address record in the zone, names below a zone cut, `TXT` text longer than 255 bytes (served as several strings).
The zone page can repair an existing broken SOA set by editing a misplaced SOA or deleting an extra SOA. If a conflicting CNAME blocks the repair, delete that CNAME first. To restore a missing SOA, use a merge import containing an apex SOA.
The zone check (API, UI and `check` command) reports every row the plugin cannot serve correctly.
| Severity | Codes |
@@ -133,7 +135,7 @@ Migrations are embedded SQL files (`migrations/001_initial.sql`, ...) applied in
| `<prefix>webui_zone_delegations` | `zone`, `user_id`, `created_at`, `created_by` |
| `<prefix>webui_audit` | the audit rows (see [Audit](#audit)) |
All times are UTC. Rows of the users table are never deleted, so the foreign keys from sessions, delegations and audit rows always resolve. Audit rows have no foreign key to the records table, so deleted records keep their history.
All times are UTC. Rows of the users table are never deleted, so the foreign keys from sessions, delegations and audit rows always resolve. Audit rows have no foreign key to the records table, so deleted records keep their history. The audit `record_id` column is `BIGINT` to preserve IDs across the full range of an `INT UNSIGNED` records table.
## Configuration