Skip to content

Commit 776ea21

Browse files
csvirimetacosm
andauthored
fix: no sonar fix experiment (#962)
* fix: no sonar fix experiment * Update sample-operators/mysql-schema/src/main/java/io/javaoperatorsdk/operator/sample/MySQLSchemaReconciler.java Co-authored-by: Chris Laprun <[email protected]> * fix: format security issue Co-authored-by: Chris Laprun <[email protected]>
1 parent 2832fc2 commit 776ea21

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sample-operators/mysql-schema/src/main/java/io/javaoperatorsdk/operator/sample/MySQLSchemaReconciler.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ public MySQLSchemaReconciler() {}
4343
@Override
4444
public void initContext(MySQLSchema primary, Context context) {
4545
final var name = primary.getMetadata().getName();
46-
// NOSONAR we don't need cryptographically-strong randomness here
47-
final var password = RandomStringUtils.randomAlphanumeric(16);
46+
final var password = RandomStringUtils
47+
.randomAlphanumeric(16); // NOSONAR: we don't need cryptographically-strong randomness here
48+
4849
final var secretName = String.format(SECRET_FORMAT, name);
4950
final var userName = String.format(USERNAME_FORMAT, name);
5051

0 commit comments

Comments
 (0)