neo4jrb / neo4j-core

A simple unified API that can access both the server and embedded Neo4j database. Used by the neo4j gem
MIT License
99 stars 80 forks source link

Support Bolt via TLS #281

Open cheerfulstoic opened 7 years ago

cheerfulstoic commented 7 years ago

This might help:

http://stackoverflow.com/questions/12836847/how-to-establish-a-ssl-enabled-tcp-ip-connection-in-ruby

cheerfulstoic commented 7 years ago

Code snippet to configure Neo4j:

# Bolt connector
dbms.connector.bolt.type=BOLT
dbms.connector.bolt.enabled=true
dbms.connector.bolt.tls_level=REQUIRED
kyle-rader commented 7 years ago

@cheerfulstoic Where would that configuration live? As far as I can see, currently, neo4j.rb cannot be configured to use Bolt to connect to a GrapheneDB neo4j instance because they require TLS. Is this going to be possible do you know?

cheerfulstoic commented 7 years ago

That configuration from my last comment goes in the Neo4j configuration, not in Ruby. I would love to have TLS support for Bolt in neo4j-core, but I've got some other projects that I'm working on currently and I don't have time. It might not be terribly difficult, though and I'll happily look over a pull request. Anybody who wants to try should start with Neo4j::Core::CypherSession::Adaptors::Bolt

pepesenaris commented 6 years ago

@cheerfulstoic any word on this 🆙 ? what other resource do I have, beside the one above, to give it a try to a PR?