Skip to content

Commit 63acc99

Browse files
committed
Revert "Clean up for superuser role name references (elastic#83627)"
This reverts commit a9cdbf4.
1 parent 1b7b2a1 commit 63acc99

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/user/UsernamesField.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public final class UsernamesField {
1515
public static final String SYSTEM_NAME = "_system";
1616
public static final String SYSTEM_ROLE = "_system";
1717
public static final String XPACK_SECURITY_NAME = "_xpack_security";
18-
public static final String XPACK_SECURITY_ROLE = "_xpack_security";
18+
public static final String XPACK_SECURITY_ROLE = "superuser";
1919
public static final String XPACK_NAME = "_xpack";
2020
public static final String XPACK_ROLE = "_xpack";
2121
public static final String LOGSTASH_NAME = "logstash_system";

x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/enrollment/InternalEnrollmentTokenGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public class InternalEnrollmentTokenGenerator extends BaseEnrollmentTokenGenerat
5151
public InternalEnrollmentTokenGenerator(Environment environment, SSLService sslService, Client client) {
5252
this.environment = environment;
5353
this.sslService = sslService;
54-
// enrollment tokens API keys will be owned by the "_xpack_security" system user
54+
// enrollment tokens API keys will be owned by the "_xpack_security" system user ("superuser" role)
5555
this.client = new OriginSettingClient(client, SECURITY_ORIGIN);
5656
}
5757

0 commit comments

Comments
 (0)