问题描述
我在试图弄清楚我的选择是什么时感到迷茫.Apache 的程序员指南和管理员指南没有详细说明任何实质性内容.我的 O'Reilly Zookeeper 书几乎没有谈到安全性……我错过了什么吗?我希望通过 google 找到有关验证客户端连接、授权操作以及加密 Zookeeper 和客户端之间发送的消息的教程.
I feel lost trying to figure out what my options are. Apache's programmers guide and administrators guide do not detail anything substantial. My O'Reilly Zookeeper book barely talks about security... did I miss something? I was hoping to find tutorials through google about authenticating client connections, authorizing actions, and encrypting messages sent between zookeepers and client.
推荐答案
我遇到了很多麻烦,但我想通了,底部的链接对我有很大帮助.
I had a lot of trouble but I figured it out and the links at the bottom where a huge help to me.
这段代码(使用 Curator)很难弄清楚:
This code (using Curator) was something hard to figure out:
List<ACL> myAclList = new ArrayList<ACL>();
aclList.add(new ACL(ZooDefs.Perms.ALL, ZooDefs.Ids.AUTH_IDS));
client.create(withACL(myAclList)).forPath(myPath);
如果我正确设置了 zookeeper 配置,那么它将强制只允许 AUTH_IDS 访问我的 ZNode.
If I setup the zookeeper configuration correctly, then it will enforce that only the AUTH_IDS will be allowed to access my ZNode.
官方文档,我的邮件"http://mail-archives.apache.org/mod_mbox/zookeeper-user/201508.mbox/%3CCA%2B%3DgZKDfOXpUq9X%2BfD5gFcUsiLk%2B6Py5gLwFgeQGONn4NRMd9Q%40mail%3Elow">列出 Q2,我发现有用的 JIRA,但有些项目是过时了
这篇关于保护动物园管理员,从哪里开始?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!