From 633b8f0bec203329d658071142bb0cc7011c4fc8 Mon Sep 17 00:00:00 2001 From: Bernd Ahlers Date: Wed, 21 Feb 2024 17:14:21 +0100 Subject: [PATCH] Fix default permissions on /etc/graylog/sidecar/sidecar.yml file --- dist/recipe.rb | 1 + dist/recipe32.rb | 1 + dist/recipearm64.rb | 1 + dist/recipearmv7.rb | 1 + 4 files changed, 4 insertions(+) diff --git a/dist/recipe.rb b/dist/recipe.rb index b6cda8ae..162843a6 100644 --- a/dist/recipe.rb +++ b/dist/recipe.rb @@ -27,6 +27,7 @@ def install lib('graylog-sidecar').install '../../collectors/filebeat/linux/x86_64/filebeat' lib('graylog-sidecar').install '../../collectors/auditbeat/linux/x86_64/auditbeat' etc('graylog/sidecar').install '../../../sidecar-example.yml', 'sidecar.yml' + etc('graylog/sidecar/sidecar.yml').chmod(0600) var('lib/graylog-sidecar/generated').mkdir var('log/graylog-sidecar').mkdir var('run/graylog-sidecar').mkdir diff --git a/dist/recipe32.rb b/dist/recipe32.rb index a1385237..87499d85 100644 --- a/dist/recipe32.rb +++ b/dist/recipe32.rb @@ -27,6 +27,7 @@ def install lib('graylog-sidecar').install '../../collectors/filebeat/linux/x86/filebeat' lib('graylog-sidecar').install '../../collectors/auditbeat/linux/x86/auditbeat' etc('graylog/sidecar').install '../../../sidecar-example.yml', 'sidecar.yml' + etc('graylog/sidecar/sidecar.yml').chmod(0600) var('lib/graylog-sidecar/generated').mkdir var('log/graylog-sidecar').mkdir var('run/graylog-sidecar').mkdir diff --git a/dist/recipearm64.rb b/dist/recipearm64.rb index b96b4a4e..de8e3970 100644 --- a/dist/recipearm64.rb +++ b/dist/recipearm64.rb @@ -27,6 +27,7 @@ def install lib('graylog-sidecar').install '../../collectors/filebeat/linux/arm64/filebeat' lib('graylog-sidecar').install '../../collectors/auditbeat/linux/arm64/auditbeat' etc('graylog/sidecar').install '../../../sidecar-example.yml', 'sidecar.yml' + etc('graylog/sidecar/sidecar.yml').chmod(0600) var('lib/graylog-sidecar/generated').mkdir var('log/graylog-sidecar').mkdir var('run/graylog-sidecar').mkdir diff --git a/dist/recipearmv7.rb b/dist/recipearmv7.rb index e0b2d736..41c13d1b 100644 --- a/dist/recipearmv7.rb +++ b/dist/recipearmv7.rb @@ -25,6 +25,7 @@ def build def install bin.install 'graylog-sidecar' etc('graylog/sidecar').install '../../../sidecar-example.yml', 'sidecar.yml' + etc('graylog/sidecar/sidecar.yml').chmod(0600) var('lib/graylog-sidecar/generated').mkdir var('log/graylog-sidecar').mkdir var('run/graylog-sidecar').mkdir