community-plugins icon indicating copy to clipboard operation
community-plugins copied to clipboard

SonarQube backend: Not finding instance key

Open skeletonz28 opened this issue 9 months ago • 0 comments

Workspace

sonarqube

📜 Description

As mentioned before on some closed tickets, I am experiencing the issue with the SonarQube plugin where it is not loading the card due to not finding an instance key The implementation of SonarQube we are using has been deployed into another team's AWS environment The have created both a global admin token for me (sqa_) and an encrypted secret key (ending in =) I am not sure where the instance key or name is meant to be found. There is no summary page that the admins can find. They have deployed a Community edition if this affects it in anyway

Unsure where the instance name must match or be found. On the Backstage config? On the SonarQube config? Where do we navigate to to find said instance name? There is no summary page on the deployed SonarQube ie: https://bb-sonarqube.npr-bbplfm.{domain}/summary or under admin

👍 Expected behavior

Load the details for the entity in the card

👎 Actual Behavior with Screenshots

Image Image

Unsure what the instance key is in this regard.

👟 Reproduction steps

If possible, implement an instance of SonarQube in an AWS environment Generate keys Create a project See if the project is found Find the instance name/key (<-- This is the unknown)

📃 Provide the context for the Bug.

Cannot view details of the project on the entity page See attached on the actual behaviour

This is my config. I have played around with using instances and not. chaning the name and instance name around to anything I could

sonarqube:
  instances:
  - name: bb-sonarqube.npr-bbplfm
    baseUrl: "https://bb-sonarqube.npr-bbplfm.{domain}"
    instanceKey: "bb-sonarqube.npr-bbplfm"
    apiKey: {either sqa or encrypted key}

And annotation

sonarqube.org/project-key: "bb-sonarqube.npr-bbplfm/BB.Credit.Inter.Technical.AffordabilityService"

👀 Have you spent some time to check if this bug has been raised before?

  • [x] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Are you willing to submit PR?

No, I don't have time to work on this right now

skeletonz28 avatar May 07 '25 10:05 skeletonz28