Skip to content

Commit 5e5f007

Browse files
GitLab Release Tools BotClemens Beck
andcommitted
Merge branch 'security-consul-rce' into 'master'
Consul RCE vulnerability `enable-script-checks` See merge request https://gitlab.com/gitlab-org/security/omnibus-gitlab/-/merge_requests/368 Merged-by: GitLab Release Tools Bot <[email protected]> Approved-by: DJ Mountney <[email protected]> Approved-by: Kevin Morrison <[email protected]> Co-authored-by: Clemens Beck <[email protected]>
2 parents e905af5 + fe80bc2 commit 5e5f007

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

files/gitlab-config-template/gitlab.rb.template

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3170,7 +3170,8 @@ external_url 'GENERATED_EXTERNAL_URL'
31703170
# consul['configuration'] = {
31713171
# 'client_addr' => nil,
31723172
# 'datacenter' => 'gitlab_consul',
3173-
# 'enable_script_checks' => true,
3173+
# 'enable_script_checks' => false,
3174+
# 'enable_local_script_checks' => true,
31743175
# 'server' => false
31753176
# }
31763177
# consul['services'] = []

files/gitlab-cookbooks/consul/libraries/consul_helper.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ def initialize(node)
1515
'client_addr' => nil,
1616
'datacenter' => 'gitlab_consul',
1717
'disable_update_check' => true,
18-
'enable_script_checks' => true,
18+
'enable_script_checks' => false,
19+
'enable_local_script_checks' => true,
1920
'node_name' => node['consul']['node_name'] || node['fqdn'],
2021
'rejoin_after_leave' => true,
2122
'server' => false,

spec/chef/cookbooks/consul/recipes/consul_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@
103103
expect(chef_run).to render_file(consul_conf).with_content { |content|
104104
expect(content).to match(%r{"datacenter":"gitlab_consul"})
105105
expect(content).to match(%r{"disable_update_check":true})
106-
expect(content).to match(%r{"enable_script_checks":true})
106+
expect(content).to match(%r{"enable_script_checks":false})
107+
expect(content).to match(%r{"enable_local_script_checks":true})
107108
expect(content).to match(%r{"node_name":"fauxhai.local"})
108109
expect(content).to match(%r{"rejoin_after_leave":true})
109110
expect(content).to match(%r{"server":false})

0 commit comments

Comments
 (0)