mirror of https://github.com/status-im/consul.git
Add OSS changes for specifying audit log permission mode
This commit is contained in:
parent
b2480d229f
commit
11f1f3fe34
|
@ -786,6 +786,7 @@ type AuditSink struct {
|
|||
Format *string `mapstructure:"format"`
|
||||
Path *string `mapstructure:"path"`
|
||||
DeliveryGuarantee *string `mapstructure:"delivery_guarantee"`
|
||||
Mode *string `mapstructure:"mode"`
|
||||
RotateBytes *int `mapstructure:"rotate_bytes"`
|
||||
RotateDuration *string `mapstructure:"rotate_duration"`
|
||||
RotateMaxFiles *int `mapstructure:"rotate_max_files"`
|
||||
|
|
|
@ -867,6 +867,7 @@ Valid time units are 'ns', 'us' (or 'µs'), 'ms', 's', 'm', 'h'."
|
|||
the rules governing how audit events are written.
|
||||
The following keys are valid:
|
||||
- `best-effort` - Consul only supports `best-effort` event delivery.
|
||||
- `mode` - The permissions to set on the audit log files.
|
||||
- `rotate_duration` - Specifies the
|
||||
interval by which the system rotates to a new log file. At least one of `rotate_duration` or `rotate_bytes`
|
||||
must be configured to enable audit logging.
|
||||
|
|
Loading…
Reference in New Issue