Commit Graph

13 Commits

Author SHA1 Message Date
Antoine Cotten ba06c5458a
chore(setup): Rename helpers.sh to lib.sh
Based on a comment from #821
2023-02-17 12:37:42 +01:00
Antoine Cotten 58a77fcdbe
feat(setup): Disambiguate setup skip message
Closes #797
2022-12-06 11:37:12 +01:00
Antoine Cotten 87f5894f65
feat(ext/beats): Use unprivileged publish users 2022-11-22 11:37:50 +01:00
Antoine Cotten 141b38a083
feat(ext/metricbeat): Further drop perms for monitoring
The built-in 'remote_monitoring_user' has full permissions on monitoring
indices, which is more than Metricbeat needs to collect metrics from
remote components.
2022-11-18 21:47:46 +01:00
Antoine Cotten 654a18dcdb
feat(ext/beats): Monitor using unprivileged user
Both the collection and storage of monitoring data are now performed
using the unpriviliged built-in users 'remote_monitoring_user' and
'beats_system' respectively, instead of the 'elastic' superuser.
2022-11-18 17:10:20 +01:00
Antoine Cotten a1b5e0b858
chore(setup): Mount scripts instead of baking into img
Allows switching between branches of compatible stack versions (e.g.
main <-> tls) without having to rebuild the setup image.
2022-11-17 21:44:00 +01:00
Antoine Cotten 54d3f71799
fix(setup): Ensure built-in users exist before proceeding
Fixes #786
2022-11-17 12:12:29 +01:00
Antoine Cotten f93dfe007e
feat: Log setup error in case of failed curl command 2022-06-21 15:57:56 +02:00
Antoine Cotten 82b1e653b0
fix(logstash): Adjust role for ECS compatibility
'ecs_compatibility' is now on by default, therefore Logstash indices are
created with the naming pattern "ecs-logstash-*" when data streams are
disabled ('data_stream => false').
2022-03-02 17:13:24 +01:00
Antoine Cotten 02dabf6fb1
fix(logstash): Allow managing "logstash" index
When data streams are disabled in Logstash's "elasticsearch" output
('data_stream => false'), Logstash falls back to managing "logstash-*"
indices and creates an index template with ILM enabled.
In this process, a write index for the alias "logstash" is created. This
step requires the "manage" privilege on the "logstash" alias.

Fixes #679
2022-03-02 17:13:16 +01:00
Antoine Cotten a204596be7
fix: Explicitly make entrypoint of 'setup' service executable
The existing executable permission might not be preserved when users
download docker-elk as a Zip file.

Fixes #676
2022-02-28 09:46:27 +01:00
Antoine Cotten eb1c6fa27e
chore: Rename ELK_VERSION to ELASTIC_VERSION
More appropriate name considering that extensions, which aren't part of
the "ELK" stack, also rely on this variable.
2022-02-28 09:10:30 +01:00
Antoine Cotten 9877b39900
Automate management of required roles and user passwords (#671) 2022-02-21 11:19:43 +01:00