14 lines
433 B
Go
14 lines
433 B
Go
package identity
|
|
|
|
import "context"
|
|
|
|
// RecordAudit is the narrow project-internal audit port used by Sense business
|
|
// modules. It never accepts secrets and does not expose identity persistence.
|
|
func RecordAudit(ctx context.Context, actor, action, target, outcome string, metadata map[string]any) {
|
|
module := activeModule.Load()
|
|
if module == nil {
|
|
return
|
|
}
|
|
module.service.audit(ctx, actor, action, target, outcome, metadata)
|
|
}
|