You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[8.x] [Failure Store] Manage-style privileges grant both data and failures access (#125900) (#126044)
* [Failure Store] Manage-style privileges grant both data and failures access (#125900)
It's more natural for `manage` and `manage_data_stream_lifecycle` to
grant access to management style APIs both for regular data streams and
their failure stores.
This PR adds support for privileges to grant access to both data and
failures selectors (without granting access to everything, à la `all`),
and extends `manage` and `manage_data_stream_lifecycle` to grant failure
store access, in addition to regular data stream access.
`manage_failure_store` still grants failures-only access.
* Fix imports
---------
Co-authored-by: Slobodan Adamović <[email protected]>
Copy file name to clipboardExpand all lines: x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/privilege/IndexComponentSelectorPredicate.java
+4
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,10 @@ public record IndexComponentSelectorPredicate(Set<String> names, Predicate<Index
Copy file name to clipboardExpand all lines: x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/privilege/IndexPrivilege.java
+23-6
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,6 @@
50
50
importjava.util.Collections;
51
51
importjava.util.HashSet;
52
52
importjava.util.LinkedHashMap;
53
-
importjava.util.LinkedHashSet;
54
53
importjava.util.Locale;
55
54
importjava.util.Map;
56
55
importjava.util.Objects;
@@ -195,7 +194,11 @@ public final class IndexPrivilege extends Privilege {
Copy file name to clipboardExpand all lines: x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/security/authz/privilege/IndexPrivilegeTests.java
Copy file name to clipboardExpand all lines: x-pack/plugin/security/qa/security-trial/src/javaRestTest/java/org/elasticsearch/xpack/security/failurestore/FailureStoreSecurityRestIT.java
0 commit comments