Skip to content

chore: update go-package-spec for package-spec 3.6.6 - #73

Merged
andrewkroh merged 2 commits into
mainfrom
update-go-package-spec-3.6.6
Aug 4, 2026
Merged

chore: update go-package-spec for package-spec 3.6.6#73
andrewkroh merged 2 commits into
mainfrom
update-go-package-spec-3.6.6

Conversation

@andrewkroh

Copy link
Copy Markdown
Owner

Bumps github.com/andrewkroh/go-package-spec to pick up support for package-spec 3.6.6 (go-package-spec#26).

Dependency-only change — no code changes were needed. fleetpkg-mcp builds its schema from pkgsql.TableSchemas(), so new columns and asset types flow through automatically.

What users can expect in their database

New group column on the packages table. 3.6.6 adds an optional top-level group field to integration, input, and content manifests for declaring marketplace group membership. Packages that share a value belong to the same group. Kibana owns the group's title, icon, and description; the manifest field only declares membership, and values are not validated against Kibana's group list.

Note that group is a SQLite keyword, so it must be quoted in queries:

SELECT name, type, "group" FROM packages WHERE "group" IS NOT NULL;

No package in elastic/integrations sets group yet, so this column is currently NULL for every row. It's in place for when packages start adopting it.

Saved search assets from content packages. 3.6.6 allows content packages to ship kibana/search/*.json. Those objects now appear in kibana_saved_objects with asset_type = 'search', the same as saved searches from integration packages (which were already supported).

No change for the rest of 3.6.6. Policy tests gained an ignore_fields setting, but it lives in the package-level _dev/test/config.yml, which this database doesn't index — the policy_tests table is built from the per-case _dev/test/policy/test-*.yml files instead. The remaining 3.6.6 changes are package-spec validation and tooling only and have no schema surface.

Testing

  • go build ./..., go vet ./..., and go test ./... all pass.
  • Built the database from a local elastic/integrations checkout: 479 packages loaded in ~18s, the new group column is present in sqlite_master with its doc comment and is queryable, and 510 saved search assets are indexed.

Bump github.com/andrewkroh/go-package-spec to pick up support for
package-spec 3.6.6 (go-package-spec#26).

What changes in the database:

- The `packages` table gains a `group` column, holding the new top-level
  `group` field from integration, input, and content manifests. Packages
  that share a value belong to the same marketplace group. Kibana owns
  the group's title, icon, and description; the manifest field only
  declares membership, and values are not validated against Kibana's
  group list. The column name is quoted in SQL because `group` is a
  SQLite keyword, so queries need `SELECT "group" FROM packages`.
  No package in elastic/integrations sets it yet, so the column is
  currently NULL everywhere.

- Content packages may now ship saved search assets in `kibana/search/`,
  and those rows land in `kibana_saved_objects` with
  `asset_type = 'search'`. Integration packages could already do this;
  3.6.6 extends it to content packages.

No schema change for the other 3.6.6 additions. Policy tests gained an
`ignore_fields` setting, but it lives in the package-level
_dev/test/config.yml, which is not indexed. The remaining changes are
package-spec validation and tooling only.

Verified by building the database from a local elastic/integrations
checkout: 479 packages load, the new column is present and queryable,
and 510 saved search assets are indexed.
@andrewkroh
andrewkroh merged commit 2235684 into main Aug 4, 2026
3 checks passed
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.

1 participant