Ignite 身份验证值显示 "off" 尽管已启用

Ignite authentication value showing "off" though it is enabled

我通过在 Spring XML 配置文件中将 IgniteConfiguration 的 authenticationEnabled 属性 设置为 true 来在服务器上启用身份验证,并且我已经设置了 Ignite 持久性。但是在检查点燃日志时,它仍然显示身份验证已关闭。

[2019-11-30 20:31:05,645][INFO ][main][IgniteKernal] Security status [authentication=off, tls/ssl=off]

这是因为 Ignite 高级安全性只为瘦客户端提供身份验证。它不是 GridSecurityProcessor 的真正实现。

这里是使用的代码:

@Override public boolean enabled() {
    if(processor != null)
        return processor.enabled();

    return false;
}

因此,如果未设置 GridSecurityProcessor,则它将始终提供 false。

请继续阅读:

https://apacheignite.readme.io/docs/advanced-security

Apache Ignite does not provide authorization features out-of-the-box. However, for such advanced level security features, you can implement the GridSecurityProcessor interface as part of a custom plugin or choose to use a 3rd party implementation such as this one.

但是,您可以检查何时尝试使用 JDBC 进行连接,然后需要用户名和密码。

此外,您可以尝试在 Internet 上找到一些关于如何实施它的自定义指南,例如 https://medium.com/@aamargajbhiye/how-to-secure-apache-ignite-cluster-cd595b99ec5e