-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG][OpenSearch] Can't use my own certificates mounted as secrets in the opensearch.yml #180
Comments
Is that solved @Oznup ,could you check if there is '\n' at the end of the pem file? |
Close this for now as there is no response for some time. Thanks. |
We're having the same issue. |
You need to convert the key to This is covered in the documentation here https://opensearch.org/docs/latest/security-plugin/configuration/generate-certificates/ |
@smlx I believe with these PRs we can also use pkcs1: |
Does that mean I can't use elliptic curve certificates? |
For those who need it. I had to use the following conf in cert-manager: spec:
privateKey:
algorithm: RSA
size: 2048
encoding: PKCS8
rotationPolicy: Always |
smh, I figured it only can do RSA. What a shame. |
Hello,
First of all, congratulations for this beautiful fork ^^
I've tried it with the demo configuration and everything is working well.
Now, I try to use a more production ready configuration, and then use the certificates registered in secrets (created by cert-manager).
To do so, I use extraVolumes and extraVolumesMounts (I've tried secretMounts, but I don't have better results) to mount my certificates this way :
On startup, opensearch crashes with the following stacktrace :
If I cat the file in the container by typing
kubectl exec opensearch-cluster-master-0 -- cat /usr/share/opensearch/config/opensearch-key.pem
I get the RSA private key which looks like this
And if I compare it to the key in my cert-manager built secret :
kubectl get secret opensearch-secret -o jsonpath="{.data['tls\.key']}" | base64 -d
I get the same.
Here is my opensearch-values.yaml file :
What am I missing ?
Thanks in advance for support :)
The text was updated successfully, but these errors were encountered: