Skip to content

Commit

Permalink
Add missing filters for customPropertySourceChain
Browse files Browse the repository at this point in the history
  • Loading branch information
bnasslahsen committed May 8, 2023
1 parent 0e3e30b commit ff8146b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,20 @@ public class ConjurConstant {
* The constant SPRING_UTIL
*/
public static final String SPRING_UTIL = "SPRING_UTIL";

/**
* The constant ACTUATOR_PREFIX.
*/
public static final String ACTUATOR_PREFIX = "management";

/**
* The constant LOGGING_PREFIX.
*/
public static final String LOGGING_PREFIX = "logging";

/**
* The constant KUBERNETES_PREFIX.
*/
public static final String KUBERNETES_PREFIX = "kubernetes";

}
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ public Object getProperty(String key) {

if (!(key.startsWith(ConjurConstant.SPRING_VAR)) && !(key.startsWith(ConjurConstant.SERVER_VAR))
&& !(key.startsWith(ConjurConstant.ERROR)) && !(key.startsWith(ConjurConstant.SPRING_UTIL))
&& !(key.startsWith(ConjurConstant.CONJUR_PREFIX))) {

&& !(key.startsWith(ConjurConstant.CONJUR_PREFIX)) && !(key.startsWith(ConjurConstant.ACTUATOR_PREFIX))
&& !(key.startsWith(ConjurConstant.LOGGING_PREFIX)) && !(key.startsWith(ConjurConstant.KUBERNETES_PREFIX))) {
try {
String account = ConjurConnectionManager.getAccount(secretsApi);
String secretValue = secretsApi.getSecret(account, ConjurConstant.CONJUR_KIND, key);
Expand Down

0 comments on commit ff8146b

Please sign in to comment.