SonarQube CLI 1.10.0 - secrets allowlist, OpenCode integration and eased settings configuration

Dear community,

We’re excited to announce SonarQube CLI v1.10.0, a release that introduces a new sonar config command for persistent settings, adds OpenCode and secrets allowlist support, and delivers several reliability fixes across authentication, updates, and hooks.

What’s new

Persistent settings with sonar config

  • A new sonar config command lets you manage CLI settings that persist across invocations: sonar config set <key> <value>, sonar config get <key>, sonar config unset <key>, and sonar config list. Sensitive values are stored in the OS keychain and never printed, while non-sensitive values are stored in a config.properties file scoped to your OS user account.
  • Supported keys include network.proxy.https, network.proxy.http, log.level, telemetry.enabled, stats.enabled, and settings for the CA certificate and mTLS client certificate (path, key file, and passphrase). Run sonar config list to see them all.
  • Stored network settings take effect for outbound calls, following the precedence sonar-env > stored-config > generic-env. For example, SONAR_HTTPS_PROXY_URL overrides a stored network.proxy.https, which overrides HTTPS_PROXY. A stored log.level applies at startup, with LOG_LEVEL taking precedence.
  • Telemetry and stats are now controlled with sonar config set telemetry.enabled and sonar config set stats.enabled, replacing the sonar config telemetry and sonar config stats subcommands. Your existing preferences carry forward unchanged, and DO_NOT_TRACK keeps working independently.
  • sonar system reset now also removes your sonar config settings, including sensitive values stored in the keychain.

OpenCode integration

  • The new sonar integrate opencode command sets up the full SonarQube experience for OpenCode:
    • Secrets scanning on file reads and prompt submission.
    • Per-edit quality analysis with Sonar Vortex after the agent edits or writes a file.
    • Sonar Vortex context guidance for agents.
    • Automatic configuration of the SonarQube MCP server in opencode.json.

Manage the secrets allowlist

  • The new sonar allowlist secrets command group makes the secrets allowlist usable directly from the CLI, with show, add, remove, and clear subcommands. The sonar-secrets binary is installed automatically if needed.
  • add requires an interactive terminal, so an allowlist entry always needs a human decision. It can’t be run from an agent or script.

Smaller improvements

  • sonar list org (alias sonar list orgs) prints the organizations you can access, with the same --format options as other list commands.
  • The organization picker in sonar auth login now shows each organization’s name, key, whether you administer it, and which one is active.
  • Branch resolution (including for quality gate) now takes into account analyses done on your currently checked-out branch, even when there is no pull request.
  • When sonar run mcp is started by an MCP client without being authenticated, the client now receives a clear “Not authenticated. Run ‘sonar auth login’ to authenticate.” message instead of a generic connection error.
  • Updated the bundled secrets scanner to 2.53.0.13730: it accepts multiple files via stdin with the --input-batch flag, improves CA certificate handling, and its macOS and Windows binaries are now signed. The Unix/macOS binary was also renamed to end with .bin.
  • Updated Sonar Vortex context augmentation to 0.23.0.5451.

Fixes

  • Pre-push hook scanned the wrong content: sonar hook git-pre-push now scans the commits being pushed rather than the working-tree files, which could differ when pushing a non-checked-out branch, multiple refs, or with uncommitted changes.
  • sonar context without a keychain: An unavailable keychain (for example in containers and CI) is no longer fatal, and the error message now points to environment authentication instead of suggesting you install libsecret.
  • sonar update on Linux: Fixed an error shown after a successful update when the telemetry flush worker couldn’t start from the replaced binary.

You can find more information about this release here.

Run the sonar update command to get the latest SonarQube CLI version and enjoy these new capabilities!

Happy coding,
Farah

2 Likes