Skip to content

Commit

Permalink
Update FileService.java
Browse files Browse the repository at this point in the history
As a potential fix for armory/spinnaker-operator#203
This fixes the getFileContentBytes to check for an encryptedFile rather than an encryptedSecret
  • Loading branch information
michael-epperson authored Nov 3, 2023
1 parent 7d3752a commit 949e29a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public byte[] getFileContentBytes(String fileReference) throws IOException {
String localPath = cloudConfigResourceService.getLocalPath(fileReference);
return configFileService.getContents(localPath).getBytes();
}
if (EncryptedSecret.isEncryptedSecret(fileReference)) {
if (EncryptedSecret.isEncryptedFile(fileReference)) {
return secretSessionManager.decryptAsBytes(fileReference);
}

Expand Down

0 comments on commit 949e29a

Please sign in to comment.