Skip to content

Commit

Permalink
fix: store secrets on disk when partial arn is used
Browse files Browse the repository at this point in the history
  • Loading branch information
saranyailla committed Nov 27, 2024
1 parent a21b165 commit 5d5b169
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ private void save(List<SecretConfiguration> secretConfiguration) {
secretConfiguration.forEach((secretConfig) -> {
secretConfig.getLabels().forEach((label) -> {
String arn = secretConfig.getArn();
if (secrets.containsKey(arn) && secrets.get(arn).responseMap.containsKey(label)) {
responses.add(secrets.get(arn).responseMap.get(label));
}
secrets.entrySet().stream().filter(entry -> entry.getKey().contains(arn))
.filter(entry -> entry.getValue().responseMap.containsKey(label))
.forEach(entry -> responses.add(entry.getValue().responseMap.get(label)));
});
});
}
Expand Down

0 comments on commit 5d5b169

Please sign in to comment.