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

Failing ES Promotion: X-Pack Endpoint Functional Tests.x-pack/test/security_solution_endpoint/apps/endpoint - endpoint "before all" hook in "endpoint" #154741

Closed
mistic opened this issue Apr 11, 2023 · 8 comments
Labels
failed-es-promotion Team:Defend Workflows “EDR Workflows” sub-team of Security Solution

Comments

@mistic
Copy link
Member

mistic commented Apr 11, 2023

X-Pack Endpoint Functional Tests
x-pack/test/security_solution_endpoint/apps/endpoint

endpoint "before all" hook in "endpoint"

This failure is preventing the promotion of the current Elasticsearch nightly snapshot.

For more information on the Elasticsearch snapshot promotion process including how to reproduce using the unverified nightly ES build: https://www.elastic.co/guide/en/kibana/master/development-es-snapshots.html

EndpointDataLoadingError: security_exception
	Root causes:
		security_exception: Cannot create transform [endpoint.metadata_united-default-8.8.0-preview-2] because user kibana_system lacks the required permissions [.fleet-agents*:[read, view_index_metadata], .metrics-endpoint.metadata_united_default:[], metrics-endpoint.metadata_current_default*:[]]
    at installOrUpgradeEndpointFleetPackage (setup_fleet_for_endpoint.ts:119:13)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at Context.<anonymous> (index.ts:35:7)
    at Object.apply (wrap_function.js:73:16) {
  meta: [
    {
      name: 'endpoint',
      statusCode: 500,
      error: 'security_exception\n' +
        '\tRoot causes:\n' +
        '\t\tsecurity_exception: Cannot create transform [endpoint.metadata_united-default-8.8.0-preview-2] because user kibana_system lacks the required permissions [.fleet-agents*:[read, view_index_metadata], .metrics-endpoint.metadata_united_default:[], metrics-endpoint.metadata_current_default*:[]]'
    }
  ]
}
@mistic mistic added skipped-test failed-es-promotion Team:Defend Workflows “EDR Workflows” sub-team of Security Solution v8.8.0 labels Apr 11, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-defend-workflows (Team:Defend Workflows)

@mistic
Copy link
Member Author

mistic commented Apr 11, 2023

Skipped.

main: c39031e

@kevinlog
Copy link
Contributor

I reproduced this permissions issue in transform installation easily by using the latest ES from source.

image

The difference seems to be the latest ES code. If I switch between source and the older snapshot, it will work on the older snapshot.

Investigating further

@kevinlog
Copy link
Contributor

I think it may be related to this change: elastic/elasticsearch#94724

@kevinlog
Copy link
Contributor

kevinlog commented Apr 11, 2023

I confirmed with @qn895 that elastic/elasticsearch#94724 changed the way that we validate permissions in transforms.

@qn895 is working on this Kibana PR (#154665) which is meant to go with the ES PR referenced above.

After the permissions issue is resolved, the functionality and tests should be restored.

cc @przemekwitek @droberts195

@kevinlog
Copy link
Contributor

Additional skips here: #154813

jbudz pushed a commit that referenced this issue Apr 12, 2023
…e installation issue (#154813)

## Summary

Skipping additional cypress tests due to ES promotion issue here:
#154741

Will re-enable once ES issue is resolved.

### Checklist
- [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
@kevinlog
Copy link
Contributor

Tests should be able to be unskipped after we get another ES snapshot promotion including this change: elastic/elasticsearch#95187

kevinlog added a commit that referenced this issue Apr 12, 2023
## Summary

Resolves #154740
#154741

These tests were skipped due to an ES promotion block. This PR:
elastic/elasticsearch#95187 was added on the ES
side and another snapshot was promoted which should allow us to un skip
these tests.


### Checklist

- [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

Co-authored-by: Kibana Machine <[email protected]>
@kevinlog
Copy link
Contributor

closing with #154813

jen-huang added a commit that referenced this issue Apr 13, 2023
Closes #126034. Re-enable skipped suite as #154741 has been resolved.
jen-huang added a commit that referenced this issue Apr 13, 2023
Closes #154739. Re-enables skipped suites now that #154741 is resolved.
jen-huang added a commit that referenced this issue Apr 13, 2023
## Summary

Closes #126034. Re-enable skipped suite as #154741 has been resolved.
jen-huang added a commit that referenced this issue Apr 14, 2023
## Summary

Closes #154739. Re-enables skipped suites now that #154741 is resolved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
failed-es-promotion Team:Defend Workflows “EDR Workflows” sub-team of Security Solution
Projects
None yet
Development

No branches or pull requests

4 participants