From 633b8f0bec203329d658071142bb0cc7011c4fc8 Mon Sep 17 00:00:00 2001 From: Bernd Ahlers Date: Wed, 21 Feb 2024 17:14:21 +0100 Subject: [PATCH 1/2] 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 From fcac6a6b9f79c263b40f42e20e7e4fa7c9291675 Mon Sep 17 00:00:00 2001 From: Bernd Ahlers Date: Wed, 21 Feb 2024 17:15:52 +0100 Subject: [PATCH 2/2] Add changelog file --- changelog/unreleased/pr-491.toml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 changelog/unreleased/pr-491.toml diff --git a/changelog/unreleased/pr-491.toml b/changelog/unreleased/pr-491.toml new file mode 100644 index 00000000..346a03e1 --- /dev/null +++ b/changelog/unreleased/pr-491.toml @@ -0,0 +1,4 @@ +type = "f" +message = "Fix default permissions on `/etc/graylog/sidecar/sidecar.yml` file." + +pulls = ["491"]