Skip to content
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

Systemd-entrypoint warnings in wazuh indexer #2046

Closed
juliamagan opened this issue Jan 16, 2023 · 1 comment
Closed

Systemd-entrypoint warnings in wazuh indexer #2046

juliamagan opened this issue Jan 16, 2023 · 1 comment

Comments

@juliamagan
Copy link
Member

Wazuh version Install type Platform
4.4.0-40402 Indexer Amazon Linux 2 (Demo environment)

During the testing performed wazuh/wazuh#15932 (comment), we have found the following warnings:

Jan 16 09:24:09 X.X.X.X systemd-entrypoint[3335]: WARNING: A terminally deprecated method in java.lang.System has been called
Jan 16 09:24:09 X.X.X.X systemd-entrypoint[3335]: WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.Security (file:/usr/share/wazuh-indexer/lib/opensearch-2.4.1.jar)
Jan 16 09:24:09 X.X.X.X systemd-entrypoint[3335]: WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.Security
Jan 16 09:24:09 X.X.X.X systemd-entrypoint[3335]: WARNING: System::setSecurityManager will be removed in a future release

We have seen that this issue was created to remove these warnings from the OVA.

@alberpilot
Copy link
Contributor

In order to avoid future issues in this repository I will not close this issue directly. This issue was analyzed and reported here: wazuh/wazuh#15534 and here: wazuh/wazuh#15801.

I will copy and paste the comment:

--
Regarding the 🟡 comment here: wazuh/wazuh#15534 (comment)

This is explained here: elastic/elasticsearch#80344 (comment), quoting:

Elasticsearch has used the Java Security Manager for many years now in order to limit the actions the server and the plugins can make.

The JDK maintainers proposed in JEP 411 to deprecate and remove the Security Manager. The warnings you see here are part of the deprecation message. We (Elasticsearch) are aware that the Security Manager emits such warnings starting Java 17 (which is used by elasticsearch 7.15.1).

This warning is safe to ignore. We are working on a plan to replace the deprecated methods. We are also considering ways to convey the same information but make the warning look less dire.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants