File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authc Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -949,7 +949,6 @@ private void checkConsistencyForApiKeyAuthenticationType() {
949949 }
950950 if (authenticatingSubject .getType () == Subject .Type .CLOUD_API_KEY ) {
951951 checkConsistencyForCloudApiKeyAuthenticatingSubject ("Cloud API key" );
952- checkNoRunAs (this , "Cloud API key" );
953952 return ;
954953 }
955954
@@ -1050,6 +1049,7 @@ private void checkConsistencyForCloudApiKeyAuthenticatingSubject(String prefixMe
10501049 final RealmRef authenticatingRealm = authenticatingSubject .getRealm ();
10511050 checkNoDomain (authenticatingRealm , prefixMessage );
10521051 checkNoInternalUser (authenticatingSubject , prefixMessage );
1052+ checkNoRunAs (this , prefixMessage );
10531053 if (authenticatingSubject .getMetadata ().get (CROSS_CLUSTER_ACCESS_ROLE_DESCRIPTORS_KEY ) != null
10541054 || authenticatingSubject .getMetadata ().get (API_KEY_ROLE_DESCRIPTORS_KEY ) != null
10551055 || authenticatingSubject .getMetadata ().get (API_KEY_LIMITED_ROLE_DESCRIPTORS_KEY ) != null ) {
You can’t perform that action at this time.
0 commit comments