Skip to content

SonarQube (Enterprise EditionVersion 10.3 --build 82913) Content Security Policy blocking the plugin resource #893

Closed
@platformbeheer-otv

Description

@platformbeheer-otv

Describe the bug
We are currently using SonarQube Enterprise Edition Version 10.3. We are encountering an issue when integrating Dependency-Check reports using dependency-check Sonarqube plugin v4.0.0.
The report HTML file, which utilizes inline scripting, is blocked by CSP when we attempt to click on links and buttons to view dynamic content generated by scripting. The content of the overview is already present, but it cannot load or activate the appropriate elements dynamically due to CSP (content security policy) in SonarQube 10.3.

To Reproduce
Steps to reproduce the behavior:

  1. Initiate a Java build and verification process from the CI/CD pipeline in Azure DevOps using YAML format.
  2. The pipeline successfully scans the dependencies as configured in the Maven plugin dependency checker.
  3. An overview file named 'dependency-check-report.html' is generated locally on the build server.
  4. The SonarQube Publish Task uploads the overview file to the SonarQube Enterprise on-premises server.
  5. The SonarQube Plugin Dependency checker automatically integrates the overview file.
  6. Access the SonarQube web portal and navigate to the dashboard.
  7. From the Project Menu item, select [More] and then [Dependency Checker].
  8. The overview file should now be visible on the SonarQube Dashboard.
  9. Attempt to click on one of the [+] icon to expand the sections or click on one of the [suppress] buttons to view the related XML value in a popup.
  10. Observe that these click actions do not work due to CSP blocking.

Current behavior
Integrated HTML overview of the dependencies is shown on the Dashboard SonarQube. But it is not possible to click on any links and buttons

Expected behavior
Integrated HTML overview of the dependencies must be shown on the Dashboard SonarQube.
And it must be possible to click on any links and buttons in this overview

Screenshots
image

Versions (please complete the following information):

  • dependency-check-9.0.4
  • sonarqube (Enterprise EditionVersion 10.3 --build 82913)
  • dependency-check-sonar-plugin 4.0.0

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    buglifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions