From 11f1f3fe34b7873253ce142db2fc75e154fb052e Mon Sep 17 00:00:00 2001 From: Blake Covarrubias Date: Thu, 29 Jul 2021 15:44:27 -0700 Subject: [PATCH] Add OSS changes for specifying audit log permission mode --- agent/config/config.go | 1 + website/content/docs/agent/options.mdx | 1 + 2 files changed, 2 insertions(+) diff --git a/agent/config/config.go b/agent/config/config.go index 6d511df047..8b4578b49a 100644 --- a/agent/config/config.go +++ b/agent/config/config.go @@ -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"` diff --git a/website/content/docs/agent/options.mdx b/website/content/docs/agent/options.mdx index 6d6a11aea7..f4c0a2d73c 100644 --- a/website/content/docs/agent/options.mdx +++ b/website/content/docs/agent/options.mdx @@ -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.