Hi, we would like to implement a rotation of P12-certificates using github workflows.
Let's say you have a CA certificate. Would it be possible, in a github workflow, to use a public Elasticsearch docker image to create password signed P12 certificates?
The CA certificate will be fetched from Azure Key Vault and mounted to a folder on a private github runner. Then the CA will be mounted to a folder on the docker container to be used to create P12 certificates. Is it possible? And how would that docker command look like?
Yes, it's for configuring elastic with xpack security. I'm trying to automate configuring elastic as much as possible. For example using github workflows and ansible to rotate certificates.
Not sure how this related to any tool in the stack.
How you create or update the certificates used doesn't matter, you just need to make sure that the configuration is pointing to the correct certificates, but how you do that on Github Action is unrelated to Elasticsearch.
You also do not need to use elasticsearch-certutil to create any certificates, you can for example use openssl to create it.
I have a compose that spin-ups a local SIEM using Elastic + Kibana + Fleet for some testing and I use the following to create the certificates in PEM format.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.