Skip to content

[Security Solution] [AI Assistant] Remove citations feature flag#212204

Merged
KDKHD merged 11 commits intoelastic:mainfrom
KDKHD:enhancement/remove_citation_feature_flag
Feb 25, 2025
Merged

[Security Solution] [AI Assistant] Remove citations feature flag#212204
KDKHD merged 11 commits intoelastic:mainfrom
KDKHD:enhancement/remove_citation_feature_flag

Conversation

@KDKHD
Copy link
Copy Markdown
Member

@KDKHD KDKHD commented Feb 24, 2025

Summary

Removes the citations feature flag added in this PR: #206683

How to test:

  • Add the feature flag to kibana.dev.yaml xpack.securitySolution.enableExperimental: ['contentReferencesEnabled']
  • Start Kibana
  • You should see the log
The following configuration values are no longer supported and should be removed from the kibana configuration file:

    xpack.securitySolution.enableExperimental:
      - contentReferencesEnabled
  • Remove the feature flag from kibana.dev.yaml
  • Restart Kibana
  • You should not see the log
  • Open the Security AI assistant
  • Check "Show citations" exists in the assistant settings menu
image
  • Ask the assistant a question about your knowledge base or an alert. The response should contain a citation. (if it does not, append "include citations" to your prompt)
  • Use the shortcut option + c to toggle citations on and off. Observe if this works as expected.

Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

  • Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support
  • Documentation was added for features that require explanation or tutorials
  • Unit or functional tests were updated or added to match the most common scenarios
  • If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the docker list
  • This was checked for breaking HTTP API changes, and any breaking changes have been approved by the breaking-change committee. The release_note:breaking label should be applied in these situations.
  • Flaky Test Runner was used on any tests changed
  • The PR description includes the appropriate Release Notes section, and the correct release_note:* label is applied per the guidelines

Identify risks

Does this PR introduce any risks? For example, consider risks like hard to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified risk. Invite stakeholders and evaluate how to proceed before merging.

@KDKHD
Copy link
Copy Markdown
Member Author

KDKHD commented Feb 24, 2025

/ci

@KDKHD KDKHD added release_note:skip Skip the PR/issue when compiling release notes v9.0.0 Team:Security Generative AI Security Generative AI backport:version Backport to applied version labels v8.18.0 v9.1.0 labels Feb 24, 2025
@KDKHD KDKHD changed the title remove citations feature flag [Security Solution] [AI Assistant] Remove citations feature flag Feb 24, 2025
@KDKHD KDKHD marked this pull request as ready for review February 24, 2025 10:18
@KDKHD KDKHD requested review from a team as code owners February 24, 2025 10:18
@KDKHD KDKHD marked this pull request as draft February 24, 2025 10:21
@KDKHD KDKHD marked this pull request as ready for review February 24, 2025 10:22
@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Feb 24, 2025

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
securitySolution 8.9MB 8.9MB -354.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
securitySolution 85.3KB 85.2KB -28.0B

History

@KDKHD KDKHD requested a review from a team as a code owner February 25, 2025 11:45
@botelastic botelastic bot added the Team:Fleet Team label for Observability Data Collection Fleet team label Feb 25, 2025
@KDKHD KDKHD removed the request for review from a team February 25, 2025 11:48
@elastic elastic deleted a comment from elasticmachine Feb 25, 2025
Copy link
Copy Markdown
Contributor

@stephmilovic stephmilovic left a comment

Choose a reason for hiding this comment

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

LGTM, great work on getting this feature shipped!

@KDKHD KDKHD merged commit 638ae14 into elastic:main Feb 25, 2025
10 checks passed
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.18, 9.0

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

kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Feb 25, 2025
…stic#212204)

## Summary

Removes the citations feature flag added in this PR:
elastic#206683

#### How to test:
- Add the feature flag to kibana.dev.yaml
`xpack.securitySolution.enableExperimental:
['contentReferencesEnabled']`
- Start Kibana
- You should see the log
```
The following configuration values are no longer supported and should be removed from the kibana configuration file:

    xpack.securitySolution.enableExperimental:
      - contentReferencesEnabled
```
- Remove the feature flag from kibana.dev.yaml
- Restart Kibana
- You should not see the log
- Open the Security AI assistant
- Check "Show citations" exists in the assistant settings menu
<img width="869" alt="image"
src="https://github.com/user-attachments/assets/34a4c812-bccd-4eef-a9f9-7c834faff951"
/>

- Ask the assistant a question about your knowledge base or an alert.
The response should contain a citation. (if it does not, append "include
citations" to your prompt)
- Use the shortcut option + c to toggle citations on and off. Observe if
this works as expected.

### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [X] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [X]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [X] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [X] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [X] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [X] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [X] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] [See some risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
- [ ] ...

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 638ae14)
@kibanamachine
Copy link
Copy Markdown
Contributor

💔 Some backports could not be created

Status Branch Result
8.18 Backport failed because of merge conflicts
9.0

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

Manual backport

To create the backport manually run:

node scripts/backport --pr 212204

Questions ?

Please refer to the Backport tool documentation

@KDKHD
Copy link
Copy Markdown
Member Author

KDKHD commented Feb 25, 2025

💚 All backports created successfully

Status Branch Result
8.18

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

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Feb 25, 2025
#212204) (#212400)

# Backport

This will backport the following commits from `main` to `9.0`:
- [[Security Solution] [AI Assistant] Remove citations feature flag
(#212204)](#212204)

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

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

<!--BACKPORT [{"author":{"name":"Kenneth
Kreindler","email":"42113355+KDKHD@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-02-25T15:42:29Z","message":"[Security
Solution] [AI Assistant] Remove citations feature flag (#212204)\n\n##
Summary\n\nRemoves the citations feature flag added in this
PR:\nhttps://github.com//pull/206683\n\n#### How to
test:\n- Add the feature flag to
kibana.dev.yaml\n`xpack.securitySolution.enableExperimental:\n['contentReferencesEnabled']`\n-
Start Kibana\n- You should see the log \n```\nThe following
configuration values are no longer supported and should be removed from
the kibana configuration file:\n\n
xpack.securitySolution.enableExperimental:\n -
contentReferencesEnabled\n```\n- Remove the feature flag from
kibana.dev.yaml\n- Restart Kibana\n- You should not see the log\n- Open
the Security AI assistant\n- Check \"Show citations\" exists in the
assistant settings menu\n<img width=\"869\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/34a4c812-bccd-4eef-a9f9-7c834faff951\"\n/>\n\n-
Ask the assistant a question about your knowledge base or an alert.\nThe
response should contain a citation. (if it does not, append
\"include\ncitations\" to your prompt)\n- Use the shortcut option + c to
toggle citations on and off. Observe if\nthis works as
expected.\n\n\n### Checklist\n\nCheck the PR satisfies following
conditions. \n\nReviewers should verify this PR satisfies this list as
well.\n\n- [X] Any text added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[X]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [X] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [X] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[X] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [X] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [X] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n###
Identify risks\n\nDoes this PR introduce any risks? For example,
consider risks like hard\nto test bugs, performance regression,
potential of data loss.\n\nDescribe the risk, its severity, and
mitigation for each identified\nrisk. Invite stakeholders and evaluate
how to proceed before merging.\n\n- [ ] [See some
risk\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)\n-
[ ] ...\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"638ae14772149ce7cb7ec8baf1430cb4f449fdf9","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","v9.0.0","Team:Security
Generative AI","backport:version","v8.18.0","v9.1.0"],"title":"[Security
Solution] [AI Assistant] Remove citations feature
flag","number":212204,"url":"https://github.com/elastic/kibana/pull/212204","mergeCommit":{"message":"[Security
Solution] [AI Assistant] Remove citations feature flag (#212204)\n\n##
Summary\n\nRemoves the citations feature flag added in this
PR:\nhttps://github.com//pull/206683\n\n#### How to
test:\n- Add the feature flag to
kibana.dev.yaml\n`xpack.securitySolution.enableExperimental:\n['contentReferencesEnabled']`\n-
Start Kibana\n- You should see the log \n```\nThe following
configuration values are no longer supported and should be removed from
the kibana configuration file:\n\n
xpack.securitySolution.enableExperimental:\n -
contentReferencesEnabled\n```\n- Remove the feature flag from
kibana.dev.yaml\n- Restart Kibana\n- You should not see the log\n- Open
the Security AI assistant\n- Check \"Show citations\" exists in the
assistant settings menu\n<img width=\"869\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/34a4c812-bccd-4eef-a9f9-7c834faff951\"\n/>\n\n-
Ask the assistant a question about your knowledge base or an alert.\nThe
response should contain a citation. (if it does not, append
\"include\ncitations\" to your prompt)\n- Use the shortcut option + c to
toggle citations on and off. Observe if\nthis works as
expected.\n\n\n### Checklist\n\nCheck the PR satisfies following
conditions. \n\nReviewers should verify this PR satisfies this list as
well.\n\n- [X] Any text added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[X]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [X] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [X] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[X] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [X] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [X] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n###
Identify risks\n\nDoes this PR introduce any risks? For example,
consider risks like hard\nto test bugs, performance regression,
potential of data loss.\n\nDescribe the risk, its severity, and
mitigation for each identified\nrisk. Invite stakeholders and evaluate
how to proceed before merging.\n\n- [ ] [See some
risk\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)\n-
[ ] ...\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"638ae14772149ce7cb7ec8baf1430cb4f449fdf9"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/212204","number":212204,"mergeCommit":{"message":"[Security
Solution] [AI Assistant] Remove citations feature flag (#212204)\n\n##
Summary\n\nRemoves the citations feature flag added in this
PR:\nhttps://github.com//pull/206683\n\n#### How to
test:\n- Add the feature flag to
kibana.dev.yaml\n`xpack.securitySolution.enableExperimental:\n['contentReferencesEnabled']`\n-
Start Kibana\n- You should see the log \n```\nThe following
configuration values are no longer supported and should be removed from
the kibana configuration file:\n\n
xpack.securitySolution.enableExperimental:\n -
contentReferencesEnabled\n```\n- Remove the feature flag from
kibana.dev.yaml\n- Restart Kibana\n- You should not see the log\n- Open
the Security AI assistant\n- Check \"Show citations\" exists in the
assistant settings menu\n<img width=\"869\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/34a4c812-bccd-4eef-a9f9-7c834faff951\"\n/>\n\n-
Ask the assistant a question about your knowledge base or an alert.\nThe
response should contain a citation. (if it does not, append
\"include\ncitations\" to your prompt)\n- Use the shortcut option + c to
toggle citations on and off. Observe if\nthis works as
expected.\n\n\n### Checklist\n\nCheck the PR satisfies following
conditions. \n\nReviewers should verify this PR satisfies this list as
well.\n\n- [X] Any text added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[X]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [X] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [X] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[X] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [X] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [X] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n###
Identify risks\n\nDoes this PR introduce any risks? For example,
consider risks like hard\nto test bugs, performance regression,
potential of data loss.\n\nDescribe the risk, its severity, and
mitigation for each identified\nrisk. Invite stakeholders and evaluate
how to proceed before merging.\n\n- [ ] [See some
risk\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)\n-
[ ] ...\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"638ae14772149ce7cb7ec8baf1430cb4f449fdf9"}}]}]
BACKPORT-->

Co-authored-by: Kenneth Kreindler <42113355+KDKHD@users.noreply.github.com>
KDKHD added a commit that referenced this pull request Feb 25, 2025
…ag (#212204) (#212418)

# Backport

This will backport the following commits from `main` to `8.18`:
- [[Security Solution] [AI Assistant] Remove citations feature flag
(#212204)](#212204)

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

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

<!--BACKPORT [{"author":{"name":"Kenneth
Kreindler","email":"42113355+KDKHD@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-02-25T15:42:29Z","message":"[Security
Solution] [AI Assistant] Remove citations feature flag (#212204)\n\n##
Summary\n\nRemoves the citations feature flag added in this
PR:\nhttps://github.com//pull/206683\n\n#### How to
test:\n- Add the feature flag to
kibana.dev.yaml\n`xpack.securitySolution.enableExperimental:\n['contentReferencesEnabled']`\n-
Start Kibana\n- You should see the log \n```\nThe following
configuration values are no longer supported and should be removed from
the kibana configuration file:\n\n
xpack.securitySolution.enableExperimental:\n -
contentReferencesEnabled\n```\n- Remove the feature flag from
kibana.dev.yaml\n- Restart Kibana\n- You should not see the log\n- Open
the Security AI assistant\n- Check \"Show citations\" exists in the
assistant settings menu\n<img width=\"869\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/34a4c812-bccd-4eef-a9f9-7c834faff951\"\n/>\n\n-
Ask the assistant a question about your knowledge base or an alert.\nThe
response should contain a citation. (if it does not, append
\"include\ncitations\" to your prompt)\n- Use the shortcut option + c to
toggle citations on and off. Observe if\nthis works as
expected.\n\n\n### Checklist\n\nCheck the PR satisfies following
conditions. \n\nReviewers should verify this PR satisfies this list as
well.\n\n- [X] Any text added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[X]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [X] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [X] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[X] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [X] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [X] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n###
Identify risks\n\nDoes this PR introduce any risks? For example,
consider risks like hard\nto test bugs, performance regression,
potential of data loss.\n\nDescribe the risk, its severity, and
mitigation for each identified\nrisk. Invite stakeholders and evaluate
how to proceed before merging.\n\n- [ ] [See some
risk\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)\n-
[ ] ...\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"638ae14772149ce7cb7ec8baf1430cb4f449fdf9","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","v9.0.0","Team:Security
Generative AI","backport:version","v8.18.0","v9.1.0"],"title":"[Security
Solution] [AI Assistant] Remove citations feature
flag","number":212204,"url":"https://github.com/elastic/kibana/pull/212204","mergeCommit":{"message":"[Security
Solution] [AI Assistant] Remove citations feature flag (#212204)\n\n##
Summary\n\nRemoves the citations feature flag added in this
PR:\nhttps://github.com//pull/206683\n\n#### How to
test:\n- Add the feature flag to
kibana.dev.yaml\n`xpack.securitySolution.enableExperimental:\n['contentReferencesEnabled']`\n-
Start Kibana\n- You should see the log \n```\nThe following
configuration values are no longer supported and should be removed from
the kibana configuration file:\n\n
xpack.securitySolution.enableExperimental:\n -
contentReferencesEnabled\n```\n- Remove the feature flag from
kibana.dev.yaml\n- Restart Kibana\n- You should not see the log\n- Open
the Security AI assistant\n- Check \"Show citations\" exists in the
assistant settings menu\n<img width=\"869\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/34a4c812-bccd-4eef-a9f9-7c834faff951\"\n/>\n\n-
Ask the assistant a question about your knowledge base or an alert.\nThe
response should contain a citation. (if it does not, append
\"include\ncitations\" to your prompt)\n- Use the shortcut option + c to
toggle citations on and off. Observe if\nthis works as
expected.\n\n\n### Checklist\n\nCheck the PR satisfies following
conditions. \n\nReviewers should verify this PR satisfies this list as
well.\n\n- [X] Any text added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[X]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [X] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [X] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[X] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [X] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [X] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n###
Identify risks\n\nDoes this PR introduce any risks? For example,
consider risks like hard\nto test bugs, performance regression,
potential of data loss.\n\nDescribe the risk, its severity, and
mitigation for each identified\nrisk. Invite stakeholders and evaluate
how to proceed before merging.\n\n- [ ] [See some
risk\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)\n-
[ ] ...\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"638ae14772149ce7cb7ec8baf1430cb4f449fdf9"}},"sourceBranch":"main","suggestedTargetBranches":["8.18"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/212400","number":212400,"state":"OPEN"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/212204","number":212204,"mergeCommit":{"message":"[Security
Solution] [AI Assistant] Remove citations feature flag (#212204)\n\n##
Summary\n\nRemoves the citations feature flag added in this
PR:\nhttps://github.com//pull/206683\n\n#### How to
test:\n- Add the feature flag to
kibana.dev.yaml\n`xpack.securitySolution.enableExperimental:\n['contentReferencesEnabled']`\n-
Start Kibana\n- You should see the log \n```\nThe following
configuration values are no longer supported and should be removed from
the kibana configuration file:\n\n
xpack.securitySolution.enableExperimental:\n -
contentReferencesEnabled\n```\n- Remove the feature flag from
kibana.dev.yaml\n- Restart Kibana\n- You should not see the log\n- Open
the Security AI assistant\n- Check \"Show citations\" exists in the
assistant settings menu\n<img width=\"869\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/34a4c812-bccd-4eef-a9f9-7c834faff951\"\n/>\n\n-
Ask the assistant a question about your knowledge base or an alert.\nThe
response should contain a citation. (if it does not, append
\"include\ncitations\" to your prompt)\n- Use the shortcut option + c to
toggle citations on and off. Observe if\nthis works as
expected.\n\n\n### Checklist\n\nCheck the PR satisfies following
conditions. \n\nReviewers should verify this PR satisfies this list as
well.\n\n- [X] Any text added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[X]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [X] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [X] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[X] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [X] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [X] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n###
Identify risks\n\nDoes this PR introduce any risks? For example,
consider risks like hard\nto test bugs, performance regression,
potential of data loss.\n\nDescribe the risk, its severity, and
mitigation for each identified\nrisk. Invite stakeholders and evaluate
how to proceed before merging.\n\n- [ ] [See some
risk\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)\n-
[ ] ...\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"638ae14772149ce7cb7ec8baf1430cb4f449fdf9"}}]}]
BACKPORT-->
@KDKHD
Copy link
Copy Markdown
Member Author

KDKHD commented Feb 26, 2025

💚 All backports created successfully

Status Branch Result
8.x

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

Questions ?

Please refer to the Backport tool documentation

KDKHD added a commit that referenced this pull request Feb 26, 2025
#212204) (#212507)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Security Solution] [AI Assistant] Remove citations feature flag
(#212204)](#212204)

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

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

<!--BACKPORT [{"author":{"name":"Kenneth
Kreindler","email":"42113355+KDKHD@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-02-25T15:42:29Z","message":"[Security
Solution] [AI Assistant] Remove citations feature flag (#212204)\n\n##
Summary\n\nRemoves the citations feature flag added in this
PR:\nhttps://github.com//pull/206683\n\n#### How to
test:\n- Add the feature flag to
kibana.dev.yaml\n`xpack.securitySolution.enableExperimental:\n['contentReferencesEnabled']`\n-
Start Kibana\n- You should see the log \n```\nThe following
configuration values are no longer supported and should be removed from
the kibana configuration file:\n\n
xpack.securitySolution.enableExperimental:\n -
contentReferencesEnabled\n```\n- Remove the feature flag from
kibana.dev.yaml\n- Restart Kibana\n- You should not see the log\n- Open
the Security AI assistant\n- Check \"Show citations\" exists in the
assistant settings menu\n<img width=\"869\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/34a4c812-bccd-4eef-a9f9-7c834faff951\"\n/>\n\n-
Ask the assistant a question about your knowledge base or an alert.\nThe
response should contain a citation. (if it does not, append
\"include\ncitations\" to your prompt)\n- Use the shortcut option + c to
toggle citations on and off. Observe if\nthis works as
expected.\n\n\n### Checklist\n\nCheck the PR satisfies following
conditions. \n\nReviewers should verify this PR satisfies this list as
well.\n\n- [X] Any text added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[X]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [X] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [X] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[X] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [X] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [X] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n###
Identify risks\n\nDoes this PR introduce any risks? For example,
consider risks like hard\nto test bugs, performance regression,
potential of data loss.\n\nDescribe the risk, its severity, and
mitigation for each identified\nrisk. Invite stakeholders and evaluate
how to proceed before merging.\n\n- [ ] [See some
risk\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)\n-
[ ] ...\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"638ae14772149ce7cb7ec8baf1430cb4f449fdf9","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","v9.0.0","Team:Security
Generative AI","backport:version","v8.18.0","v9.1.0"],"title":"[Security
Solution] [AI Assistant] Remove citations feature
flag","number":212204,"url":"https://github.com/elastic/kibana/pull/212204","mergeCommit":{"message":"[Security
Solution] [AI Assistant] Remove citations feature flag (#212204)\n\n##
Summary\n\nRemoves the citations feature flag added in this
PR:\nhttps://github.com//pull/206683\n\n#### How to
test:\n- Add the feature flag to
kibana.dev.yaml\n`xpack.securitySolution.enableExperimental:\n['contentReferencesEnabled']`\n-
Start Kibana\n- You should see the log \n```\nThe following
configuration values are no longer supported and should be removed from
the kibana configuration file:\n\n
xpack.securitySolution.enableExperimental:\n -
contentReferencesEnabled\n```\n- Remove the feature flag from
kibana.dev.yaml\n- Restart Kibana\n- You should not see the log\n- Open
the Security AI assistant\n- Check \"Show citations\" exists in the
assistant settings menu\n<img width=\"869\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/34a4c812-bccd-4eef-a9f9-7c834faff951\"\n/>\n\n-
Ask the assistant a question about your knowledge base or an alert.\nThe
response should contain a citation. (if it does not, append
\"include\ncitations\" to your prompt)\n- Use the shortcut option + c to
toggle citations on and off. Observe if\nthis works as
expected.\n\n\n### Checklist\n\nCheck the PR satisfies following
conditions. \n\nReviewers should verify this PR satisfies this list as
well.\n\n- [X] Any text added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[X]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [X] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [X] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[X] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [X] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [X] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n###
Identify risks\n\nDoes this PR introduce any risks? For example,
consider risks like hard\nto test bugs, performance regression,
potential of data loss.\n\nDescribe the risk, its severity, and
mitigation for each identified\nrisk. Invite stakeholders and evaluate
how to proceed before merging.\n\n- [ ] [See some
risk\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)\n-
[ ] ...\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"638ae14772149ce7cb7ec8baf1430cb4f449fdf9"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/212400","number":212400,"state":"MERGED","mergeCommit":{"sha":"fd5b0af2e295187dce393df86114f74a6a6d2eba","message":"[9.0]
[Security Solution] [AI Assistant] Remove citations feature flag
(#212204) (#212400)\n\n# Backport\n\nThis will backport the following
commits from `main` to `9.0`:\n- [[Security Solution] [AI Assistant]
Remove citations feature
flag\n(#212204)](https://github.com/elastic/kibana/pull/212204)\n\n\n\n###
Questions ?\nPlease refer to the [Backport
tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\nCo-authored-by:
Kenneth Kreindler
<42113355+KDKHD@users.noreply.github.com>"}},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/212418","number":212418,"state":"MERGED","mergeCommit":{"sha":"649451c6f299b1fa646313bcef8ec07fa71f8a73","message":"[8.18]
[Security Solution] [AI Assistant] Remove citations feature flag
(#212204) (#212418)\n\n# Backport\n\nThis will backport the following
commits from `main` to `8.18`:\n- [[Security Solution] [AI Assistant]
Remove citations feature
flag\n(#212204)](https://github.com/elastic/kibana/pull/212204)\n\n\n\n###
Questions ?\nPlease refer to the [Backport
tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n"}},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/212204","number":212204,"mergeCommit":{"message":"[Security
Solution] [AI Assistant] Remove citations feature flag (#212204)\n\n##
Summary\n\nRemoves the citations feature flag added in this
PR:\nhttps://github.com//pull/206683\n\n#### How to
test:\n- Add the feature flag to
kibana.dev.yaml\n`xpack.securitySolution.enableExperimental:\n['contentReferencesEnabled']`\n-
Start Kibana\n- You should see the log \n```\nThe following
configuration values are no longer supported and should be removed from
the kibana configuration file:\n\n
xpack.securitySolution.enableExperimental:\n -
contentReferencesEnabled\n```\n- Remove the feature flag from
kibana.dev.yaml\n- Restart Kibana\n- You should not see the log\n- Open
the Security AI assistant\n- Check \"Show citations\" exists in the
assistant settings menu\n<img width=\"869\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/34a4c812-bccd-4eef-a9f9-7c834faff951\"\n/>\n\n-
Ask the assistant a question about your knowledge base or an alert.\nThe
response should contain a citation. (if it does not, append
\"include\ncitations\" to your prompt)\n- Use the shortcut option + c to
toggle citations on and off. Observe if\nthis works as
expected.\n\n\n### Checklist\n\nCheck the PR satisfies following
conditions. \n\nReviewers should verify this PR satisfies this list as
well.\n\n- [X] Any text added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[X]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [X] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [X] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[X] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [X] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [X] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n###
Identify risks\n\nDoes this PR introduce any risks? For example,
consider risks like hard\nto test bugs, performance regression,
potential of data loss.\n\nDescribe the risk, its severity, and
mitigation for each identified\nrisk. Invite stakeholders and evaluate
how to proceed before merging.\n\n- [ ] [See some
risk\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)\n-
[ ] ...\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"638ae14772149ce7cb7ec8baf1430cb4f449fdf9"}}]}]
BACKPORT-->
JoseLuisGJ pushed a commit to JoseLuisGJ/kibana that referenced this pull request Feb 27, 2025
…stic#212204)

## Summary

Removes the citations feature flag added in this PR:
elastic#206683

#### How to test:
- Add the feature flag to kibana.dev.yaml
`xpack.securitySolution.enableExperimental:
['contentReferencesEnabled']`
- Start Kibana
- You should see the log 
```
The following configuration values are no longer supported and should be removed from the kibana configuration file:

    xpack.securitySolution.enableExperimental:
      - contentReferencesEnabled
```
- Remove the feature flag from kibana.dev.yaml
- Restart Kibana
- You should not see the log
- Open the Security AI assistant
- Check "Show citations" exists in the assistant settings menu
<img width="869" alt="image"
src="https://github.com/user-attachments/assets/34a4c812-bccd-4eef-a9f9-7c834faff951"
/>

- Ask the assistant a question about your knowledge base or an alert.
The response should contain a citation. (if it does not, append "include
citations" to your prompt)
- Use the shortcut option + c to toggle citations on and off. Observe if
this works as expected.


### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [X] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [X]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [X] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [X] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [X] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [X] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [X] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] [See some risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
- [ ] ...

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
SoniaSanzV pushed a commit to SoniaSanzV/kibana that referenced this pull request Mar 4, 2025
elastic#212204) (elastic#212507)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Security Solution] [AI Assistant] Remove citations feature flag
(elastic#212204)](elastic#212204)

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

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

<!--BACKPORT [{"author":{"name":"Kenneth
Kreindler","email":"42113355+KDKHD@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-02-25T15:42:29Z","message":"[Security
Solution] [AI Assistant] Remove citations feature flag (elastic#212204)\n\n##
Summary\n\nRemoves the citations feature flag added in this
PR:\nhttps://github.com/elastic/pull/206683\n\n#### How to
test:\n- Add the feature flag to
kibana.dev.yaml\n`xpack.securitySolution.enableExperimental:\n['contentReferencesEnabled']`\n-
Start Kibana\n- You should see the log \n```\nThe following
configuration values are no longer supported and should be removed from
the kibana configuration file:\n\n
xpack.securitySolution.enableExperimental:\n -
contentReferencesEnabled\n```\n- Remove the feature flag from
kibana.dev.yaml\n- Restart Kibana\n- You should not see the log\n- Open
the Security AI assistant\n- Check \"Show citations\" exists in the
assistant settings menu\n<img width=\"869\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/34a4c812-bccd-4eef-a9f9-7c834faff951\"\n/>\n\n-
Ask the assistant a question about your knowledge base or an alert.\nThe
response should contain a citation. (if it does not, append
\"include\ncitations\" to your prompt)\n- Use the shortcut option + c to
toggle citations on and off. Observe if\nthis works as
expected.\n\n\n### Checklist\n\nCheck the PR satisfies following
conditions. \n\nReviewers should verify this PR satisfies this list as
well.\n\n- [X] Any text added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[X]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [X] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [X] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[X] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [X] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [X] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n###
Identify risks\n\nDoes this PR introduce any risks? For example,
consider risks like hard\nto test bugs, performance regression,
potential of data loss.\n\nDescribe the risk, its severity, and
mitigation for each identified\nrisk. Invite stakeholders and evaluate
how to proceed before merging.\n\n- [ ] [See some
risk\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)\n-
[ ] ...\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"638ae14772149ce7cb7ec8baf1430cb4f449fdf9","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","v9.0.0","Team:Security
Generative AI","backport:version","v8.18.0","v9.1.0"],"title":"[Security
Solution] [AI Assistant] Remove citations feature
flag","number":212204,"url":"https://github.com/elastic/kibana/pull/212204","mergeCommit":{"message":"[Security
Solution] [AI Assistant] Remove citations feature flag (elastic#212204)\n\n##
Summary\n\nRemoves the citations feature flag added in this
PR:\nhttps://github.com/elastic/pull/206683\n\n#### How to
test:\n- Add the feature flag to
kibana.dev.yaml\n`xpack.securitySolution.enableExperimental:\n['contentReferencesEnabled']`\n-
Start Kibana\n- You should see the log \n```\nThe following
configuration values are no longer supported and should be removed from
the kibana configuration file:\n\n
xpack.securitySolution.enableExperimental:\n -
contentReferencesEnabled\n```\n- Remove the feature flag from
kibana.dev.yaml\n- Restart Kibana\n- You should not see the log\n- Open
the Security AI assistant\n- Check \"Show citations\" exists in the
assistant settings menu\n<img width=\"869\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/34a4c812-bccd-4eef-a9f9-7c834faff951\"\n/>\n\n-
Ask the assistant a question about your knowledge base or an alert.\nThe
response should contain a citation. (if it does not, append
\"include\ncitations\" to your prompt)\n- Use the shortcut option + c to
toggle citations on and off. Observe if\nthis works as
expected.\n\n\n### Checklist\n\nCheck the PR satisfies following
conditions. \n\nReviewers should verify this PR satisfies this list as
well.\n\n- [X] Any text added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[X]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [X] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [X] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[X] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [X] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [X] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n###
Identify risks\n\nDoes this PR introduce any risks? For example,
consider risks like hard\nto test bugs, performance regression,
potential of data loss.\n\nDescribe the risk, its severity, and
mitigation for each identified\nrisk. Invite stakeholders and evaluate
how to proceed before merging.\n\n- [ ] [See some
risk\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)\n-
[ ] ...\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"638ae14772149ce7cb7ec8baf1430cb4f449fdf9"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/212400","number":212400,"state":"MERGED","mergeCommit":{"sha":"fd5b0af2e295187dce393df86114f74a6a6d2eba","message":"[9.0]
[Security Solution] [AI Assistant] Remove citations feature flag
(elastic#212204) (elastic#212400)\n\n# Backport\n\nThis will backport the following
commits from `main` to `9.0`:\n- [[Security Solution] [AI Assistant]
Remove citations feature
flag\n(elastic#212204)](https://github.com/elastic/kibana/pull/212204)\n\n\n\n###
Questions ?\nPlease refer to the [Backport
tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\nCo-authored-by:
Kenneth Kreindler
<42113355+KDKHD@users.noreply.github.com>"}},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/212418","number":212418,"state":"MERGED","mergeCommit":{"sha":"649451c6f299b1fa646313bcef8ec07fa71f8a73","message":"[8.18]
[Security Solution] [AI Assistant] Remove citations feature flag
(elastic#212204) (elastic#212418)\n\n# Backport\n\nThis will backport the following
commits from `main` to `8.18`:\n- [[Security Solution] [AI Assistant]
Remove citations feature
flag\n(elastic#212204)](https://github.com/elastic/kibana/pull/212204)\n\n\n\n###
Questions ?\nPlease refer to the [Backport
tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n"}},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/212204","number":212204,"mergeCommit":{"message":"[Security
Solution] [AI Assistant] Remove citations feature flag (elastic#212204)\n\n##
Summary\n\nRemoves the citations feature flag added in this
PR:\nhttps://github.com/elastic/pull/206683\n\n#### How to
test:\n- Add the feature flag to
kibana.dev.yaml\n`xpack.securitySolution.enableExperimental:\n['contentReferencesEnabled']`\n-
Start Kibana\n- You should see the log \n```\nThe following
configuration values are no longer supported and should be removed from
the kibana configuration file:\n\n
xpack.securitySolution.enableExperimental:\n -
contentReferencesEnabled\n```\n- Remove the feature flag from
kibana.dev.yaml\n- Restart Kibana\n- You should not see the log\n- Open
the Security AI assistant\n- Check \"Show citations\" exists in the
assistant settings menu\n<img width=\"869\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/34a4c812-bccd-4eef-a9f9-7c834faff951\"\n/>\n\n-
Ask the assistant a question about your knowledge base or an alert.\nThe
response should contain a citation. (if it does not, append
\"include\ncitations\" to your prompt)\n- Use the shortcut option + c to
toggle citations on and off. Observe if\nthis works as
expected.\n\n\n### Checklist\n\nCheck the PR satisfies following
conditions. \n\nReviewers should verify this PR satisfies this list as
well.\n\n- [X] Any text added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[X]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [X] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [X] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[X] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [X] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [X] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n###
Identify risks\n\nDoes this PR introduce any risks? For example,
consider risks like hard\nto test bugs, performance regression,
potential of data loss.\n\nDescribe the risk, its severity, and
mitigation for each identified\nrisk. Invite stakeholders and evaluate
how to proceed before merging.\n\n- [ ] [See some
risk\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)\n-
[ ] ...\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"638ae14772149ce7cb7ec8baf1430cb4f449fdf9"}}]}]
BACKPORT-->
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Mar 22, 2025
…stic#212204)

## Summary

Removes the citations feature flag added in this PR:
elastic#206683

#### How to test:
- Add the feature flag to kibana.dev.yaml
`xpack.securitySolution.enableExperimental:
['contentReferencesEnabled']`
- Start Kibana
- You should see the log 
```
The following configuration values are no longer supported and should be removed from the kibana configuration file:

    xpack.securitySolution.enableExperimental:
      - contentReferencesEnabled
```
- Remove the feature flag from kibana.dev.yaml
- Restart Kibana
- You should not see the log
- Open the Security AI assistant
- Check "Show citations" exists in the assistant settings menu
<img width="869" alt="image"
src="https://github.com/user-attachments/assets/34a4c812-bccd-4eef-a9f9-7c834faff951"
/>

- Ask the assistant a question about your knowledge base or an alert.
The response should contain a citation. (if it does not, append "include
citations" to your prompt)
- Use the shortcut option + c to toggle citations on and off. Observe if
this works as expected.


### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [X] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [X]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [X] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [X] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [X] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [X] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [X] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] [See some risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
- [ ] ...

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@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 v8.18.0 v8.19.0 v9.0.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants