NETWAYS / NETWAYS/ansible-collection-elasticstack

[Feature]: Logstash — replace logstash_security with logstash_tls + logstash_authentication

Open
#529 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

component:logstash
Dominant language
Jinja
Stars
14
Forks
11
Avg merge
1d 47m
Merged PRs (30d)
6

Description

logstash_security bundles TLS, the ES-output user/password, certificate creation and ES role/user creation into one flag.

  • Remove logstash_security. Introduce:
    • logstash_tls (default from elasticstack_tls) → keystore / cacert / ssl => true in the ES output.
    • logstash_authentication (default from elasticstack_authentication) → user / password in the ES output.
  • Drop the logstash_security set_fact in tasks/main.yml.
  • Split logstash-security.ymllogstash_manage_certificates.yml + logstash_manage_users.yml.
  • Rebuild the ES-output block (elasticsearch-output.conf.j2:34-41) into three independent conditions: TLS ← logstash_tls, auth ← logstash_authentication, host resolution ← the residual full_stack / standalone (user-provided CA).

Breaking → 2.0.0. Part of #526.

Depends on: #527 (the shared masters + guard must exist first).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

First review the shared masters and guard from #527, then inspect tasks/main.yml, logstash-security.yml, logstash_manage_certificates.yml, logstash_manage_users.yml, and elasticsearch-output.conf.j2. Done means logstash_security and its set_fact are removed, TLS, authentication, and host resolution use independent conditions, and the certificate and user management responsibilities are split for the 2.0.0 breaking change.

Written by the indexing model from the issue text.

Assessment

Tech stack
elasticsearch
Domain
devops
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.