Add backing indices to kibana_system permissions for TI packages supporting IOC expiration #95449
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
With earlier permissions #94506 that were added, we were able to successfully install the package manually from the Kibana UI and also execute the transform.
However, the system tests for ti* packages failing due to permission error on the source indices of the transform:
Error: error running package system tests: could not complete test run: could not add data stream config to policy: could not add package to policy; API status code = 403; response body = {"statusCode":403,"error":"Forbidden","message":"Error installing ti_recordedfuture 1.7.0: security_exception\n\tRoot causes:\n\t\tsecurity_exception: Cannot create transform [logs-ti_recordedfuture.latest_ioc-default-0.1.0] because user elastic/kibana lacks the required permissions [.ds-logs-ti_recordedfuture.threat-*:[read], logs-ti_recordedfuture_latest.threat-1.7.0:[]]"}
Adding backing indices directly using
.ds-
prefix into the existing privileges fixed the system tests locally.This PR adds a
.ds-
prefix into the existing privileges for the source indices of ti* packages so that backing indices are directly given permissions.