Uploaded image for project: 'Compass'
  1. Compass
  2. COMPASS-23

Error Invoking Jenkins Pipeline from Compass Template with Basic Authentication in URL

      Issue Summary

      Invoking a Jenkins pipeline using a Compass template fails when passing basic authentication in the webhook URL. The URL works in Postman, but Compass encounters an error. Simplifying the test with "webhook.site" without authentication succeeds, but adding authentication causes Compass to fail. The error is confirmed to be due to the authentication in the URL, as tests without it work correctly.

      Steps to Reproduce

      1. Create a Jenkins pipeline job that requires basic authentication.
      2. Successfully test the Jenkins pipeline invocation in Postman using the Jenkins API token.
      3. Attempt to create a Compass template that invokes the Jenkins pipeline, including basic authentication in the webhook URL.
      4. Observe the error when creating the template in Compass.
      5. Test the webhook invocation using a public DNS like "webhook.site" without authentication (should succeed).
      6. Test the webhook invocation with authentication using Postman (should succeed).
      7. Attempt to use the Compass template again with authentication (should fail).

      Expected Results

      The Compass template should successfully invoke the Jenkins pipeline with basic authentication included in the webhook URL.

      Actual Results

      The Compass template fails to invoke the Jenkins pipeline due to the basic authentication in the webhook URL, despite successful tests in Postman and using a public DNS without authentication.

      Workaround

      Currently, there is no known workaround for this behavior. A workaround will be added here when available

            [COMPASS-23] Error Invoking Jenkins Pipeline from Compass Template with Basic Authentication in URL

            Upon further review by the team, this capability of adding userInfo was not included in the original set of functionality. We are going to track this as a feature request rather than a bug, as the main functionality is not affected. We are going to track this internally as such.

            Patrick Brady added a comment - Upon further review by the team, this capability of adding userInfo was not included in the original set of functionality. We are going to track this as a feature request rather than a bug, as the main functionality is not affected. We are going to track this internally as such.

            Upon further review by the team, this capability of adding userInfo was not included in the original set of functionality for webhooks. We are going to track this as a feature request rather than a bug, as the main functionality is not affected. We are going to track this internally as such. Thank you again for bringing this to our attention!

            Patrick Brady added a comment - Upon further review by the team, this capability of adding userInfo was not included in the original set of functionality for webhooks. We are going to track this as a feature request rather than a bug, as the main functionality is not affected. We are going to track this internally as such. Thank you again for bringing this to our attention!

              Unassigned Unassigned
              4c2ff7ed7f76 Kelvin T
              Affected customers:
              0 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: