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

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

              Created:
              Updated:
              Resolved: