artifactory as a redirecting proxy

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

artifactory as a redirecting proxy

Jorg Heymans-4
Hi,

DSMP [1] implements a way to transparently "redirect" maven clients to a different repository. This is really handy for artifacts that specify repositories in their pom.xml :
<repositories>
<repository>
<id>apache.snapshots</id>
<name>Apache Maven Repository (Snapshots and Test Builds)</name>
<url> http://people.apache.org/maven-snapshot-repository</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
<repository>
<id>java.net</id>
<name>java.net Maven 1 Repository</name>
<url>https://maven-repository.dev.java.net/nonav/repository</url>
<layout>legacy</layout>
</repository>
</repositories>
For this, one only needs to specify dsmp as a proxy in settings.xml. Server side configuration then redirects the server url to either a different local or remote repository. This is really handy in corporate intranets where authenticating proxies would require maven to have a hardcoded proxy username/password in settings.xml.

I was wondering if Artifactory is planning to implement a similar feature ?

Thanks,
Jorg

[1] http://www.pdark.de/dsmp/usage.html
Reply | Threaded
Open this post in threaded view
|

Re: artifactory as a redirecting proxy

Yoav Landman
Administrator
Sounds like a nice feature. Self-centric dependencies that contain their own repositories outside a profile definition are always a problem.

Artifactory's focus is on acting as a fully managed cache/proxy, so instead of providing a solution by simply redirecting directly to an alternative URL, one should be able to configure it to go to a predefined repository alias. That would be a good addition.
Do you mind opening a JIRA request?

I might have missed the last point, but Artifactory already supports going through an authenticating proxy on behalf of users (including NTLM proxies).

On 4/3/07, Jorg Heymans <[hidden email]> wrote:
Hi,

DSMP [1] implements a way to transparently "redirect" maven clients to a different repository. This is really handy for artifacts that specify repositories in their pom.xml :
<repositories>

<repository>
<id>apache.snapshots</id>
<name>Apache Maven Repository (Snapshots and Test Builds)</name>
<url>
<a href="http://people.apache.org/maven-snapshot-repository" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://people.apache.org/maven-snapshot-repository</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>

</repository>
<repository>
<id><a href="http://java.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">java.net</id>
<name> <a href="http://java.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">java.net Maven 1 Repository</name>

<url><a href="https://maven-repository.dev.java.net/nonav/repository" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> https://maven-repository.dev.java.net/nonav/repository</url>
<layout>legacy</layout>
</repository>

</repositories>
For this, one only needs to specify dsmp as a proxy in settings.xml. Server side configuration then redirects the server url to either a different local or remote repository. This is really handy in corporate intranets where authenticating proxies would require maven to have a hardcoded proxy username/password in settings.xml.

I was wondering if Artifactory is planning to implement a similar feature ?

Thanks,
Jorg

[1] <a href="http://www.pdark.de/dsmp/usage.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://www.pdark.de/dsmp/usage.html

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.techsay.com/default.php?page=join.php&amp;p=sourceforge&amp;CID=DEVDEV" target="_blank"> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Artifactory-users mailing list
[hidden email]
<a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.sourceforge.net/lists/listinfo/artifactory-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/artifactory-users



Reply | Threaded
Open this post in threaded view
|

Re: artifactory as a redirecting proxy

Jorg Heymans-4

On 4/3/07, Yoav Landman <[hidden email]> wrote:

Artifactory's focus is on acting as a fully managed cache/proxy, so instead of providing a solution by simply redirecting directly to an alternative URL, one should be able to configure it to go to a predefined repository alias. That would be a good addition.

yep that's what i meant with 'redirecting', it should go to an artifactory managed repo instead.


Do you mind opening a JIRA request?

done, RTFACT-100

I might have missed the last point, but Artifactory already supports going through an authenticating proxy on behalf of users (including NTLM proxies).

Do you mean the <remoteRepository> element accepting a <proxyRef>? Or something else, perhaps i missed this in the docs ...

Thanks
Jorg
Reply | Threaded
Open this post in threaded view
|

Re: artifactory as a redirecting proxy

Jorg Heymans-4


On 4/3/07, Jorg Heymans <[hidden email]> wrote:

Do you mean the <remoteRepository> element accepting a <proxyRef>? Or something else, perhaps i missed this in the docs ...

In one of the previous posts it was suggested to use <mirrorOf>*</mirrorOf> - works like a treat :-)

Thanks
Jorg
Reply | Threaded
Open this post in threaded view
|

Re: artifactory as a redirecting proxy

Yoav Landman
Administrator
In reply to this post by Jorg Heymans-4
On 4/3/07, Jorg Heymans <[hidden email]> wrote:

On 4/3/07, Yoav Landman <[hidden email]> wrote:

Artifactory's focus is on acting as a fully managed cache/proxy, so instead of providing a solution by simply redirecting directly to an alternative URL, one should be able to configure it to go to a predefined repository alias. That would be a good addition.

yep that's what i meant with 'redirecting', it should go to an artifactory managed repo instead.


Do you mind opening a JIRA request?

done, RTFACT-100

Thank you.

I might have missed the last point, but Artifactory already supports going through an authenticating proxy on behalf of users (including NTLM proxies).

Do you mean the <remoteRepository> element accepting a <proxyRef>? Or something else, perhaps i missed this in the docs ...

Yes, exactly that. You can specify a <proxy> element with all the proxy configuration details, including authentication, then use that proxy's key in a <proxyRef> for a remote repository.
There is an (unused) example in the default artifactory.config.xml, and threre is the documented xsd of course, but true, the docs need to be expanded in this area.

Thanks
Jorg

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.techsay.com/default.php?page=join.php&amp;p=sourceforge&amp;CID=DEVDEV" target="_blank"> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Artifactory-users mailing list
[hidden email]
<a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.sourceforge.net/lists/listinfo/artifactory-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/artifactory-users