虽然已启用,但点燃认证值显示为“ off”

问题描述 投票:0回答:1

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

[2019-11-30 20:31:05,645][INFO ][main][IgniteKernal] Security status [authentication=off, tls/ssl=off]
xml security ignite gridgain
1个回答
0
投票

这是因为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不提供现成的授权功能。但是,对于此类高级安全功能,您可以实施GridSecurityProcessor接口作为自定义插件的一部分,或者选择使用这样的第三方实现。

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

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

© www.soinside.com 2019 - 2024. All rights reserved.