- test(ui): avoid a literal em dash in the em dash check - fix(cli): accept any positive int64 audit count and share the last active admin rule - fix(api): limit audit before_id to 2^53-1 - fix(api): audit unmatched api requests, bound every request body and record audit write failures - fix(ui): recheck the account in the login transaction and require existing zones on zone pages - fix(api): recheck the acting admin and the stored password hash in change transactions - fix(db): keep committed outcomes on lock release failure, narrow the records contract and trace sql statements - fix(db): make the initial migration restartable and verify the application schema - fix(auth): never move last_seen_at backwards on concurrent session touches - test(api): cover lock release failure after commit and handler tracing without secrets - fix(test): redact credentials from mysql setup errors - fix(audit): retain addressed objects on admin refusals - test(db): cover migration restarts and records contract ranges in mysql - test(api): verify account races and audit rollback in mysql - fix(auth): reject password changes after account deletion - docs: document unknown api audit entries - fix(audit): bound failure retries and redact sensitive sql parameters - fix(test): isolate docker resources and cover image cli commands - test(auth): expect unauthorized after an account deletion race - fix(db): verify application column widths and foreign keys
67 lines
2.8 KiB
HTML
67 lines
2.8 KiB
HTML
{{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}}
|
|
{{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}}
|
|
{{define "title"}}Audit{{end}}
|
|
{{define "content"}}<div class="page-head">
|
|
<h1>Audit</h1>
|
|
</div>
|
|
<section class="card" aria-labelledby="audit-filter-title">
|
|
<h2 id="audit-filter-title" class="visually-hidden">Filters</h2>
|
|
<form class="filters" id="audit-filters" novalidate>
|
|
<div class="field">
|
|
<label for="af-zone">Zone</label>
|
|
<input id="af-zone" name="zone" type="text" autocomplete="off" autocapitalize="none" spellcheck="false">
|
|
</div>
|
|
<div class="field">
|
|
<label for="af-actor">Actor</label>
|
|
<input id="af-actor" name="actor" type="text" autocomplete="off" autocapitalize="none" spellcheck="false">
|
|
</div>
|
|
<div class="field">
|
|
<label for="af-operation">Operation</label>
|
|
<select id="af-operation" name="operation">
|
|
<option value="">Any operation</option>
|
|
<option>account_read</option><option>login</option><option>logout</option><option>password_change</option>
|
|
<option>zone_list</option><option>zone_read</option><option>zone_create</option><option>zone_delete</option>
|
|
<option>record_list</option><option>record_create</option><option>record_update</option><option>record_delete</option><option>record_bulk_delete</option><option>soa_update</option>
|
|
<option>zone_check</option><option>check_all</option>
|
|
<option>zone_export</option><option>zone_import_preview</option><option>zone_import</option>
|
|
<option>delegation_list</option><option>delegation_grant</option><option>delegation_revoke</option>
|
|
<option>user_list</option><option>user_read</option><option>user_create</option><option>user_role</option><option>user_password</option><option>user_delete</option>
|
|
<option>audit_read</option><option>api_unknown</option>
|
|
</select>
|
|
</div>
|
|
<div class="field">
|
|
<label for="af-kind">Kind</label>
|
|
<select id="af-kind" name="kind">
|
|
<option value="">Reads and changes</option>
|
|
<option value="read">Reads</option>
|
|
<option value="change">Changes</option>
|
|
</select>
|
|
</div>
|
|
<div class="field">
|
|
<label for="af-outcome">Outcome</label>
|
|
<select id="af-outcome" name="outcome">
|
|
<option value="">Any outcome</option>
|
|
<option value="success">Success</option>
|
|
<option value="error">Error</option>
|
|
</select>
|
|
</div>
|
|
<div class="actions">
|
|
<button type="submit" class="btn btn-primary">Apply filters</button>
|
|
<button type="reset" class="btn" id="af-reset">Reset</button>
|
|
</div>
|
|
</form>
|
|
</section>
|
|
<div class="table-wrap">
|
|
<table class="table" id="audit-table">
|
|
<thead>
|
|
<tr><th scope="col">Time (UTC)</th><th scope="col">Actor</th><th scope="col">Origin</th><th scope="col">Operation</th><th scope="col">Status</th><th scope="col">Target</th><th scope="col">Details</th></tr>
|
|
</thead>
|
|
<tbody id="audit-body"></tbody>
|
|
</table>
|
|
</div>
|
|
<p class="muted" id="audit-status" role="status">Loading...</p>
|
|
<div class="actions">
|
|
<button type="button" class="btn" id="audit-more" hidden>Load older rows</button>
|
|
</div>
|
|
{{end}}
|