Documentation
¶
Overview ¶
Package audit provides an append-only, in-enclave audit log.
Every claim and verify the loop performs emits one immutable line recording who/what/when plus a provenance flag marking machine-authored actions. The log is a local file only; nothing here makes a network call.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct {
// Time is when the action occurred (UTC).
Time time.Time `json:"time"`
// Actor identifies who performed the action (e.g. "aegis-loop").
Actor string `json:"actor"`
// Action is the kind of event.
Action Action `json:"action"`
// RequirementID is the affected requirement, if any.
RequirementID string `json:"requirement_id,omitempty"`
// Result is a free-form outcome (e.g. "pass", "fail", "blocked").
Result string `json:"result,omitempty"`
// MachineAuthored flags actions authored by the machine rather than a human.
MachineAuthored bool `json:"machine_authored"`
// Detail is optional human-readable context.
Detail string `json:"detail,omitempty"`
}
Entry is a single immutable audit record.
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
Log is an append-only audit log backed by an io.Writer. It is safe for concurrent use.
Click to show internal directories.
Click to hide internal directories.