What is the minimal set of privileges required to deploy artifacts to Nexus 3?

前端 未结 4 467
渐次进展
渐次进展 2021-01-31 02:48

I\'m using Nexus Repository Manager 3.1.0-04, and I want to create a user to just have deployment permissions. What are the minimal set of privileges required for that?

相关标签:
4条回答
  • 2021-01-31 03:03

    Successful deployment by maven 3 with Nexus 3.8.0 the following rights are required

    nx-repository-view-*-*-edit
    nx-repository-view-*-*-read
    
    0 讨论(0)
  • 2021-01-31 03:07

    If you need minimal privileges to just deploy artifacts, nx-repository-view-*-*-edit is enough.

    nx-repository-admin is used for administration and configuration

    Repository Admin

    These are privileges related to the administration and configuration of a specific repository

    and edit is enough to modify repository content

    edit

    This action allows privileges to modify associated scripts, repository content, and repository administration.

    BTW, you need nx-component-upload to upload components in web UI.

    https://help.sonatype.com/repomanager3/user-interface/uploading-components

    0 讨论(0)
  • 2021-01-31 03:11

    The general rule is nx-repository-admin privileges are for administering the repositories and their details; nx-repository-view privileges are for use of the repositories once set up. Assign the latter.

    To tweak repository privileges of your Deployment user(s) you should use the nx-repository-view-*-*-* as the assigned privilege, instead of nx-repository-admin. So, remove all the privileges you addressed in your question, and replace the ‘Given’ field with nx-repository-view-*-*-*. Since the privilege is denoted with asterisks, your Deployment users can perform all the above actions (i.e. browse, read, edit, add, and delete).

    See the screenshot for reference:

    Configuring the nx-deploy Privilege for the Deployment Role

    You can read more about Privileges in the Security chapter: https://help.sonatype.com/repomanager3/security/privileges

    0 讨论(0)
  • 2021-01-31 03:16
    nx-repository-view-maven2-maven-snapshots-edit
    nx-repository-view-maven2-maven-snapshots-read
    

    "maven2"is recipe,"maven-snapshots" is your repository name.

    0 讨论(0)
提交回复
热议问题