# SonarQube Self-Managed

With Aikido's SonarQube integration you can combine the powers of SonarQube's scanners with Aikido's de-noising engine to get a single dashboard to see all your relevant security issues.

To install the integration, you can follow the steps below.

### Prerequisite <a href="#prerequisite" id="prerequisite"></a>

* Make sure to whitelist our IP addresses. [Get them here.](/code-scanning/miscellaneous/allowing-ip-addresses-for-code-container-scanning.md)

## 1. Create an access token <a href="#id-1-create-an-access-token" id="id-1-create-an-access-token"></a>

To be able to connect to your SonarQube instance, Aikido needs to have an access token to make the API calls. To create this, login to your SonarQube your environment and then follow these steps:

1. Navigate to "My Account", via the avatar in the top-right corner.
2. Click on "Security" in the tabs in the header of the page, which should take you to the page below.
3. Enter a name for the token, use something descriptive like "AikidoSecurity integration token".
4. Select "User Token" as the token type
5. Select when the token expires
6. Click on "generate"
7. Copy this token and keep it for the next step

![SonarQube Security Settings: Generate tokens and update administrator password.](/files/MN2X1pejSyuoCH4R6J7q)

## 2. Enable the integration <a href="#id-2-enable-the-integration" id="id-2-enable-the-integration"></a>

Go to the [integration settings page](https://app.aikido.dev/settings/integrations/3rd-party-scanners/sonarqube) in your Aikido account and scroll down to the "Third-Party Scanners" section. Click on the SonarQube integration card and click on "Connect SonarQube" on the next page.

## 3. Connect your instance <a href="#id-3-connect-your-instance" id="id-3-connect-your-instance"></a>

From the dropdown select "Self managed" for the instance kind. To connect your SonarQube environment Aikido needs 2 things:

1. The access token you created in the first step
2. The URL of your instance eg: <https://example.sonarqube.com>

Fill both in their respective input fields and click on "Create". We'll let you know if we are able to connect to your environment. If this is the case we'll start scanning your environment for relevant vulnerabilities and report them in your "Feed" in Aikido.

![SonarQube Integration setup form for self-managed instance configuration.](/files/wME5NzuKsm4YncaDvhgL)

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.aikido.dev/miscellaneous-integrations/third-party-scanners/sonarqube-self-managed.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
