Documentation
¶
Overview ¶
Package auditlog provides audit logging functionality for Warden service. It wraps the audit-kit library to provide convenient logging methods for user operations, access control events, and configuration changes.
Index ¶
- func GetLogger() *audit.Logger
- func Init(storage audit.Storage, cfg *audit.Config)
- func LogAccessDenied(ctx context.Context, userID, resource, ip, reason string)
- func LogAccessGranted(ctx context.Context, userID, resource, ip string)
- func LogConfigChange(ctx context.Context, configKey, oldValue, newValue, ip, userAgent string)
- func LogUserCreate(ctx context.Context, userID, ip string)
- func LogUserDelete(ctx context.Context, userID, ip string)
- func LogUserQuery(ctx context.Context, userID, identifier, identifierType, ip string, ...)
- func LogUserUpdate(ctx context.Context, userID, ip string)
- func Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogAccessDenied ¶
LogAccessDenied records an access denied event
func LogAccessGranted ¶
LogAccessGranted records an access granted event
func LogConfigChange ¶
LogConfigChange records a configuration change event (like log level)
func LogUserCreate ¶
LogUserCreate records a user creation event
func LogUserDelete ¶
LogUserDelete records a user deletion event
func LogUserQuery ¶
func LogUserQuery(ctx context.Context, userID, identifier, identifierType, ip string, success bool, reason string)
LogUserQuery records a user query event
func LogUserUpdate ¶
LogUserUpdate records a user update event
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.