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

Allow non-standard Secret Server templates to be used.

XMLWordPrintable

      For environments with custom templates, e.g. an OAuth template that refers to "client" and "secret" instead of "username" and "password",  the existing plugin does not seem to fetch anything.

      Could the "Username" and "Password" below be parameterized?

      https://github.com/jenkinsci/thycotic-secret-server-plugin/blob/08c72cd16b56484baea40ea473faaef7779397b8/src/main/java/com/delinea/secrets/jenkins/global/cred/VaultClient.java#L63

       

                  // Extract the username and password fields from the secret
                  Optional<String> fetchUsername = secret.getFields().stream()
                          .filter(field -> "Username".equalsIgnoreCase(field.getFieldName())).map(Secret.Field::getValue)
                          .findFirst();            Optional<String> fetchPassword = secret.getFields().stream()
                          .filter(field -> "Password".equalsIgnoreCase(field.getFieldName())).map(Secret.Field::getValue)
                          .findFirst();// code placeholder
      

        1. image-2025-03-25-18-21-07-699.png
          image-2025-03-25-18-21-07-699.png
          75 kB
        2. image-2025-03-25-18-21-44-156.png
          image-2025-03-25-18-21-44-156.png
          49 kB
        3. image-2025-03-27-12-31-25-434.png
          image-2025-03-27-12-31-25-434.png
          75 kB
        4. image-2025-03-27-12-31-32-435.png
          image-2025-03-27-12-31-32-435.png
          75 kB
        5. image-2025-03-27-17-46-40-728.png
          image-2025-03-27-17-46-40-728.png
          78 kB
        6. image-2025-04-07-18-22-30-756.png
          image-2025-04-07-18-22-30-756.png
          41 kB
        7. image-2025-04-07-18-26-16-418.png
          image-2025-04-07-18-26-16-418.png
          67 kB
        8. image-2025-04-07-18-26-49-473.png
          image-2025-04-07-18-26-49-473.png
          68 kB
        9. screenshot-1.png
          screenshot-1.png
          22 kB
        10. screenshot-2.png
          screenshot-2.png
          28 kB
        11. screenshot-3.png
          screenshot-3.png
          82 kB
        12. screenshot-4.png
          screenshot-4.png
          66 kB
        13. screenshot-5.png
          screenshot-5.png
          80 kB
        14. screenshot-6.png
          screenshot-6.png
          19 kB

            thycotic_dsv Thycotic Dev
            hukel Hugh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: