We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a53f8e commit b40cfb3Copy full SHA for b40cfb3
backend/src/main/kotlin/no/nais/cloud/testnais/sandbox/bachelorurlforkorter/common/config/Config.kt
@@ -48,9 +48,12 @@ data class DbConfig(
48
49
private fun maskJdbcUrl(jdbcUrl: String): String {
50
return jdbcUrl
51
- .replace(Regex("(?<=://)[^:/]+:[^@]+@"), "****:****@")
52
- .replace(Regex("(?<=password=)[^&]+"), "****")
53
- .replace(Regex("(?<=user=)[^&]+"), "****")
+ .replace(Regex("(?<=://)[^:/]+:[^@]+@"), "*****:*****@")
+ .replace(Regex("(?<=password=)[^&]+"), "*****")
+ .replace(Regex("(?<=user=)[^&]+"), "*****")
54
+ .replace(Regex("(?<=sslcert=)[^&]+"), "*****")
55
+ .replace(Regex("(?<=sslkey=)[^&]+"), "*****")
56
+ .replace(Regex("(?<=sslrootcert=)[^&]+"), "*****")
57
}
58
59
0 commit comments