Skip to content

Add support for saved search assets in content packages#1210

Open
tommyers-elastic wants to merge 3 commits into
elastic:mainfrom
tommyers-elastic:add-saved-search-content-packages
Open

Add support for saved search assets in content packages#1210
tommyers-elastic wants to merge 3 commits into
elastic:mainfrom
tommyers-elastic:add-saved-search-content-packages

Conversation

@tommyers-elastic

@tommyers-elastic tommyers-elastic commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds support for Kibana saved search assets (kibana/search) in content packages, mirroring the existing definition for integration packages (same filename pattern and forbidden -ecs/-ECS suffix rule).

The asset is allowed at all content spec versions (no versions: guard), following the precedent of security_rule (#885) and ml_module (#1149), and the deliberate relaxation of the slo_template/alerting_rule_template guards in #1064: since the stack already supports installing these assets, existing content packages can adopt them without a format_version bump.

Also adds a saved search asset to the good_content test package (which stays at format_version: 3.6.0, exercising the folder at an older spec version).

Why is it important?

Content packages currently cannot ship saved searches, even though integration packages can and Kibana/Fleet is already capable of installing them for content packages.

We are planning to use Integration-managed saved searches to power "inventory views" in Kibana.

Checklist

  • I have added an entry to spec/changelog.yml.

🤖 Generated with Claude Code

Saved search assets (kibana/search) are already supported in integration
packages. Allow them in content packages too, guarded to spec versions
>= 3.7.0. Fleet installs Kibana assets for content packages through the
same streaming install path as integration packages, with no per-package-type
asset filtering, so these assets are installed as-is once present.

Co-Authored-By: Claude Fable 5 <[email protected]>
@tommyers-elastic
tommyers-elastic requested a review from a team as a code owner July 21, 2026 15:50
tommyers-elastic and others added 2 commits July 21, 2026 16:53
Follow the security_rule (elastic#885) and ml_module (elastic#1149) precedent: allow
the asset at all content spec versions, since Fleet already installs it.
good_content stays at format_version 3.6.0, which also exercises the
folder at an older spec version.

Co-Authored-By: Claude Fable 5 <[email protected]>
@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

💚 Build Succeeded

History

Comment thread spec/changelog.yml
link: https://github.com/elastic/package-spec/pull/1196
- description: Add support for saved search assets in content packages.
type: enhancement
link: https://github.com/elastic/package-spec/pull/1210

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please, create a new version entry 3.6.6-next for this change.

As there is no need to add support in Kibana for this change (is that right @tommyers-elastic ?) it could be kept in 3.6.x.

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.

2 participants