fix: close record repair and verification gaps
This commit is contained in:
1 parent
9251c85fd8
commit
adff599e08
27 files changed
+787
-153
No files matched your search
@@ -270,7 +270,7 @@ CREATE TABLE `coredns_webui_audit` (
|
||||
`status` SMALLINT NULL,
|
||||
`error` VARCHAR(255) NULL,
|
||||
`zone` VARCHAR(255) NULL,
|
||||
`record_id` INT NULL,
|
||||
`record_id` BIGINT NULL,
|
||||
`target_user_id` INT NULL,
|
||||
`before_value` JSON NULL,
|
||||
`after_value` JSON NULL,
|
||||
@@ -284,7 +284,7 @@ CREATE TABLE `coredns_webui_audit` (
|
||||
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci;
|
||||
```
|
||||
|
||||
All times are UTC. Rows of `<prefix>webui_users` are never deleted (section 8), so, as with the tokens referenced by the audit table of `dpsapi`, 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 `<prefix>webui_users` are never deleted (section 8), so, as with the tokens referenced by the audit table of `dpsapi`, 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 holds the full ID range of an `INT UNSIGNED` records table.
|
||||
|
||||
### Grants
|
||||
|
||||
@@ -527,7 +527,7 @@ All under `/api/v1`, session required (`401` JSON otherwise), request bodies `ap
|
||||
| `DELETE` | `/users/{username}` | admin | `user_delete` | body `{"confirm": "<username>"}`, sets `deleted_at`, ends the user's sessions |
|
||||
| `GET` | `/audit` | session | `audit_read` | visible rows; `zone`, `actor`, `operation`, `kind` (`read` or `change`), `outcome` (`success` for statuses below `400`, `error` otherwise), `before_id`, `limit` (1 to 200, default 50) |
|
||||
|
||||
`{zone}` is the zone name with or without the trailing dot. A record id that does not belong to the zone in the path is `404`. Changes to a deleted user are `404`. `DELETE /zones/{zone}/users/{username}` also revokes delegations of zones that no longer exist.
|
||||
`{zone}` is the zone name with or without the trailing dot. Record IDs range from 1 to 4294967295. A record id that does not belong to the zone in the path is `404`. Changes to a deleted user are `404`. `DELETE /zones/{zone}/users/{username}` also revokes delegations of zones that no longer exist.
|
||||
|
||||
Record representation:
|
||||
|
||||
|
||||
Reference in new issue
Block a user