mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 11:08:10 +00:00
VAULT-18157: Audit events: Log Test Message (#22263)
* manually crank the nodes to log a test message (if we have them configured) * try to extract the duplicated manual processing of nodes
This commit is contained in:
@@ -224,6 +224,12 @@ func (b *Backend) LogResponse(ctx context.Context, in *logical.LogInput) error {
|
||||
}
|
||||
|
||||
func (b *Backend) LogTestMessage(ctx context.Context, in *logical.LogInput, config map[string]string) error {
|
||||
// Event logger behavior - manually Process each node
|
||||
if len(b.nodeIDList) > 0 {
|
||||
return audit.ProcessManual(ctx, in, b.nodeIDList, b.nodeMap)
|
||||
}
|
||||
|
||||
// Old behavior
|
||||
var buf bytes.Buffer
|
||||
|
||||
temporaryFormatter, err := audit.NewTemporaryFormatter(config["format"], config["prefix"])
|
||||
|
||||
Reference in New Issue
Block a user