Skip to content

Commit

Permalink
Log fixes and restoring some ConfigConstants
Browse files Browse the repository at this point in the history
Signed-off-by: scosta <[email protected]>
Signed-off-by: Sam <[email protected]>
  • Loading branch information
samuelcostae committed Jun 19, 2023
1 parent 53f17a6 commit 2314a4d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public PrivilegesEvaluatorResponse evaluate(
final boolean isDebugEnabled = log.isDebugEnabled();

if( matchAnySystemIndices(requestedResolved) && !checkSystemIndexPermissionsForUser(securityRoles)){
log.warn("An account without the {} permission is trying to access a System Index. Related indexes: {}", ConfigConstants.SYSTEM_INDEX_PERMISSION, requestedResolved.getAllIndices() );
log.warn("An account without the {} permission is trying to access a System Index. Related indexes: {}", ConfigConstants.SYSTEM_INDEX_PERMISSION, getProtectedIndexes(requestedResolved).stream().collect(Collectors.joining(", ")) );
presponse.allowed = false;
return presponse.markComplete();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ public enum RolesMappingResolution {
public static final String SECURITY_RESTAPI_PASSWORD_VALIDATION_ERROR_MESSAGE = "plugins.security.restapi.password_validation_error_message";
public static final String SECURITY_RESTAPI_PASSWORD_MIN_LENGTH = "plugins.security.restapi.password_min_length";
public static final String SECURITY_RESTAPI_PASSWORD_SCORE_BASED_VALIDATION_STRENGTH = "plugins.security.restapi.password_score_based_validation_strength";
// Illegal Opcodes from here on
public static final String SECURITY_UNSUPPORTED_DISABLE_REST_AUTH_INITIALLY = "plugins.security.unsupported.disable_rest_auth_initially";
public static final String SECURITY_UNSUPPORTED_DISABLE_INTERTRANSPORT_AUTH_INITIALLY = "plugins.security.unsupported.disable_intertransport_auth_initially";
public static final String SECURITY_UNSUPPORTED_PASSIVE_INTERTRANSPORT_AUTH_INITIALLY = "plugins.security.unsupported.passive_intertransport_auth_initially";
Expand Down

0 comments on commit 2314a4d

Please sign in to comment.