import "v.io/x/ref/lib/security/audit"
Package audit implements a mechanism for writing auditable events to an audit log.
Typical use would be for tracking sensitive operations like private key usage (NewPrincipal), or sensitive RPC method invocations.
NewPrincipal returns a security.Principal implementation that logs all private key operations of 'wrapped' to 'auditor' (i.e., all calls to BlessSelf, Bless, MintDischarge and Sign).
Auditor is the interface for writing auditable events.
type Entry struct { // Method being invoked. Method string // Arguments to the method. // Any sensitive data in the arguments should not be included, // even if the argument was provided to the real method invocation. Arguments []interface{} // Result of the method invocation. // A common use case is to audit only successful method invocations. Results []interface{} // Timestamp of method invocation. Timestamp time.Time }
Entry is the information logged on each auditable event.
Package audit imports 6 packages (graph) and is imported by 8 packages. Updated 2020-10-22. Refresh now. Tools for package owners.