NETWAYS / NETWAYS/ansible-collection-elasticstack
[Feature]: Allow bringing your own certificates for Elasticsearch
Nobody has claimed this yet.
- Dominant language
- Jinja
- Stars
- 14
- Forks
- 11
- Avg merge
- 1d 47m
- Merged PRs (30d)
- 6
Description
Describe the feature request
Current state
The elasticsearch role always uses certificates generated by elasticsearch-certutil.
elasticsearch.yml hardcodes the per-node p12 for both layers
(xpack.security.transport.ssl.* and xpack.security.http.ssl.* →
certs/<host>.p12). There are no variables to use your own certificates or a
corporate/public CA.
Elasticsearch supports it
Using elasticsearch-certutil is not required — Elasticsearch accepts PEM
(certificate/key/certificate_authorities) or a keystore for both the transport
and HTTP layers. The beats role already exposes this via beats_tls_*; elasticsearch
does not.
Goal
Add variables so users can supply their own certificates / CA for Elasticsearch
(HTTP and transport layers) instead of the certutil-generated ones. All nodes must
share the same CA.
Safe defaults (non-breaking)
Default keeps today's certutil behaviour; the new options are additive.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Inspect the Elasticsearch role's elasticsearch.yml template and compare its certificate handling with the Beats role variables named beats_tls_*. Trace the role defaults and templates to see where transport and HTTP TLS settings are generated. Done means users can provide PEM or keystore certificates and a shared CA for both layers, while the existing certutil behavior remains the default.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ansible
- Domain
- infrastructure, security
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100