gpt4 book ai didi

encryption - 向 Solr/lucene 索引添加加密

转载 作者:行者123 更新时间:2023-12-04 12:40:03 24 4
gpt4 key购买 nike

我目前正在使用 Solr 对一些敏感记录执行搜索服务。

由于 Solr/lucene 通过在磁盘上以纯文本形式存储敏感信息的倒排索引来提供快速搜索,因此需要对这些索引文件进行加密,以便未经授权的人无法绕过系统的安全性来访问它们。

我发现 Apache JIRA 上有类似的补丁打开 AES encrypted directoryCodec for index-level encryption .

AES 加密目录看起来很有希望,但由于我使用的是较新版本,因此此补丁已针对 lucene 3.1 实现,我不确定此补丁是否可以与 lucene 5 或更高版本一起使用。

我想知道是否有办法实现加密索引的安全措施,或者是否可以编写一些自定义插件来加密/解密 I/O 级别的索引(即 FsDirectory)?

最佳答案

LUCENE-6966评论区的讨论你分享的真的很有趣。我会用这个推理 quote of Robert Muir Solr 中没有任何东西,而且可能永远不会。

More importantly, with file-level encryption, data would reside in an unencrypted form in memory which is not acceptable to our security team and, therefore, a non-starter for us.


这很有说服力。你应该解雇你的安全团队!你正在浪费你的时间担心这个:如果你使用 lucene,你的数据将在内存中,以明文形式,以你无法控制的方式,对此你无能为力!
试图保证比“休息”更好的事情是一件严肃的事情,听起来您的团队已经超出了他们的能力。

因此,您应该考虑对 Solr 在操作系统级别使用的存储进行加密。这对于 Solr 应该是透明的。但是如果有人进入您的系统,他应该无法复制 Solr 数据。
这也是文章 Encrypting Solr/Lucene indexes的结论来自 Lucidwors 的 Erick Erickson 最后抽签

The short form is that this is one of those ideas that doesn't stand up to scrutiny. If you're concerned about security at this level, it's probably best to consider other options, from securing your communications channels to using an encrypting file system to physically divorcing your system from public networks. Of course, you should never, ever, let your working Solr installation be accessible directly from the outside world, just consider the following: http://server:port/solr/update?stream.body=<delete><query>*:*</query></delete>!

关于encryption - 向 Solr/lucene 索引添加加密,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36604551/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com