From 9600d35501535d0ef854fb0ff68220c4d7ad9a3d Mon Sep 17 00:00:00 2001 From: Arnaud Dartois Date: Thu, 29 Oct 2026 09:15:58 +0100 Subject: [PATCH] docs: record SonarQube 25.9 runtime verification --- .claude/skills/sonarqube-plugin-development/SKILL.md | 4 ++-- README.md | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.claude/skills/sonarqube-plugin-development/SKILL.md b/.claude/skills/sonarqube-plugin-development/SKILL.md index 0faa2a0..1571824 100644 --- a/.claude/skills/sonarqube-plugin-development/SKILL.md +++ b/.claude/skills/sonarqube-plugin-development/SKILL.md @@ -4,7 +4,7 @@ description: Use when adding or changing Java plugin entry points, extension reg --- # SonarQube plugin development -- Target SonarQube Community Build `25.9.0.112764`; use Java 17 bytecode and the matching public plugin API (`13.0.0.3026`, confirmed from the target server dependency metadata). +- Target SonarQube Community Build `25.9.0.112764`; use Java 17 bytecode and plugin API `13.0.0.3026`, inferred from target server dependency metadata and confirmed by a successful plugin load on the exact target image. - Declare all server extensions through `Plugin.Context.addExtensions`; keep constructors free of service work. - Use only `org.sonar.api.*` public API. Never import `org.sonar.server.*`, DAO classes, or implementation packages. - Define settings through `PropertyDefinition`; secured values must use a `.secured` key and PASSWORD type. @@ -30,5 +30,5 @@ description: Use when adding or changing Java plugin entry points, extension reg - SonarQube project creation REST API: https://docs.sonarsource.com/sonarqube-community-build/project-administration/creating-project/automating-creation (consulted 2026-10-28) ## Not verified -- Full target-tag SonarQube source checkout was not available; API pin follows target dependency metadata and the published 25.8/25.10 compatibility table. +- Full target-tag SonarQube source checkout was not available; the plugin build and startup were verified against the exact target image. - The target server's `api/users/current` permissions response and local connector caller context were not tested live. diff --git a/README.md b/README.md index 8409b11..752daa5 100644 --- a/README.md +++ b/README.md @@ -4,14 +4,14 @@ Proof of concept plugin that lists Gitea repositories and creates SonarQube Comm ## Target and status -- SonarQube Community Build: `25.9.0.112764` (minimum tested target is tracked separately from the plugin API manifest field). +- SonarQube Community Build: `25.9.0.112764` (tested by loading the plugin in the exact Community Build image). - Sonar plugin API: `13.0.0.3026`. - Java: 17. - Artifact: `sonar-bifrost-plugin-.jar`. - Generated build version: `@PLUGIN_VERSION@`. - Maven is used because SonarSource publishes the supported plugin packaging extension for Maven. -The Docker build completed with Java 17, all eight unit tests passed, and the exported JAR manifest contains the expected plugin key, class, version, name, and minimum plugin API version. Live Gitea calls, SonarQube startup, and browser behavior have not been verified here. +The Docker build completed with Java 17, all eight unit tests passed, and the exported JAR manifest contains the expected plugin key, class, version, name, and minimum plugin API version. The exact 25.9.0.112764 Community Build started with the plugin, reported `UP`, and served the page bundle with HTTP 200. Live Gitea calls and authenticated browser import behavior have not been verified here. ## Tree @@ -140,12 +140,12 @@ When the SonarQube target changes, update version-sensitive skill claims only af ## Limitations and risks -- The official plugin API compatibility table omits Community Build 25.9. `13.0.0.3026` is inferred from the target server's published dependency metadata and adjacent releases; a real 25.9 build/startup check remains required. +- The official plugin API compatibility table omits Community Build 25.9. `13.0.0.3026` was inferred from target server dependency metadata and adjacent releases; the plugin has now built and loaded successfully on the exact 25.9.0.112764 image. - The manifest `Sonar-Version` denotes the minimum plugin API version. The separate `sonar.minimumVersion` property records the target product release because the documented manifest field does not encode a SonarQube product version. - The UTF-8 plugin display name is set to ASCII `Bifrost` because manifest encoding has not yet been confirmed by inspecting a built JAR. -- The page uses public same-origin REST endpoints `api/projects/create` and `api/project_links/create`. Endpoint parameter and permission behavior should be verified on a live 25.9 instance. +- The page uses same-origin REST endpoints `api/projects/create` and `api/project_links/create`. Their authenticated parameter and permission behavior still needs a browser import test. - Existing-project detection uses `api/components/show` through the public `LocalConnector` for each repository. Projects the user cannot browse may return a permission error; the importer stops that organization list rather than guessing that those projects are missing. -- Create Projects permission is checked against `api/users/current` through `LocalConnector`. Its response shape and preservation of the caller context need verification on a live 25.9 instance. +- Create Projects permission is checked against `api/users/current` through `LocalConnector`. The unauthenticated route correctly returns HTTP 401, but permission parsing and caller context still need an authenticated check. - The global page menu is not conditionally hidden by Create Projects permission because the public page API documents only administrator gating. Every data and import web service checks Create Projects; direct same-origin project creation is also enforced by SonarQube. Menu hiding is a UI limitation. - The Gitea token scope and response fields may vary by Gitea version. The local Compose default is Gitea 1.23.8; no external instance was supplied. - The Maven launcher is a small pinned-distribution bootstrap, not the upstream Maven Wrapper JAR implementation. It requires network access for initial Maven download; the Docker build used Maven directly.