Skip to content

Commit

Permalink
Audit: ensure 'prefix' is supplied to socket audit backends (#25004)
Browse files Browse the repository at this point in the history
* ensure 'prefix' is supplied to socket audit backends

* changelog
  • Loading branch information
Peter Wilson authored Jan 23, 2024
1 parent 24e5c2c commit 58ef5fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions builtin/audit/socket/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ func Factory(_ context.Context, conf *audit.BackendConfig, headersConfig audit.H

opts := []audit.Option{
audit.WithHeaderFormatter(headersConfig),
audit.WithPrefix(conf.Config["prefix"]),
}

err = b.configureFormatterNode(cfg, opts...)
Expand Down
3 changes: 3 additions & 0 deletions changelog/25004.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
audit/socket: Provide socket based audit backends with 'prefix' configuration option when supplied.
```

0 comments on commit 58ef5fe

Please sign in to comment.