在多用户环境中安全使用Kibana和Elasticsearch的解决方案
A solution for secure use of Kibana and Elasticsearch in multi-user environment
摘要:
监控对于检查IT服务的状态、活动或资源使用情况是必不可少的。Kibana和Elasticsearch的组合用于许多地方的监测,如KEK,CC-IN 2 P3,CERN以及非HEP社区。Kibana为丰富的可视化提供了一个Web界面,Elasticsearch是一个可扩展的分布式搜索引擎。但是,默认情况下,这些工具不支持身份验证和授权功能。在多个用户共享单个Kibana和Elasticsearch服务的情况下,任何可以访问Kibana的用户都可以从Elasticsearch检索其他用户的信息。在多用户环境中,为了保护自己的数据不被他人访问,或者在一个组中共享部分数据,需要细粒度的访问控制。CERN云服务组通过Elasticsearch和Kibana为每个用户提供了云利用率仪表板。他们部署了一个自制的Elasticsearch插件,以限制基于CERN单点登录系统认证的用户的数据访问。它使每个用户都有一个单独的Kibana仪表板用于云使用,并且用户无法访问其他用户的仪表板。基于该解决方案,我们提出了一种替代方案,该方案支持基于用户/组的Elasticsearch访问控制和Kibana对象分离。它更灵活,不仅可以应用于云服务,还可以应用于其他各种情况。我们确认我们的解决方案在CC-IN 2 P3中运行良好。此外,CC-IN 2 P3的预生产平台正在建设中。我们将描述我们的解决方案,用于安全使用Kibana和Elasticsearch,包括集成身份验证,开发Kibana插件,允许Kibana对象基于用户/组分离,以及对Search Guard的贡献,这是一个Elasticsearch插件,支持基于用户/组的访问控制。我们还将描述使用Search Guard对性能的影响。
英文摘要:
Monitoring is indispensable to check status, activities, or resource usage of IT services. A combination of Kibana and Elasticsearch is used for monitoring in many places such as KEK, CC-IN2P3, CERN, and also non-HEP communities. Kibana provides a web interface for rich visualization, and Elasticsearch is a scalable distributed search engine. However, these tools do not support authentication and authorization features by default. In the case of single Kibana and Elasticsearch services shared among many users, any user who can access Kibana can retrieve other's information from Elasticsearch. In multi-user environment, in order to protect own data from others or share part of data among a group, fine-grained access control is necessary. The CERN cloud service group had provided cloud utilization dashboard to each user by Elasticsearch and Kibana. They had deployed a homemade Elasticsearch plugin to restrict data access based on a user authenticated by the CERN Single Sign On system. It enabled each user to have a separated Kibana dashboard for cloud usage, and the user could not access to other's one. Based on the solution, we propose an alternative one which enables user/group based Elasticsearch access control and Kibana objects separation. It is more flexible and can be applied to not only the cloud service but also the other various situations. We confirmed our solution works fine in CC-IN2P3. Moreover, a pre-production platform for CC-IN2P3 has been under construction. We will describe our solution for the secure use of Kibana and Elasticsearch including integration of Kerberos authentication, development of a Kibana plugin which allows Kibana objects to be separated based on user/group, and contribution to Search Guard which is an Elasticsearch plugin enabling user/group based access control. We will also describe the effect on performance from using Search Guard.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。