-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaudit_entry.schema.json
More file actions
19 lines (19 loc) · 970 Bytes
/
Copy pathaudit_entry.schema.json
File metadata and controls
19 lines (19 loc) · 970 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/Aliipou/authgate-kernel/spec/audit_entry.schema.json",
"title": "AuditEntry",
"description": "One line of an authgate JSONL audit log. SHA-256 hash-chained.",
"type": "object",
"required": ["ts", "action_id", "permitted", "confidence", "violations", "warnings", "prev_hash", "entry_hash"],
"properties": {
"ts": { "type": "number", "description": "Unix timestamp (float seconds)." },
"action_id": { "type": "string" },
"permitted": { "type": "boolean" },
"confidence": { "type": "number", "minimum": 0.0, "maximum": 1.0 },
"violations": { "type": "array", "items": { "type": "string" } },
"warnings": { "type": "array", "items": { "type": "string" } },
"signature": { "type": ["string", "null"] },
"prev_hash": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
"entry_hash": { "type": "string", "pattern": "^[0-9a-f]{64}$" }
}
}