简体   繁体   English

通过HTTP连接的Cayley数据库用户和密码保护

[英]Cayley db user and password protection over HTTP connections

I am new to Cayley db. 我是Cayley DB的新手。 I am trying it for my applicaiton, and for my interest in graph db concepts. 我正在为我的应用程序以及对graph db概念的兴趣而尝试。

I have not seen anything referring to a database user or a password for accessing to a database in Cayley documentation. 在Cayley文档中,我没有看到任何有关数据库用户或密码的信息。 Moreover, drivers on npm to connect to Cayley from Nodejs does not mention anything other than host and port. 此外, npm上从Node.js 连接到Cayley的驱动程序除了主机和端口外没有提及任何其他内容。

On what level db user accounts and password protection of databases achieved in using Cayley database? 使用Cayley数据库在什么级别的数据库用户帐户和数据库密码保护上? Is that achieved on the persistence layers that Cayley depends upon, leveldb, bolt, mongodb? 是在Cayley依赖的持久层(leveldb,bolt和mongodb)上实现的吗?

As there is no other answer for that I am answering my own question myself. 因为没有其他答案,所以我自己回答自己的问题。

Since Cayley persists data in a supported by Cayley db (boltdb, levelled, mongoldb) the user accounts of the db is managed by one of those dbs and so inside their own user accounts system. 由于Cayley将数据持久保存在Cayley db(boltdb,leveld,mongoldb)支持的数据库中,因此该数据库的用户帐户由其中一个数据库管理,因此在其自己的用户帐户系统中进行管理。

On a HTTP application case which is the most common case, the HTTP server reaches the Cayley db for input/output, so, the HTTP server application code manages the authorization and authentication in access to database resources by a custom mechanism. 在最常见的HTTP应用程序案例中,HTTP服务器到达Cayley db进行输入/输出,因此,HTTP Server应用程序代码通过自定义机制管理访问数据库资源的授权和身份验证。 This end is free to choose from many. 这个目的可以从许多中自由选择。

The operating system (OS) that runs Cayley db can be configured in its own way (specific to OS) to control network access to Cayley db, separately. 可以以自己的方式(特定于OS)配置运行Cayley db的操作系统(OS),以分别控制对Cayley db的网络访问。 Most of the cases Cayley runs on the same machine as the companion HTTP server application so, OS can block the network access to the Cayley db. Cayley在大多数情况下都与配套的HTTP服务器应用程序在同一台计算机上运行,​​因此OS可以阻止对Cayley db的网络访问。 In other cases again OS can be configured to accept network access to Cayley db only from predetermined set of IPs and in predetermined protocol, which is HTTP in that case (one reaches a Cayley instance over HTTP). 在其他情况下,也可以将OS配置为仅接受预定IP地址和预定协议中对Cayley db的网络访问,在这种情况下,HTTP为HTTP(通过HTTP到达Cayley实例)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM