Hi there!
i have troubles to run securityadmin.sh after updating opensearch from version 1.2x to 2.0.1. I had no problems with the same certificate on previous version. Only CommonName is given. No Organization or State and so on
Return →
Security Admin v7
Will connect to localhost:9200 … done
Connected as null
ERR: null is not an admin user
Seems you use a client certificate but this one is not registered as admin_dn
Make sure opensearch.yml on all nodes contains:
plugins.security.authcz.admin_dn:
Connected as null
ERR: null is not an admin user
Seems you use a client certificate but this one is not registered as admin_dn
Make sure opensearch.yml on all nodes contains:
plugins.security.authcz.admin_dn:
- "null"
Not sure why there is a “/” before the CN, seems strange to me, I would need to check how that cert is generated.
I wonder if the blank space after the “=” is could possibly be an issue?
nope sorry, I made a downgrade to version 1.3.3. There was another problem with opensearch-dashboards and the rollover process, Some fields didn’t apperead when an Index was chosen.
Thanks @pablo for sharing that information. I am using crt and key file for the certificates, I am wondering if something changed and now only pem files are accepted.
Therefore, I suspect that the reported issue could be related to your admin cert creation workflow.
Could you tell me how your admin cert was generated?
In my repro I’ve used the script from OpenSearch documentation.
@pablo, we just deploy the package contents and have a wrapper scripts that launches opensearch. We also have a java application that takes care of the certificate generation.
I also tried to generate the certs with the script from the OpenSearch documentation, and got the same error. I wonder what is special about the certificate generation that causes the previous one to not work.
I am in the middle of migration from OpenDistro to OpenSearch 2.1.0
I am using same certificates in OpenDistro it works without any issue.
In OpenSearch 2.1.0 I am getting
Security Admin v7
Will connect to localhost:9200 … done
Connected as null
ERR: null is not an admin user
Seems you use a client certificate but this one is not registered as admin_dn
Make sure opensearch.yml on all nodes contains:
plugins.security.authcz.admin_dn:
@florian@conicob I’ve just tested with 1.3.0 and 2.0.1 with plugins.security.ssl.http.clientauth_mode set to NONE and in 1.3.0 I had no issues with execution of securityadmin.sh script.
Hi @pablo
In our environment where I have tested v2.0.1 the plugins.security.ssl.http.clientauth_mode was set to “OPTIONAL”. I’m not sure if I had tried it with “NONE”. But I hope this not the final solution.
The certs are generated with the cert-manager.
Thanks for your answers. When there is more time I’ll try it again and also have a deeper look on the generated certs.
@pablo , @florian, sorry for the delay reporting back here.
I removed the plugins.security.ssl.http.clientauth_mode from the config altogether as suggested above, and I was able to run the security-admin script, as well as start the OpenSearch properly. I have not yet fully tested the functionality, but I have a working environment now.
Thanks!