Skip to content

Commit f631008

Browse files
Autoscaling: non-operator use of read-only APIs (#69423)
The capacity API is generally useful as a debugging tool and should therefore be available for non-operators too. Furthermore, to help understand the setup from the Elasticsearch side, reading out the policy definitions should also be available for non-operators.
1 parent ea131e5 commit f631008

File tree

2 files changed

+2
-4
lines changed
  • x-pack/plugin/security

2 files changed

+2
-4
lines changed

x-pack/plugin/security/qa/operator-privileges-tests/src/javaRestTest/java/org/elasticsearch/xpack/security/operator/Constants.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ public class Constants {
1313

1414
public static final Set<String> NON_OPERATOR_ACTIONS = Set.of(
1515
// "cluster:admin/autoscaling/delete_autoscaling_policy",
16-
// "cluster:admin/autoscaling/get_autoscaling_capacity",
17-
// "cluster:admin/autoscaling/get_autoscaling_policy",
16+
"cluster:admin/autoscaling/get_autoscaling_capacity",
17+
"cluster:admin/autoscaling/get_autoscaling_policy",
1818
// "cluster:admin/autoscaling/put_autoscaling_policy",
1919
"cluster:admin/component_template/delete",
2020
"cluster:admin/component_template/get",

x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/operator/OperatorOnlyRegistry.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ public class OperatorOnlyRegistry {
3232
// Autoscaling does not publish its actions to core, literal strings are needed.
3333
"cluster:admin/autoscaling/put_autoscaling_policy",
3434
"cluster:admin/autoscaling/delete_autoscaling_policy",
35-
"cluster:admin/autoscaling/get_autoscaling_policy",
36-
"cluster:admin/autoscaling/get_autoscaling_capacity",
3735
// Repository analysis actions are not mentioned in core, literal strings are needed.
3836
"cluster:admin/repository/analyze",
3937
"cluster:admin/repository/analyze/blob",

0 commit comments

Comments
 (0)