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

[MKI] Failing test: x-pack/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/prebuilt_rules/install_update_authorization.cy.ts #179965

Closed
MadameSheema opened this issue Apr 3, 2024 · 3 comments
Assignees
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team:Detection Rule Management Security Detection Rule Management Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc.

Comments

@MadameSheema
Copy link
Member

The spec file x-pack/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/prebuilt_rules/install_update_authorization.cy.ts is failing in MKI environments.

Screenshot 2024-04-03 at 19 13 36
The request we sent was:

Method: PUT
URL: https://kibana-cypress-security-solution-ephemeral-f6af6b5-ad83cf.es.eu-west-1.aws.qa.elastic.cloud/.kibana_security_solution/_mapping
Headers: {
"Connection": "keep-alive",
"kbn-xsrf": "cypress-creds",
"x-elastic-internal-origin": "security-solution",
"elastic-api-version": [
"2023-10-31"
],
"Content-Type": "application/json",
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36",
"accept": "/",
"authorization": "Basic dGVzdGluZy1pbnRlcm5hbDozWGpCWnIwNjAzamRTSkZIYVIxNTQ5Ujg=",
"accept-encoding": "gzip, deflate",
"content-length": 16
}
Body: {"dynamic":true}

-----------------------------------------------------------

The response we got was:

Status: 403 - Forbidden
Headers: {
"content-length": "565",
"content-type": "application/json",
"elastic-api-version": "2023-10-31",
"x-cloud-request-id": "e4m-xxplS8KcR6x0wqspYA",
"x-found-handling-cluster": "ad83cf5a754247a89796ee627ab64c75.es",
"x-found-handling-instance": "es-es-index-558f5c5d4f-vs48b",
"date": "Wed, 03 Apr 2024 17:05:21 GMT"
}
Body: {
"error": {
"root_cause": [
{
"type": "security_exception",
"reason": "action [indices:admin/mapping/put] is unauthorized for user [testing-internal] with effective roles [superuser] on restricted indices [.kibana_security_solution], this action is granted by the index privileges [manage,all]"
}
],
"type": "security_exception",
"reason": "action [indices:admin/mapping/put] is unauthorized for user [testing-internal] with effective roles [superuser] on restricted indices [.kibana_security_solution], this action is granted by the index privileges [manage,all]"
},
"status": 403
}
@MadameSheema MadameSheema added failed-test A test failure on a tracked branch, potentially flaky-test skipped-test Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Detection Rule Management Security Detection Rule Management Team labels Apr 3, 2024
@elasticmachine
Copy link
Contributor

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

@elasticmachine
Copy link
Contributor

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

@banderror
Copy link
Contributor

This test has been skipped in the periodic pipeline as part of https://github.com/elastic/security-team/issues/10609. We don't have any short-term plans for fixing and enabling it there. We're gonna be revisiting and extending our MKI test suite next year: #200309.

@banderror banderror closed this as not planned Won't fix, can't repro, duplicate, stale Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team:Detection Rule Management Security Detection Rule Management Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc.
Projects
None yet
Development

No branches or pull requests

4 participants