Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I configure routing in Nexus OSS 3

Tags:

maven

nexus

Sonatype Nexus 2 has "routing" capabilities, so that I can configure my requests for internal artifacts to only be served by certain (internal) repositories.

I've got a version of Nexus 3 running but I don't see any way to implement this capability. There is something called "content selectors" which might be the new mechanism, but there is absolutely no documentation of it, so I can't use it. This is a pretty important security requirement.

Am I missing something? How do I route requests in Nexus 3?

like image 329
Zac Thompson Avatar asked Oct 19 '22 03:10

Zac Thompson


1 Answers

Nexus 3.17 is out. It is the first version to support routing rules. They work differently than in Nexus 2.X, but meet the same need. Things are now rule centered instead of repo centered. I found the Nexus 3 approach to be easier to understand.

This documentation page shows the new routing rules.

And for future readers:

  • Content selectors: privileges within nexus. Useful if you want to restrict a user to certain paths
  • Routing rules: which repos are queried for what patterns. Useful if you want to only look up certain paths from certain repos.
like image 102
Jeanne Boyarsky Avatar answered Oct 21 '22 04:10

Jeanne Boyarsky