Skip to content

Conversation

@hsablonniere
Copy link
Member

@hsablonniere hsablonniere commented Feb 4, 2026

Closes #1042

Context

Creating a Matomo addon failed with a 404 error because the operator API path was constructed incorrectly. The v4 operator APIs use paths like /v4/addon-providers/addon-${provider}/addons/..., which adds an addon- prefix. For
providers like addon-matomo, passing the full provider name resulted in addon-addon-matomo.

This inconsistency in provider naming only affects Matomo among the operators (keycloak, metabase, otoroshi don't have the addon- prefix in their keys).

Solution

Replace the isOperator boolean with an explicit operatorProvider string that specifies the exact provider name to use in API calls. This allows each provider to declare the correct string needed for the operator API path, avoiding the duplicate prefix issue.

  • addon-matomooperatorProvider: 'matomo'
  • keycloakoperatorProvider: 'keycloak' (unchanged behavior)
  • Non-operator addons (kv, addon-pulsar) simply omit the property

@hsablonniere hsablonniere requested a review from a team as a code owner February 4, 2026 21:42
@github-actions
Copy link

github-actions bot commented Feb 4, 2026

🔎 The preview has been automatically deleted.

@hsablonniere hsablonniere added this to the 4.6.0 milestone Feb 4, 2026
Copy link
Contributor

@florian-sanders-cc florian-sanders-cc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, some suggestions to match our conventions & make it slightly more robust but it could be merged as it is (tested locally as well just in case 😉)

Copy link
Contributor

@florian-sanders-cc florian-sanders-cc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah! Forgot to check the commit message: Could we reword it so that users (not contributors to this project) understand the issue that it fixes for them? (Again, this is an issue with using our conventional commits for changelog, consumers don't expect the same info as reviewers / contributors)

Something that would mention that we've fixed Matomo addon creation 🤔

@hsablonniere hsablonniere force-pushed the fix-1042-matomo-operator branch 2 times, most recently from e13b7b5 to d0519d6 Compare February 5, 2026 11:34
@hsablonniere hsablonniere changed the title fix(addon): use correct provider ID for operator API calls fix(addon): fix Matomo addon creation Feb 5, 2026
@hsablonniere hsablonniere changed the title fix(addon): fix Matomo addon creation fix(addon): fix Matomo add-on creation Feb 5, 2026
Matomo add-on creation was failing with a 404 error due to incorrect API path construction.
This fix ensures the correct provider ID is used for operator API calls.
@hsablonniere hsablonniere force-pushed the fix-1042-matomo-operator branch from d0519d6 to 3f20b65 Compare February 5, 2026 11:37
@hsablonniere hsablonniere dismissed florian-sanders-cc’s stale review February 5, 2026 13:04

Pierre said it was OK 😉

@hsablonniere hsablonniere merged commit e914744 into master Feb 5, 2026
6 checks passed
@hsablonniere hsablonniere deleted the fix-1042-matomo-operator branch February 5, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bad request during Matomo creation

3 participants