Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What privileges does a user need to upload/deploy to every repository hosted on local Sonatype Nexus 3.0 server?

Tags:

maven

nexus

Note: since I'm the only one searching for it it feels like I want to use bad practice.

I want to create a deploy-user. Its only purpose is to be configured in the settings.xml as a server-entity:

<servers>
 <server>
  <id>nexus</id>
  <username>deploy-user</username>
  <password>somepassword</password>
 </server>
</servers>

The user only needs permission to upload artifacts to all the repositories hosted on the Nexus 3.0 server. I've created a role "Deployment" and need to know which privileges need to be applied.

like image 236
OddDev Avatar asked Aug 24 '16 11:08

OddDev


People also ask

How we can upload artifacts into Nexus repository manager?

Go to "http://localhost:8081/nexus" Login as user: "admin" password: "admin123" Click on "Browse Repositories," and you'll see a list of repositories. You will want to right click on the "3rd Party" repository and choose "Upload Artifact."

Which of the following type of repository can be connected with remote repository in Nexus?

A repository with the type proxy, also known as a proxy repository, is a repository that is linked to a remote repository.

How do I upload poms to Nexus?

To upload a pom file and its associated artifacts add all the files into the upload screen at the same time. Be sure to specify the extension of the pom file as "pom", this will let Nexus Repo know it should be taking the coordinates from the pom file, not the UI.

What privileges do I need to deploy from NX repository?

In version 3.18.0-01 privileges read and edit are enough (just like Ben mentioned in the not accepted answer) to deploy via CI/CD (Maven) provided by GitLab. If you need minimal privileges to just deploy artifacts, nx-repository-view-*-*-edit is enough. nx-repository-admin is used for administration and configuration

How to add artifact upload privileges in Nexus 2?

Nexus 2 The User must have Artifact Uploadprivilege, which can be searched in privilegestab. Create a custom Rolefor your user, add Artifact Uploadprivilege to the Role. Bind the Role to your user. Below is an example of nexus 2.x:

How do I assign permissions to a new role in Nexus?

1 For nexus 3.x, create a new role (e.g. "deploy") and assign it the add, edit and read permissions (nx-repository-view-<repo_type>-<repo_name>-add/edit/read). This suffices for maven; other clients may need more privileges.

What permissions have been deprecated with Azure DevOps Server 2019 and later?

This permission has been deprecated with Azure DevOps Server 2019 and later versions. If the Use full Web Access features permission is set to Deny, the user will only see those features permitted for the Stakeholder group (see Change access levels ).


2 Answers

Nexus 2

The User must have Artifact Upload privilege, which can be searched in privileges tab.

  • Create a custom Role for your user, add Artifact Upload privilege to the Role.
  • Bind the Role to your user.

Below is an example of nexus 2.x:

And this is for nexus 3.x:

like image 58
NOZUONOHIGH Avatar answered Sep 21 '22 07:09

NOZUONOHIGH


For nexus 3.x, create a new role (e.g. "deploy") and assign it the add, edit and read permissions (nx-repository-view-<repo_type>-<repo_name>-add/edit/read).

This suffices for maven; other clients may need more privileges.

like image 32
Henning Schmiedehausen Avatar answered Sep 22 '22 07:09

Henning Schmiedehausen