apigee / apigee-deploy-maven-plugin

Apache License 2.0
80 stars 169 forks source link

Maven plugin HTTP proxy support and rework #83

Closed bertramn closed 4 years ago

bertramn commented 7 years ago

Hi Apigee team,

the pull request tries to streamline a few things in the maven plugin and Rest client. The main issue we had was that the plugin would not work behind the corporate firewall. So we added a capability for the plugin to detect the standard proxy settings in the maven plugin context (as configured in the settings.xml) and use that to communicate to the Apigee gateway.

Along the way we did some refactoring of things and added some notes on other things that need attention. The full list of changes recorded below.

Please let us know if this is something you can incorporate.

Cleanup and Refactor

HTTP Proxy Support

Upstream Merges

bertramn commented 6 years ago

Hey there, any update on this PR? Would be nice to have a plugin with http proxy support available from maven central.

ssvaidyanathan commented 6 years ago

We have customers using this plugin with proxy - there are many posts around this in Apigee community. Check this one for example

bertramn commented 6 years ago

Yeah no sorry buddy, this suggestion is not how Maven works and when proxy authentication is required this is totally INSECURE as we would see users passwords floating about in bash history and on build servers. Maven comes with this totally awesome feature called /settings/proxies/proxy ... that's what maven users should be using to configure proxy settings and that's what Maven plugins should be using to setup proxy connections. Maven even allows you to encrypt passwords in the settings.xml file. No chance in hell we'd resort to passing sensitive information around in JVM args.

masterspambot commented 6 years ago

:+1: for those changes

bertramn commented 6 years ago

No one looking into the PR, is this project maintained?

patluri43 commented 6 years ago

Our Proxy needs basic auth and we are unable to pass authentication credentials via Maven Opts or Java Opts. This feature will really help us moving forward

gredler commented 5 years ago

I also need this feature. I see activity in this repo in the last few days, but it worries me that this PR has sat here for so long without feedback one way or the other. Can somebody at Apigee either merge this PR, explain what needs to change for it to be merged, or explain why it will never be merged?

@ssvaidyanathan

ssvaidyanathan commented 4 years ago

Created a new PR #112 as this is getting picked after a while. Once I have tested, will release this as a new version.

Closing this one

@bertramn - Thanks for the PR again. Appreciate if you can look into the new one I opened and approve