Skip to content

[7.x] [RAC] Fix index names used by RBAC, delete hardcoded map of Kibana features to index names (#109567)#110068

Merged
kibanamachine merged 1 commit intoelastic:7.xfrom
kibanamachine:backport/7.x/pr-109567
Aug 25, 2021
Merged

[7.x] [RAC] Fix index names used by RBAC, delete hardcoded map of Kibana features to index names (#109567)#110068
kibanamachine merged 1 commit intoelastic:7.xfrom
kibanamachine:backport/7.x/pr-109567

Conversation

@kibanamachine
Copy link
Contributor

Backports the following commits to 7.x:

…atures to index names (elastic#109567)

**Ticket:** elastic#102089

🚨 **This PR is critical for Observability 7.15** 🚨

## Summary

This PR introduces changes that fix the usage of alerts-as-data index naming in RBAC. It builds on top of elastic#109346 and replaces elastic#108872.

TODO:

- [x] Address elastic#109346 (review)
- [x] Make changes to `AlertsClient.getAuthorizedAlertsIndices()` so it starts using `RuleDataService` to get index names by feature ids.
- [x] Delete the hardcoded `mapConsumerToIndexName` where we had incorrect index names.
- [x] Close elastic#108872

### Checklist

Delete any items that are not applicable to this PR.

- [ ] [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
@kibanamachine
Copy link
Contributor Author

💚 Build Succeeded

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
ruleRegistry 114 117 +3

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
apm 4.4MB 4.4MB -296.0B
observability 568.2KB 567.8KB -327.0B
securitySolution 6.5MB 6.5MB -296.0B
timelines 442.4KB 441.3KB -1.2KB
total -2.1KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
infra 149.5KB 149.2KB -296.0B
uptime 36.4KB 36.2KB -296.0B
total -592.0B
Unknown metric groups

API count

id before after diff
ruleRegistry 136 140 +4

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @banderror

@kibanamachine kibanamachine merged commit 8db2bc1 into elastic:7.x Aug 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants