Closed maarre closed 9 years ago
I'm very much +1 on the downloading code part (especially since it's a plain http channel...) but what's the alternative, installing mongo yourself? Putting the installed mongo in version control? Like hadoop and curl|sh based builds it seems driven by convenience which is not necessarily a bad thing.
I think the proxy system properties are pretty much standard in java? Will have a look at our build tomorrow and let you know.
We have an exception for the download URL in our proxy config (the build machine does not have internet access), so looks like we are downloading the mongo artifact through it.
We are passing the proxy settings like so:
-Dhttp.proxyHost=PROXY_HOST
-Dhttp.proxyPort=PROXY_PORT
and it seems to work. I also just noticed the mongo download URL also works with HTTPS, will look into getting that replaced...
I have tried :
# export PROXY_HOST=proxy.xxx.se
# export PROXY_PORT=8080
Still no go
Try passing the java system properties, it seems to work for us.
This is what I mean:
mvn package -Dhttp.proxyHost=proxy.xxx.se -Dhttp.proxyPort=8080 -Dhttps.proxyHost=proxy.xxx.se -Dhttps.proxyPort=8080
Still no go.
There is a rpm distribution: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-red-hat/
There is no hurry. I leave for 5 weeks of vacation tomorrow.
IIRC the whole point of the embedded Mongo was to enable development on various platforms without depending on a local Mongo installation.
Are you working on a production installation or on a development setup? For me those are two different scenarios:
@schlomo Agreed. Downloading stuff over plain HTTP and then executing it is not okay on any machine though.
Securing the transport channel only makes it obvious that the main problem is the trust into the download source. Regardless of HTTP or HTTPS.
For development I think that this is not a big deal, for production I would always install all software from trusted sources.
With #62 merged I can install through a local squid proxy with
mvn package -Dhttp.proxyHost=localhost -Dhttp.proxyPort=3128
@schlomo with HTTP I have to trust the source, CA authorities and people on the same network to not MITM me. It's so easy to MITM a HTTP download it's not even funny. With HTTPS I just have to trust the source and CA authorities.
Installation steps:
I configured maven Proxy settings, java 1.8 and network name reslolution
Skipped lots of output
I cannot say I am happy with tests downloading code.
There is no generic way of passing Proxy settings to java.