elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.64k stars 8.23k forks source link

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

Open MadameSheema opened 7 months ago

MadameSheema commented 7 months ago

The tests on x-pack/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/prebuilt_rules/notifications.cy.ts - notifications are failing in MKI environments,

Screenshot 2024-04-03 at 19 21 37
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": "2YMFZM2qSmuLG6yUKMlgmg",
"x-found-handling-cluster": "ad83cf5a754247a89796ee627ab64c75.es",
"x-found-handling-instance": "es-es-index-558f5c5d4f-vs48b",
"date": "Wed, 03 Apr 2024 17:17:05 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
}
elasticmachine commented 7 months ago

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

elasticmachine commented 7 months ago

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