Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-25603

Minimum privileges to manage one repository and [ Delete repository ] button

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: New
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.17.0, 3.28.0, 3.28.1
    • Fix Version/s: None
    • Component/s: Security, UI
    • Labels:
      None
    • Notability:
      3

      Description

      SYMPTOM

      Nexus administrator would like to create a new role with the minimum privileges to allow users to manage and delete own repository.
      For this purpose, this administrator thought "nx-repository-admin-<format>-<repo_name>-*" would be sufficient, but actually "nx-repository-admin-*-*-delete" was required to enable [ Delete repository ] button, however, the actual delete request does not look like checking this privilege.

      REPRODUCE STEPS

      Start two browser windows (normal and Incognito/private), then

      1. As "admin" user, create a test repository ("raw-hosted-test")
      2. As "admin" user, create a test role ("test-role") with "nx-repository-admin-raw-hosted-test-*" only, and assign this role to a test user ("testuser")
      3. As "testuser", go to "raw-hosted-test" repository setting page, and confirm [ Delete repository ] button is disabled.
      4. As "admin" user, add "nx-repository-admin-*-*-delete" privilege to the "test-role", and save.
      5. As "testuser", refresh the "raw-hosted-test" repository setting page, and confirm now [ Delete repository ] button is enabled.
      6. As "admin" user, remove "nx-repository-admin---delete" privilege.
      7. As "testuser", without refreshing the browser, click [ Delete repository ] button

      EXPECTED BEHAVIOUR

      Either the [ Delete repository ] button in the UI should not check "nx-repository-admin-*-*-delete" privilege, or deleting this repository should fail if no "nx-repository-admin-*-*-delete" privilege.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              hosako Hajime Osako
              Last Updated By:
              Jerry Gergel
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Date of First Response:

                  tigCommentSecurity.panel-title