Skip to content

Commit b20a09b

Browse files
authored
Add 'good' as a valid value for plugins.security.restapi.password_score_based_validation_strength (opensearch-project#5119)
Signed-off-by: Craig Perkins <cwperx@amazon.com>
1 parent a2a5e16 commit b20a09b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/opensearch/security/dlic/rest/validation/PasswordValidator.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,10 @@ public enum ScoreStrength {
131131

132132
private final String description;
133133

134-
static final List<ScoreStrength> CONFIGURATION_VALUES = ImmutableList.of(FAIR, STRONG, VERY_STRONG);
134+
static final List<ScoreStrength> CONFIGURATION_VALUES = ImmutableList.of(FAIR, GOOD, STRONG, VERY_STRONG);
135135

136136
static final String EXPECTED_CONFIGURATION_VALUES = new StringJoiner(",").add(FAIR.name().toLowerCase(Locale.ROOT))
137+
.add(GOOD.name().toLowerCase(Locale.ROOT))
137138
.add(STRONG.name().toLowerCase(Locale.ROOT))
138139
.add(VERY_STRONG.name().toLowerCase(Locale.ROOT))
139140
.toString();

0 commit comments

Comments
 (0)