Skip to content
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

Having an external route for mongo #240

Closed
alikhajeh1 opened this issue Apr 26, 2017 · 10 comments
Closed

Having an external route for mongo #240

alikhajeh1 opened this issue Apr 26, 2017 · 10 comments

Comments

@alikhajeh1
Copy link

Using the openshift mongo template, has anyone found a way to expose an external route for mongo? We can set mongo to require authentication and bind to 0.0.0.0 so it accepts non-localhost connections, but I've not found a way to make it work with external routes.

openshift/origin#3415 (comment) suggests there might be a way if mongo support SNI, which if I understand it correctly, does: https://jira.mongodb.org/browse/DRIVERS-320

Any ideas?

@bparees
Copy link
Collaborator

bparees commented Apr 26, 2017

i don't know enough about mongo to advise you about enabling sni (but if you do, you should be able to create a passthrough route to it), but another option would be configuring either an external ip service, or a nodeport for your mongodb pod.

@omron93
Copy link
Contributor

omron93 commented Apr 26, 2017

Using SNI does not require using SSL/TLS on the server too?

Currently it is not possible to enable SSL for mongodb container - I plan to add this after s2i support is added (#239)

@bparees
Copy link
Collaborator

bparees commented Apr 26, 2017

Using SNI does not require using SSL/TLS on the server too?

yes, it does. I figured that was implied when I said enabling SNI.

@omron93
Copy link
Contributor

omron93 commented Apr 27, 2017

yes, it does. I figured that was implied when I said enabling SNI.

Not sure we talk about same "server" :-) I thought a mongod server... I was asking because I am not familiar with "Edge Termination" of OpenShift routes. And if this can be somehow used.

@bparees
Copy link
Collaborator

bparees commented Apr 27, 2017

edge termination of a route means the router terminates the SSL connection and then uses a non-encrypted connection to the backend.
https://docs.openshift.org/latest/architecture/core_concepts/routes.html#secured-routes

@omron93
Copy link
Contributor

omron93 commented Apr 27, 2017

@bparees So it is possible to connect to service port (different than 80/443) without encrypted connection?

@bparees
Copy link
Collaborator

bparees commented Apr 27, 2017

@bparees So it is possible to connect to service port (different than 80/443) without encrypted connection?

services can be on any port you want and any protocol you want. but routes cannot.

@omron93
Copy link
Contributor

omron93 commented Apr 28, 2017

Ok. So this issue is waiting for SSL support in mongodb-container. And that is blocked by s2i support - #239

@pooriaidani
Copy link

any updates on this?

@hhorak
Copy link
Member

hhorak commented Apr 10, 2024

mongodb container is not maintained any more in this org. closing.

@hhorak hhorak closed this as completed Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants