Skip to content

Commit 9f73f78

Browse files
authored
Merge pull request #576 from kajinamit/sentinel-perm-fix
Do not make `sentinel.conf` world readable
2 parents 3d1a4c2 + e4facba commit 9f73f78

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

REFERENCE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1630,7 +1630,7 @@ Data type: `Stdlib::Filemode`
16301630

16311631
Permissions of config file.
16321632

1633-
Default value: `'0644'`
1633+
Default value: `'0640'`
16341634

16351635
##### <a name="-redis--sentinel--conf_template"></a>`conf_template`
16361636

manifests/sentinel.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163
Optional[Variant[String[1], Sensitive[String[1]]]] $auth_pass = undef,
164164
Stdlib::Absolutepath $config_file = $redis::params::sentinel_config_file,
165165
Stdlib::Absolutepath $config_file_orig = $redis::params::sentinel_config_file_orig,
166-
Stdlib::Filemode $config_file_mode = '0644',
166+
Stdlib::Filemode $config_file_mode = '0640',
167167
String[1] $conf_template = 'redis/redis-sentinel.conf.epp',
168168
Boolean $daemonize = $redis::params::sentinel_daemonize,
169169
Boolean $protected_mode = true,

spec/classes/redis_sentinel_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
it {
9696
is_expected.to contain_file(config_file_orig).
9797
with_ensure('file').
98-
with_mode('0644').
98+
with_mode('0640').
9999
with_owner(redis).
100100
with_content(expected_content)
101101
}

0 commit comments

Comments
 (0)