Skip to content

🐛 jamf: fix provider ID mismatch that broke all queries#8870

Open
AdamVB wants to merge 2 commits into
mainfrom
fix/jamf-provider-id-mismatch
Open

🐛 jamf: fix provider ID mismatch that broke all queries#8870
AdamVB wants to merge 2 commits into
mainfrom
fix/jamf-provider-id-mismatch

Conversation

@AdamVB

@AdamVB AdamVB commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

The jamf provider's config.go ID was "go.mondoo.com/mql/providers/jamf" while the schema (derived from jamf.lr's option provider) uses "go.mondoo.com/mql/v13/providers/jamf". At providers/runtime.go:931 the runtime compares the resource's owning provider (info.Provider, from the schema) against the connected provider's Instance.ID (from config.go). The missing /v13/ segment made them differ, and since jamf isn't in the cross-provider allowlist, every jamf resource lookup failed with "incorrect provider for asset, not adding
go.mondoo.com/mql/v13/providers/jamf" and returned no data — even though the connection to Jamf Pro succeeded.

Align the config.go ID with the .lr provider option and the go.mod module path (go.mondoo.com/mql/v13/providers/jamf). jamf was the only provider whose .lr provider option and config.go ID disagreed.

Fixes #8868

AdamVB and others added 2 commits July 1, 2026 16:26
The jamf provider's config.go ID was "go.mondoo.com/mql/providers/jamf"
while the schema (derived from jamf.lr's `option provider`) uses
"go.mondoo.com/mql/v13/providers/jamf". At providers/runtime.go:931 the
runtime compares the resource's owning provider (info.Provider, from the
schema) against the connected provider's Instance.ID (from config.go).
The missing /v13/ segment made them differ, and since jamf isn't in the
cross-provider allowlist, every jamf resource lookup failed with
"incorrect provider for asset, not adding
go.mondoo.com/mql/v13/providers/jamf" and returned no data — even though
the connection to Jamf Pro succeeded.

Align the config.go ID with the .lr provider option and the go.mod module
path (go.mondoo.com/mql/v13/providers/jamf). jamf was the only provider
whose .lr provider option and config.go ID disagreed.

Fixes #8868

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mondoo-code-review

Copy link
Copy Markdown

No reviewable changes found. All changed files were either excluded by path filters or the diff was empty.

@mondoo-code-review mondoo-code-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Provider ID fix is incomplete — defaults.go still has the old ID, so provider lookup will remain broken at runtime.

Comment thread providers/jamf/config/config.go Outdated
@@ -12,8 +12,8 @@ import (

var Config = plugin.Provider{
Name: "jamf",
ID: "go.mondoo.com/mql/providers/jamf",
Version: "13.1.6",
ID: "go.mondoo.com/mql/v13/providers/jamf",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔴 critical — The ID is updated here but providers/defaults.go line 432 still has the old value "go.mondoo.com/mql/providers/jamf". The defaults registry is what the runtime uses to discover providers before their binary is loaded, so the mismatch will persist. Update providers/defaults.go to use "go.mondoo.com/mql/v13/providers/jamf" as well.

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Test Results

11 228 tests  ±0   11 221 ✅ ±0   5m 32s ⏱️ + 2m 2s
   546 suites ±0        7 💤 ±0 
    40 files   ±0        0 ❌ ±0 

Results for commit 28813e3. ± Comparison against base commit 183d779.

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.

🐛 jamf: provider ID mismatch breaks all queries ("incorrect provider for asset")

1 participant