-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSL support #620
Comments
That's strange, you should get Regarding the rest I agree. Will see if we can squeeze it into 0.5 release |
I would propose to change the connection URL schema. Instead of
For backward compatibility, we can also leave |
Hi @wajda , thanks for your answer. I do get that exception if the URL is malformed indeed, so if the scheme is not The feature is implemented, using unsecure SSL though and forcing the user to give permission to do so. Tests are not updated yet but I will open a PR anyway to get started. A second schema has been added thus, Thank you, |
Also, using MongoDB connection string format as an example, we could add |
@rvvincelli, perfect, thanks you. I'll take a look at it. But while you are on it, could you please change the schema from |
Thanks for checking it out @wajda ! I am not sure I can really commit to that because it feels like a big change to me given that my knowledge on the code base is super limited. What I can do is to update the PR adding unit tests, wdyt? Thanks, |
Ok, please do. We'll take it from there. |
The protocol selection topic has moved to #631 |
Background
Hi team, thanks for quickly addressing my other issue today.
First of all: should this issue be a duplicate, my apologies - just link me to the first one; also because SSL support sounds important - perhaps I'm missing something myself; it's been a long coding day - sorry in advance.
As we make progress, the ArangoDB instance we use works on HTTPS because it is a production one.
When initializing the db with:
java -jar admin-0.4.2.jar db-init http+ssl://root:test@<IP>/spline
we get:
java.io.IOException: Reached the end of the stream.
This version is the latest I see.
We know that this could be caused by the protocol mismatch, but the command works against an unsecure Arango, and we have the suspect that this is just a failed SSL handshake actually. With the official
arangosh
client, making an unsecure connection to a secure server will fail indeed.By looking at the code it looks like the builder has no SSL at all, see here, indeed there is only one schema in the admin client,
arangodb
. In the Java driver they have an example.Feature
The requested feature is to support SSL, possibly with a different scheme, like
arangodbs
orarangodb+ssl
.Example [Optional]
See the builder example for SSL above from the driver codebase.
Proposed Solution [Optional]
It does not seem like a lot of work so I cannot promise anything but we might submit a patch ourselves - that would take time though.
Thanks again!
cc @patrickdehoon
The text was updated successfully, but these errors were encountered: