Skip to content

Comments

[Security Assistant] Hide Security AI Prompts package from UI#227308

Merged
stephmilovic merged 6 commits intoelastic:mainfrom
stephmilovic:hide_prompts
Jul 11, 2025
Merged

[Security Assistant] Hide Security AI Prompts package from UI#227308
stephmilovic merged 6 commits intoelastic:mainfrom
stephmilovic:hide_prompts

Conversation

@stephmilovic
Copy link
Contributor

@stephmilovic stephmilovic commented Jul 9, 2025

Summary

In order to keep prompt internal tooling and configurations out of end-user workflows and reduce the risk of accidental data loss or misconfiguration, product has requested that the Security AI Prompts package from UI be hidden from the UI. This PR:

  1. Hides the integration from the Integrations UI to prevent it from being discoverable.
  2. Hides the associated saved objects from the Saved Objects UI. This ensures users won’t accidentally modify or remove critical saved objects, which could disrupt functionality or create support issues.

To test

  1. Start a fresh instance of ES + Kibana
  2. Navigate to a security page, wait a couple of minutes for the prompts to be installed
  3. Ensure the integration has installed before performing the next steps. You can do this by querying for the prompt saved objects in dev tools:
GET .kibana/_search
{
  "query": {
    "term": {
      "type": {
        "value": "security-ai-prompt"
      }
    }
  }
}
  1. Visit integrations page, check "beta" integration checkbox on the Browse Integrations tab. Search for prompts. Ensure Security AI Prompts does not show up
  2. Click on the Installed integrations tab. Ensure Security AI Prompts does not show up
  3. Navigate to Stack Management > Saved Objects, ensure no Security AI Prompts SOs show up

@stephmilovic stephmilovic requested review from a team as code owners July 9, 2025 18:25
@stephmilovic stephmilovic added release_note:skip Skip the PR/issue when compiling release notes Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Security Generative AI Security Generative AI backport:version Backport to applied version labels v9.1.0 v8.19.0 v9.2.0 labels Jul 9, 2025
@botelastic botelastic bot added the Team:Fleet Team label for Observability Data Collection Fleet team label Jul 9, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

Copy link
Contributor

@jen-huang jen-huang left a comment

Choose a reason for hiding this comment

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

Thanks for the changes! 1 small comment but LGTM 🚀

Copy link
Contributor

@andrew-goldstein andrew-goldstein left a comment

Choose a reason for hiding this comment

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

Thanks for this update @stephmilovic! 🙏
✅ Desk tested locally
LGTM 🚀

@stephmilovic
Copy link
Contributor Author

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

@stephmilovic stephmilovic merged commit ce8c5bc into elastic:main Jul 11, 2025
12 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19, 9.1

https://github.com/elastic/kibana/actions/runs/16230728160

@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.19 Backport failed because of merge conflicts
9.1

Note: Successful backport PRs will be merged automatically after passing CI.

Manual backport

To create the backport manually run:

node scripts/backport --pr 227308

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Jul 12, 2025
…227308) (#227732)

# Backport

This will backport the following commits from `main` to `9.1`:
- [[Security Assistant] Hide Security AI Prompts package from UI
(#227308)](#227308)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Steph
Milovic","email":"stephanie.milovic@elastic.co"},"sourceCommit":{"committedDate":"2025-07-11T22:13:48Z","message":"[Security
Assistant] Hide Security AI Prompts package from UI
(#227308)","sha":"ce8c5bcc1268ce53b431612a9b1ee035c4af39cf","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","Team:
SecuritySolution","Team:Security Generative
AI","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[Security
Assistant] Hide Security AI Prompts package from
UI","number":227308,"url":"https://github.com/elastic/kibana/pull/227308","mergeCommit":{"message":"[Security
Assistant] Hide Security AI Prompts package from UI
(#227308)","sha":"ce8c5bcc1268ce53b431612a9b1ee035c4af39cf"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/227308","number":227308,"mergeCommit":{"message":"[Security
Assistant] Hide Security AI Prompts package from UI
(#227308)","sha":"ce8c5bcc1268ce53b431612a9b1ee035c4af39cf"}}]}]
BACKPORT-->

Co-authored-by: Steph Milovic <stephanie.milovic@elastic.co>
@stephmilovic
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.19

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

stephmilovic added a commit to stephmilovic/kibana that referenced this pull request Jul 14, 2025
…c#227308)

(cherry picked from commit ce8c5bc)

# Conflicts:
#	x-pack/platform/plugins/shared/fleet/server/routes/epm/handlers.ts
stephmilovic added a commit that referenced this pull request Jul 15, 2025
…227308) (#227841)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[Security Assistant] Hide Security AI Prompts package from UI
(#227308)](#227308)

<!--- Backport version: 10.0.1 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Steph
Milovic","email":"stephanie.milovic@elastic.co"},"sourceCommit":{"committedDate":"2025-07-11T22:13:48Z","message":"[Security
Assistant] Hide Security AI Prompts package from UI
(#227308)","sha":"ce8c5bcc1268ce53b431612a9b1ee035c4af39cf","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","Team:
SecuritySolution","Team:Security Generative
AI","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[Security
Assistant] Hide Security AI Prompts package from
UI","number":227308,"url":"https://github.com/elastic/kibana/pull/227308","mergeCommit":{"message":"[Security
Assistant] Hide Security AI Prompts package from UI
(#227308)","sha":"ce8c5bcc1268ce53b431612a9b1ee035c4af39cf"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/227732","number":227732,"state":"MERGED","mergeCommit":{"sha":"a60d20a19921b14db12a55d081e4e12c1f68f2dc","message":"[9.1]
[Security Assistant] Hide Security AI Prompts package from UI (#227308)
(#227732)\n\n# Backport\n\nThis will backport the following commits from
`main` to `9.1`:\n- [[Security Assistant] Hide Security AI Prompts
package from
UI\n(#227308)](https://github.com/elastic/kibana/pull/227308)\n\n\n\n###
Questions ?\nPlease refer to the [Backport
tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\nCo-authored-by:
Steph Milovic
<stephanie.milovic@elastic.co>"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/227308","number":227308,"mergeCommit":{"message":"[Security
Assistant] Hide Security AI Prompts package from UI
(#227308)","sha":"ce8c5bcc1268ce53b431612a9b1ee035c4af39cf"}}]}]
BACKPORT-->

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team Team:Security Generative AI Security Generative AI Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. v8.19.0 v9.1.0 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants