Skip to content

Commit

Permalink
Discover SecretKeyHandlers by default (#1165)
Browse files Browse the repository at this point in the history
  • Loading branch information
radcortez committed May 7, 2024
1 parent 16e34bf commit 8270d29
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,16 @@ static final class Default extends SmallRyeConfigFactory {
}

public SmallRyeConfig getConfigFor(SmallRyeConfigProviderResolver configProviderResolver, ClassLoader classLoader) {
return configProviderResolver.getBuilder().forClassLoader(classLoader)
return configProviderResolver.getBuilder()
.forClassLoader(classLoader)
.addDiscoveredCustomizers()
.addDefaultSources()
.addDiscoveredInterceptors()
.addDiscoveredConverters()
.addDiscoveredSecretKeysHandlers()
.addDefaultInterceptors()
.addDefaultSources()
.addDiscoveredSources()
.addDiscoveredConverters()
.addDiscoveredInterceptors()
.addDiscoveredValidator()
.build();
}
}
Expand Down
4 changes: 4 additions & 0 deletions testsuite/extra/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@
</property>
</properties>
<threadCount>1</threadCount>
<systemPropertyVariables>
<smallrye.config.secret-handler.jasypt.password>dummy</smallrye.config.secret-handler.jasypt.password>
<smallrye.config.secret-handler.jasypt.algorithm>PBEWithHMACSHA512AndAES_256</smallrye.config.secret-handler.jasypt.algorithm>
</systemPropertyVariables>
</configuration>
<dependencies>
<dependency>
Expand Down

0 comments on commit 8270d29

Please sign in to comment.