Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v9 readiness] Add product header in FTR test #200833

Conversation

TinaHeiligers
Copy link
Contributor

@TinaHeiligers TinaHeiligers commented Nov 19, 2024

Related to #197110

Elasticsearch has deprecated access to system indices, and is surfaced in the Kibana deprecation logger and in the ES deprecation log (this is viewable in Discover by end users).

We can decide to exclude these from the “digest” because it is counterproductive for Kibana to display deprecation warnings that users cannot resolve.

To improve the user experience, this pull request (PR) effectively suppresses these deprecation logs for the /internal/detection_engine/prebuilt_rules/upgrade/_perform endpoint, allowing users to focus on actionable items.

@TinaHeiligers TinaHeiligers added release_note:skip Skip the PR/issue when compiling release notes backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) labels Nov 19, 2024
@TinaHeiligers TinaHeiligers requested a review from a team as a code owner November 19, 2024 23:58
@TinaHeiligers TinaHeiligers added the Team:Detection Rule Management Security Detection Rule Management Team label Nov 19, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-detection-rule-management (Team:Detection Rule Management)

@TinaHeiligers
Copy link
Contributor Author

@jloleysens This PR could be an example of suppressing elasticsearch deprecation warnings.

@TinaHeiligers TinaHeiligers self-assigned this Nov 20, 2024
@TinaHeiligers TinaHeiligers requested a review from a team November 20, 2024 20:13
@TinaHeiligers TinaHeiligers changed the title remove exclusive test [v9 readiness] Add product header in FTR test Nov 20, 2024
@TinaHeiligers
Copy link
Contributor Author

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #5 / discover Discover CSV Export Generate CSV: new search generates a report from a new search with data: default

Metrics [docs]

✅ unchanged

History

cc @TinaHeiligers

@banderror banderror self-requested a review November 25, 2024 11:13
Copy link
Contributor

@banderror banderror left a comment

Choose a reason for hiding this comment

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

@TinaHeiligers Thank you for submitting this. Could you please elaborate more on what this PR is supposed to fix, specifically, and how it is related to #197110?

Just a couple of things that would be great to clarify:

  • Why only the /internal/detection_engine/prebuilt_rules/upgrade/_perform is affected by this change? Should we add the same header to other API calls to our endpoints?
  • Is there documentation explaining what x-elastic-product-origin is?
  • My understanding was that the warnings from [Security Solution] Rule Management tests shouldn't access system indices directly #197110 are triggered by attempts to write to saved object indices directly from tests. Not sure I understand how adding that header to an API call would fix this.

@TinaHeiligers
Copy link
Contributor Author

@bandarr-io this pr isn't needed, we want the deprecation logs to surface.

@TinaHeiligers TinaHeiligers deleted the kbn-deprecations-system-indices-requests branch November 26, 2024 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) release_note:skip Skip the PR/issue when compiling release notes Team:Detection Rule Management Security Detection Rule Management Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants