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

[Detection Engine][FTR] Use of refresh in FTRs #182889

Open
yctercero opened this issue May 7, 2024 · 3 comments
Open

[Detection Engine][FTR] Use of refresh in FTRs #182889

yctercero opened this issue May 7, 2024 · 3 comments
Labels
Team:Detection Engine Security Solution Detection Engine Area Team:Detection Rule Management Security Detection Rule Management Team Team:Detections and Resp Security Detection Response Team

Comments

@yctercero
Copy link
Contributor

yctercero commented May 7, 2024

Summary

A number of our tests (FTRs) make use of utils that manually refresh internal indices. This is ok when running them in ESS, but not when running them in Serverless. In Serverless, the superuser role does not have sufficient privileges to execute such actions on internal indices.

We can consider elevating the privileges of our test user, but that would make me worry that we may be moving our tests a bit further away from the "true" behavior.

Examples:

  • x-pack/test/security_solution_api_integration/test_suites/detections_response/utils/rules/prebuilt_rules/create_prebuilt_rule_saved_objects.ts
  • x-pack/test/security_solution_api_integration/test_suites/detections_response/utils/rules/prebuilt_rules/install_prebuilt_rules_and_timelines.ts

Action needed

Determine if there is best practice for conducting actions in tests that users may be blocked from in Serverless environment. Is it absolutely necessary? Could we do without it?

@yctercero yctercero added Team:Detections and Resp Security Detection Response Team Team:Detection Rule Management Security Detection Rule Management Team Team:Detection Engine Security Solution Detection Engine Area labels May 7, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-detections-response (Team:Detections and Resp)

@elasticmachine
Copy link
Contributor

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

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-detection-engine (Team:Detection Engine)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Detection Engine Security Solution Detection Engine Area Team:Detection Rule Management Security Detection Rule Management Team Team:Detections and Resp Security Detection Response Team
Projects
None yet
Development

No branches or pull requests

2 participants