现在我们用的是詹图格。图中的节点和顶点都有权利标记。我们已经定制了Gremlin服务器,以检查每个步骤执行后的权限。
这个Gremlin服务器是使用Java应用程序启动的。
我想知道我们是否可以为海王星做同样的事情,即启动本地Gremlin服务器并连接到Neptune DB并自定义它以进行权利检查。另外,是否可以为gremlin查询响应配置自定义序列化程序?
添加示例配置:
host: MyNeptuneHost
port: 8182
evaluationTimeout: 30000
channelizer: org.apache.tinkerpop.gremlin.server.channel.WebSocketChannelizer
graphs: {
graph: conf/tinkergraph-empty.properties}
scriptEngines: {
gremlin-groovy: {
plugins: { org.apache.tinkerpop.gremlin.server.jsr223.GremlinServerGremlinPlugin: {},
org.apache.tinkerpop.gremlin.tinkergraph.jsr223.TinkerGraphGremlinPlugin: {},
org.apache.tinkerpop.gremlin.jsr223.ImportGremlinPlugin: {classImports: [java.lang.Math], methodImports: [java.lang.Math#*]},
org.apache.tinkerpop.gremlin.jsr223.ScriptFileGremlinPlugin: {files: [scripts/empty-sample.groovy]}}}}
serializers:
- { className: org.myApp.tinkerpop.gremlin.driver.ser.MyAppGraphSONMessageSerializerV3d0, config: { ioRegistries: [org.myApp.tinkerpop.gremlin.tinkergraph.structure.MyAppIoRegistryV3d0] }}发布于 2022-01-07 16:34:06
公开了您希望从其他Gremlin中看到的相同的入口点。因此,对于您的应用程序,海王星看起来就像一个Gremlin服务器。但是,在创建到服务器的连接时,不能配置序列化程序,只能指定要使用的序列化器(通过从可用集中选择一个)。您的问题并不清楚如何执行权限检查,但您不能自定义海王星服务器本身,只能通过参数组和查询设置(例如超时)来调整公开的设置。
https://stackoverflow.com/questions/70620446
复制相似问题