Proxys and Eclipse, i think this issue has caused me more headache then any other issue especially in support. In corporate installation of Eclipse you always have an proxy server, nobody is allowed to go directly to the internet.
Corporate/Goverment development shops most likely have security staff who has a policy telling you whats allowed and whats not allowed. Letting the users download their own eclipse plugins is usually a big no no. Both from a security standpoint but also from a configuration standpoint.
So i have set my task of locking down the proxy to only allow direct connections i.e. connections internally and making sure the user cannot bypass this in any easy way. Setting this in plugin_customization.ini does not work, tried:
org.eclipse.core.net/proxiesEnabled=false
org.eclipse.core.net/systemProxiesEnabled=false
org.eclipse.core.net/nonProxiedHosts=*.host.com|localhost|12 7.0.0.1
did not work. asking for help:
http://www.eclipse.org/forums/index.php?t=msg&th=169365&
resulted in that i needed to "patch" two plugins.
After consulting my friend google i found the ui preferences in
org.eclipse.ui.net / ProxyPreferencePage.java
lock down the ui combo box with:
providerCombo.setEnabled(false);
and the default active provider in
org.eclipse.core.net / proxySelector.java
Default for us Eclipse returns the NATIVE_PROVIDER which in turn works , i.e. Eclipse somehow finds our proxy settings and lets you download plugins from the internet. Not what we want!
so i changed the "return NATIVE_PROVIDER;" to "return DIRECT_PROVIDER;"
These settings now returns the direct provider as default and lock the ui combobox so you can't change them.
This will be built into my Eclipse product based upon Helios.
torsdag 3 juni 2010
Prenumerera på:
Inlägg (Atom)