Skip to content

Commit

Permalink
chore: use insecure() to manifest intent instead of randomAlphanumeric
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Laprun <[email protected]>
  • Loading branch information
metacosm committed Jan 9, 2025
1 parent b5eae03 commit 1d77091
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ private static String encode(String value) {

@Override
protected Secret desired(MySQLSchema schema, Context<MySQLSchema> context) {
final var password = RandomStringUtils
.randomAlphanumeric(16); // NOSONAR: we don't need cryptographically-strong randomness here
final var password = RandomStringUtils.insecure().nextAlphanumeric(16); // NOSONAR: we don't need cryptographically-strong randomness here
final var name = schema.getMetadata().getName();
final var secretName = getSecretName(name);
final var userName = String.format(USERNAME_FORMAT, name);
Expand Down

0 comments on commit 1d77091

Please sign in to comment.