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

Duplication of credentials in blue-ocean

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Duplicate
    • Component/s: blueocean-plugin
    • Labels:
      None
    • Environment:
      Jenkins: 2.63
      Blue Ocean: 1.0.1
    • Similar Issues:

      Description

      Steps:- 

      1. Open blue ocean dashboard
      2. Create new pipeline type Git
      3. Add credentials
      4. Provide username and password and click on create credentials
      5. Provide same username and password and click create credentials.

        Attachments

          Issue Links

            Activity

            Hide
            jamesdumay James Dumay added a comment -

            Vivek Pandey is there any way we could potentially deduplicate them?

            Show
            jamesdumay James Dumay added a comment - Vivek Pandey is there any way we could potentially deduplicate them?
            Hide
            vivek Vivek Pandey added a comment -

            James Dumay To avoid creating new credential, we can do it by computing hash of existing credentials in `git-domain` (minus credential Id) and then avoid creating new one if hash of given credential matches with the existing one. Problem I see with this approach is doing it correctly for different credential types. but I think its doable.

            OTOH, I think there is workaround as well, user can always delete the duplicate ones from classic UI or simply don't create same credentials as new ones, chose that one from the drop down

            Show
            vivek Vivek Pandey added a comment - James Dumay To avoid creating new credential, we can do it by computing hash of existing credentials in `git-domain` (minus credential Id) and then avoid creating new one if hash of given credential matches with the existing one. Problem I see with this approach is doing it correctly for different credential types. but I think its doable. OTOH, I think there is workaround as well, user can always delete the duplicate ones from classic UI or simply don't create same credentials as new ones, chose that one from the drop down
            Hide
            jamesdumay James Dumay added a comment -

            Vivek Pandey I am thinking this might not be such a big deal considering what we have planned for Git read/write support soon (using SSH only credentials).

            I am going to close this against that ticket and we can address it there.

            Show
            jamesdumay James Dumay added a comment - Vivek Pandey I am thinking this might not be such a big deal considering what we have planned for Git read/write support soon (using SSH only credentials). I am going to close this against that ticket and we can address it there.
            Hide
            dfgraham Darren Graham added a comment -

            This issue is still present in 1.2.4 - Cannot remove these credentials once added via blue ocean as they don't appear in the jenkins credentials area.

            Show
            dfgraham Darren Graham added a comment - This issue is still present in 1.2.4 - Cannot remove these credentials once added via blue ocean as they don't appear in the jenkins credentials area.
            Hide
            gargmukku07 Mukul Garg added a comment -

            Darren Graham Blue ocean works on folder credentials. if you are creating pipeline using blue ocean the it creates a blueocean credentials folder and your credentials a re in there.

            Show
            gargmukku07 Mukul Garg added a comment - Darren Graham Blue ocean works on folder credentials. if you are creating pipeline using blue ocean the it creates a blueocean credentials folder and your credentials a re in there.

              People

              • Assignee:
                Unassigned
                Reporter:
                gargmukku07 Mukul Garg
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: