Skip to content

Commit

Permalink
Merge pull request #266 from zowe/bugfix/v2/multi-pem
Browse files Browse the repository at this point in the history
Update defaults logic for multi-pem
  • Loading branch information
DivergentEuropeans authored Jul 31, 2023
2 parents 53d91da + c3d9d48 commit 39e4dd2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to the Zlux App Server package will be documented in this file.

## v2.11.0

- Bugfix: The server couldn't load more than one certificate authority specified within the zowe.certificate.pem.certificateAuthorities section under any condition. Now, it is supported regardless of if the section is an array or a comma-separated string. (#266)

## v2.10.0

- Enhancement: Migrated app-server configuration options into a "defaults.yaml" file which adheres to the schema of the Zowe config. This allows users to see the default behaviors more clearly, and can serve as an example by which users can customize their Zowe config to override such defaults. (#247)
Expand Down
6 changes: 5 additions & 1 deletion defaults/serverConfig/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ components:
if (zowe.certificate?.truststore?.type == "JCERACFKS") {
return [ zowe.certificate.truststore.file ];
} else if(zowe.certificate?.pem?.certificateAuthorities) {
return [zowe.certificate.pem.certificateAuthorities];
if (Array.isArray(zowe.certificate.pem.certificateAuthorities)) {
return zowe.certificate.pem.certificateAuthorities;
} else {
return zowe.certificate.pem.certificateAuthorities.split(",");
}
} else { return ["../defaults/serverConfig/apiml-localca.cer"]; } };
a() }}'
loopbackAddress: "${{ function a(){ if (process.env.ZOWE_LOOPBACK_ADDRESS) { return process.env.ZOWE_LOOPBACK_ADDRESS; } else { return undefined; } }; a() }}"
Expand Down

0 comments on commit 39e4dd2

Please sign in to comment.