Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-41433

Add new API for "permissions"

    XMLWordPrintable

    Details

    • Epic Link:
    • Sprint:
      pannonian, iapetus
    • Similar Issues:

      Description

      As discussed - in the absence of JWT integration - the UI needs some mechanism to fetch the current user's permissions. Right now we are mostly interested in the "create job" permission but feel free to add whatever permissions are sensible.

        Attachments

          Issue Links

            Activity

            Hide
            cliffmeyers Cliff Meyers added a comment -

            Since the backend enforces security on the REST API, I don't view this as a critical issue. However it will be frustrating for end users to move through the creation flow and receive an error at the end if they lack the right permission. James Dumay feel free to prioritize this accordingly.

            Vivek Pandey feel free to start a discussion around the shape of the API on this ticket or in a PR.

            Show
            cliffmeyers Cliff Meyers added a comment - Since the backend enforces security on the REST API, I don't view this as a critical issue. However it will be frustrating for end users to move through the creation flow and receive an error at the end if they lack the right permission. James Dumay feel free to prioritize this accordingly. Vivek Pandey feel free to start a discussion around the shape of the API on this ticket or in a PR.
            Hide
            jamesdumay James Dumay added a comment -

            Vivek Pandey can this also cover the "I am an administrator" case for JENKINS-41096 ?

            Show
            jamesdumay James Dumay added a comment - Vivek Pandey can this also cover the "I am an administrator" case for JENKINS-41096 ?
            Hide
            vivek Vivek Pandey added a comment -

            James Dumay its in place, see https://github.com/jenkinsci/blueocean-plugin/pull/808. 'administrator' field tells whether requested user has admin privilege.

            Show
            vivek Vivek Pandey added a comment - James Dumay its in place, see https://github.com/jenkinsci/blueocean-plugin/pull/808 . 'administrator' field tells whether requested user has admin privilege.
            Hide
            jamesdumay James Dumay added a comment -

            Perfect! Thank you

            Show
            jamesdumay James Dumay added a comment - Perfect! Thank you

              People

              • Assignee:
                vivek Vivek Pandey
                Reporter:
                cliffmeyers Cliff Meyers
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: