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

FOD-Octane Integration - no Vulnerabilities shown

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • ALM Octane On Premise - 15.0.20.60
      Jenkins 2.204.2
      Micro Focus Application Automation Tools Plugin 6.1
      FOD Plugin 5.0.1

      Followed instructions from https://admhelp.microfocus.com/octane/en/15.0.20/Online/Content/AdminGuide/how-setup-FoD-integration.htm?Highlight=fortify

      Pipeline Job successfully uploads to FOD and finds NEW vulnerabilities but nothing is shown in Octane for the pipeline. Waited to see if polling of FOD updates them but nothing appears.

      Is there any way of debugging this to see if polling of FOD results is happening?

        1. 51667_scandata.fpr
          2.40 MB
        2. FOD.png
          FOD.png
          42 kB
        3. FOD-Config.PNG
          FOD-Config.PNG
          26 kB
        4. image-2020-02-24-09-01-01-035.png
          image-2020-02-24-09-01-01-035.png
          39 kB
        5. nga.log
          1.22 MB
        6. nga2.log
          1.24 MB
        7. scan-summary.PNG
          scan-summary.PNG
          29 kB

          [JENKINS-61116] FOD-Octane Integration - no Vulnerabilities shown

          nir yom tov added a comment - - edited

          Hi, some question here

          1. I see that octane plugin is 6.1 - what is the FOD plugin ver ?
          2. Is the pipeline set to be type 'security' ?
          3. Are the vulnerabilities that were found have later date (introduce date) than the pipeline creation ? (vulnerabilities that exist before the pipeline creation wont be injected)
          4. Is it possible to submit jenkins log ? found in:  <Jenkins url>/userContent/nga/logs/nga.log
          5. Also, please tell me if u'r jenkins job is a simple one or pipeline as a code ?

          Thanx

          Nir

          nir yom tov added a comment - - edited Hi, some question here I see that octane plugin is 6.1 - what is the FOD plugin ver ? Is the pipeline set to be type 'security' ? Are the vulnerabilities that were found have later date (introduce date) than the pipeline creation ? (vulnerabilities that exist before the pipeline creation wont be injected) Is it possible to submit jenkins log ? found in:  <Jenkins url>/userContent/nga/logs/nga.log Also, please tell me if u'r jenkins job is a simple one or pipeline as a code ? Thanx Nir

          Kevin Lee added a comment -

          Thanks Nir,

          1. FOD Plugin version 5.0.1
          2. Pipeline is "End to End" and "Security" - can it be more than one tag?
          3. Yes vulnerabilities found in commit to repository (see attached) after pipeline was created.
          4. Attached
          5. It is Jenkinsfile Pipeline in GitHub - commit to repository starts Jenkins/Octane Pipeline and FOD upload!

          It is for customer demo. I can leave VM up for a while if you want to look (pm for login details: kevin.lee@microfocus.com)

          Kevin

          Kevin Lee added a comment - Thanks Nir, FOD Plugin version 5.0.1 Pipeline is "End to End" and "Security" - can it be more than one tag? Yes vulnerabilities found in commit to repository (see attached) after pipeline was created. Attached It is Jenkinsfile Pipeline in GitHub - commit to repository starts Jenkins/Octane Pipeline and FOD upload! It is for customer demo. I can leave VM up for a while if you want to look (pm for login details: kevin.lee@microfocus.com) Kevin

          Kevin Lee added a comment -

          Tried running the same build in a Freestyle Jenkins Job (set Octane Pipeline to Security only) - now there is Authentication error in log (see nga2.log). Don't know why this is the case as the Pipeline uploads and runs the Scan in FOD successfully?

          I have tried both API Key and Personal Access Token authentication with the same result.

           

          Kevin

          Kevin Lee added a comment - Tried running the same build in a Freestyle Jenkins Job (set Octane Pipeline to Security only) - now there is Authentication error in log (see nga2.log). Don't know why this is the case as the Pipeline uploads and runs the Scan in FOD successfully? I have tried both API Key and Personal Access Token authentication with the same result.   Kevin

          nir yom tov added a comment -

          Hi Kevin,

          it seems according to the error that octane plugin having hard times connecting to FOD.

          in jenkins configuration - did u update correctly the fortify on demand section ?  (url , API url, api key and secret) - is the test connection button working for you ? (see example below)

          nir yom tov added a comment - Hi Kevin, it seems according to the error that octane plugin having hard times connecting to FOD. in jenkins configuration - did u update correctly the fortify on demand section ?  (url , API url, api key and secret) - is the test connection button working for you ? (see example below)

          Kevin Lee added a comment -

          Yes, i have tried both API Key and PAT - clicking on "Test Connection" works. I notice your screenshot is slightly different as "Secret" does not use Jenkins Credentials - does this make any difference?

           

          Kevin Lee added a comment - Yes, i have tried both API Key and PAT - clicking on "Test Connection" works. I notice your screenshot is slightly different as "Secret" does not use Jenkins Credentials - does this make any difference?  

          Kevin Lee added a comment -

          It looks like this does not work with the latest version of FOD Uploader plugin (5.0.1) where they switched to using Jenkins Credentials plugin for Secrets rather than plain text field. I added a bit of debugging to FODConnector.java:

          INFO [VulnerabilitiesPushWorker-58 ] FODConnector : grant_type=client_credentials&scope=api-tenant&client_id=852dae7d-2280-4d76-8e2e-9f8fc0bee63c&client_secret=fod-api-key

          For the client_secret it is use the Credentials id "fod-api-key" rather than resolving its actual value.

          Kevin Lee added a comment - It looks like this does not work with the latest version of FOD Uploader plugin (5.0.1) where they switched to using Jenkins Credentials plugin for Secrets rather than plain text field. I added a bit of debugging to FODConnector.java: INFO [VulnerabilitiesPushWorker-58 ] FODConnector : grant_type=client_credentials&scope=api-tenant&client_id=852dae7d-2280-4d76-8e2e-9f8fc0bee63c&client_secret= fod-api-key For the client_secret it is use the Credentials id "fod-api-key" rather than resolving its actual value.

          Daniel Shmaya added a comment -

          This version of FOD is not supported yet.

          Daniel Shmaya added a comment - This version of FOD is not supported yet.

          Kevin Lee added a comment -

          Integration of ALM Octane and Fortify on Demand is still not possible - this is preventing adoption of Octane and FOD!!!

          Kevin Lee added a comment - Integration of ALM Octane and Fortify on Demand is still not possible - this is preventing adoption of Octane and FOD!!!

          Mark Serencha added a comment - - edited

          Similar (same?) issue occurring.

          Fortify scan is triggered, and runs to completion, but no Vulnerabilities are loaded into Octane.

          • Jenkins LTS 2.303.1 on Kubernetes
          • Micro Focus Application Automation Tools plugin 7.0
          • Fortify on Demand plugin 6.1.0
          • Octane 16.0.116.45
            • API permissions verified
          • Fortify permissions verified

          Relevant nga.log below:

          {{ 01/10/2021 17:15:21,111 ERROR [VulnerabilitiesPushWorker-92 ] VulnerabilitiesServiceImpl : https://OCTANE_SERVER?p=142001 permanent error on 'JOB_NAME #9', passing over
          com.hp.octane.integrations.exceptions.PermanentException: Cannot authenticate:Not Found
          at com.hp.octane.integrations.services.vulnerabilities.fod.dto.FODConnector.getAccessToken(FODConnector.java:213) ~[integrations-sdk-2.7.0.18.jar:?]
          at com.hp.octane.integrations.services.vulnerabilities.fod.dto.FODConnector.initConnection(FODConnector.java:80) ~[integrations-sdk-2.7.0.18.jar:?]
          at com.hp.octane.integrations.services.vulnerabilities.fod.dto.FodConnectionFactory.createFodConnector(FodConnectionFactory.java:75) ~[integrations-sdk-2.7.0.18.jar:?]
          at com.hp.octane.integrations.services.vulnerabilities.fod.dto.FodConnectionFactory.instance(FodConnectionFactory.java:39) ~[integrations-sdk-2.7.0.18.jar:?]
          at com.hp.octane.integrations.services.vulnerabilities.fod.dto.services.FODReleaseService.getScansLastInFirstFetched(FODReleaseService.java:36) ~[integrations-sdk-2.7.0.18.jar:?]
          at com.hp.octane.integrations.services.vulnerabilities.fod.FODServiceImpl.fodScanIsStillInProgress(FODServiceImpl.java:109) ~[integrations-sdk-2.7.0.18.jar:?]
          at com.hp.octane.integrations.services.vulnerabilities.fod.FODServiceImpl.getVulnerabilitiesScanResultStream(FODServiceImpl.java:71) ~[integrations-sdk-2.7.0.18.jar:?]
          at com.hp.octane.integrations.services.vulnerabilities.VulnerabilitiesServiceImpl.processPushVulnerabilitiesQueueItem(VulnerabilitiesServiceImpl.java:231) ~[integrations-sdk-2.7.0.18.jar:?]
          at com.hp.octane.integrations.services.vulnerabilities.VulnerabilitiesServiceImpl.worker(VulnerabilitiesServiceImpl.java:172) ~[integrations-sdk-2.7.0.18.jar:?]
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
          at java.lang.Thread.run(Thread.java:829) [?:?]
          01/10/2021 17:15:22,015 INFO [BuildLogsPushWorker-89 ] LogsServiceImpl : https://OCTANE_SERVER?p=142001 successfully pushed log of 'JOB_NAME #9', root job : JOB_NAME to WS 1002, correlation Id = 29ba96ee3ea4405c96ed3917d
          }}

           

          Mark Serencha added a comment - - edited Similar (same?) issue occurring. Fortify scan is triggered, and runs to completion, but no Vulnerabilities are loaded into Octane. Jenkins LTS 2.303.1 on Kubernetes Micro Focus Application Automation Tools plugin 7.0 Fortify on Demand plugin 6.1.0 Octane 16.0.116.45 API permissions verified Fortify permissions verified Relevant nga.log below: {{ 01/10/2021 17:15:21,111 ERROR [VulnerabilitiesPushWorker-92 ] VulnerabilitiesServiceImpl : https://OCTANE_SERVER?p=142001  permanent error on ' JOB_NAME #9', passing over com.hp.octane.integrations.exceptions.PermanentException: Cannot authenticate:Not Found at com.hp.octane.integrations.services.vulnerabilities.fod.dto.FODConnector.getAccessToken(FODConnector.java:213) ~ [integrations-sdk-2.7.0.18.jar:?] at com.hp.octane.integrations.services.vulnerabilities.fod.dto.FODConnector.initConnection(FODConnector.java:80) ~ [integrations-sdk-2.7.0.18.jar:?] at com.hp.octane.integrations.services.vulnerabilities.fod.dto.FodConnectionFactory.createFodConnector(FodConnectionFactory.java:75) ~ [integrations-sdk-2.7.0.18.jar:?] at com.hp.octane.integrations.services.vulnerabilities.fod.dto.FodConnectionFactory.instance(FodConnectionFactory.java:39) ~ [integrations-sdk-2.7.0.18.jar:?] at com.hp.octane.integrations.services.vulnerabilities.fod.dto.services.FODReleaseService.getScansLastInFirstFetched(FODReleaseService.java:36) ~ [integrations-sdk-2.7.0.18.jar:?] at com.hp.octane.integrations.services.vulnerabilities.fod.FODServiceImpl.fodScanIsStillInProgress(FODServiceImpl.java:109) ~ [integrations-sdk-2.7.0.18.jar:?] at com.hp.octane.integrations.services.vulnerabilities.fod.FODServiceImpl.getVulnerabilitiesScanResultStream(FODServiceImpl.java:71) ~ [integrations-sdk-2.7.0.18.jar:?] at com.hp.octane.integrations.services.vulnerabilities.VulnerabilitiesServiceImpl.processPushVulnerabilitiesQueueItem(VulnerabilitiesServiceImpl.java:231) ~ [integrations-sdk-2.7.0.18.jar:?] at com.hp.octane.integrations.services.vulnerabilities.VulnerabilitiesServiceImpl.worker(VulnerabilitiesServiceImpl.java:172) ~ [integrations-sdk-2.7.0.18.jar:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?] at java.lang.Thread.run(Thread.java:829) [?:?] 01/10/2021 17:15:22,015 INFO [BuildLogsPushWorker-89 ] LogsServiceImpl : https://OCTANE_SERVER?p=142001  successfully pushed log of ' JOB_NAME #9', root job : JOB_NAME to WS 1002, correlation Id = 29ba96ee3ea4405c96ed3917d }}  

            onentwoo nir yom tov
            akevinlee Kevin Lee
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: