Assign Upload privileges to a role for a specific repository

Hello,

I want to create a role with upload permissions to a specific repository.
I assigned the nx-component-upload privilege to the role but the upload is not enabled for the role.
Which privileges or roles are needed to get this going?

cheers

I would definitely start with nx-repository-view… based on what type of content you want them to upload. The name suggest view, but all CRUD operations fall under that one. nx-repository-admin are not that interesting unless you want the users to mess with repository settings.

Hi! I’m quoting another Sonatyper here, but:

For example, if you want to give users the ability to upload to a repo called ā€˜maven-releases’ both via the UI and build clients such as Maven, then you should create a role with the following privileges (this will give them full read/write permissions to the contents of the given repo):

nx-component-upload

nx-repository-view-maven2-maven-releases-browse
nx-repository-view-maven2-maven-releases-read

nx-repository-view-maven2-maven-releases-edit
nx-repository-view-maven2-maven-releases-add
nx-repository-view-maven2-maven-releases-delete (if you also want to give users permissions to delete artifacts).
1 Like

Yeah, be very careful with granting this permission to the users. They can mess with this big: ā€œWe released a wrong version of the artifact yesterday. Let us delete it and deploy the right one. It was out just for a short time. What can go wrong?ā€. Quite a lot actually.

1 Like

Thanks for your replies, helped me a lot to get this going for different repos.
regards
Rol