Skip to content

Commit 8bfa27a

Browse files
committed
Add more secret key names and switch to java 21
1 parent 37f19f8 commit 8bfa27a

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

build-logic/settings.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
rootProject.name = "build-logic"
22

33
dependencyResolutionManagement {
4-
@Suppress("UnstableApiUsage")
54
versionCatalogs {
65
create("libs") {
76
from(files("../gradle/libs.versions.toml"))

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[versions]
22
# build tools
3-
java = "17"
3+
java = "21"
44
jacoco = "0.8.11"
55

66
[libraries]

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

src/main/java/com/coditory/quark/config/SecretHidingValueMapper.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ public class SecretHidingValueMapper implements ConfigEntryMapper {
1111
private static final Set<String> DEFAULT_SECRET_NAMES = Set.of(
1212
"password", "passwords",
1313
"secret", "secrets",
14-
"token", "tokens"
14+
"token", "tokens",
15+
"key", "keys",
16+
"apiKey", "apiKeys"
1517
);
1618

1719
private static final SecretHidingValueMapper DEFAULT_SECRET_HIDING_VALUE_MAPPER =

src/test/groovy/com/coditory/quark/config/HideSecretValuesSpec.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class HideSecretValuesSpec extends Specification {
3030
]
3131
where:
3232
field << [
33-
"secret", "secrets", "password", "passwords", "token", "tokens"
33+
"secret", "secrets", "password", "passwords", "token", "tokens", "key", "keys", "apiKey", "apiKeys"
3434
]
3535
}
3636

0 commit comments

Comments
 (0)