ReadOnlyStrategy for remote script execution to make a read only server instance
Hi all, I am setting up a read only cluster of gremlin server, I have conifgured the initialization script like this:
Now when I'm using
The issue I'm facing is that I can access the
globals << [g : traversal().withEmbedded(graph).withStrategies(ReferenceElementStrategy)]Now when I'm using
g and sending a write request to the gremlin server I'm getting the proper exception and not able to add data.The issue I'm facing is that I can access the
graph instance directly and able to send request like graph.traversal().addV() in place of g.addV, is there a way I can restrict this and make the server only accept write request? TIA.