Skip to content

Commit

Permalink
Clean up for superuser role name references (#83627)
Browse files Browse the repository at this point in the history
The _xpack_security user no longer has the superuser role since #81400
  • Loading branch information
ywangd authored Feb 14, 2022
1 parent 4fddf98 commit a9cdbf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public final class UsernamesField {
public static final String SYSTEM_NAME = "_system";
public static final String SYSTEM_ROLE = "_system";
public static final String XPACK_SECURITY_NAME = "_xpack_security";
public static final String XPACK_SECURITY_ROLE = "superuser";
public static final String XPACK_SECURITY_ROLE = "_xpack_security";
public static final String XPACK_NAME = "_xpack";
public static final String XPACK_ROLE = "_xpack";
public static final String LOGSTASH_NAME = "logstash_system";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class InternalEnrollmentTokenGenerator extends BaseEnrollmentTokenGenerat
public InternalEnrollmentTokenGenerator(Environment environment, SSLService sslService, Client client) {
this.environment = environment;
this.sslService = sslService;
// enrollment tokens API keys will be owned by the "_xpack_security" system user ("superuser" role)
// enrollment tokens API keys will be owned by the "_xpack_security" system user
this.client = new OriginSettingClient(client, SECURITY_ORIGIN);
}

Expand Down

0 comments on commit a9cdbf4

Please sign in to comment.