Audit: ensure 'prefix' is supplied to socket audit backends (#25004)

* ensure 'prefix' is supplied to socket audit backends

* changelog
This commit is contained in:
Peter Wilson
2024-01-23 18:26:44 +00:00
committed by GitHub
parent 24e5c2c2f3
commit 58ef5fe47b
2 changed files with 4 additions and 0 deletions

View File

@@ -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...)

3
changelog/25004.txt Normal file
View File

@@ -0,0 +1,3 @@
```release-note:bug
audit/socket: Provide socket based audit backends with 'prefix' configuration option when supplied.
```