Skip to content

Commit

Permalink
Resolved conflicts
Browse files Browse the repository at this point in the history
Signed-off-by: HimajaDhanyamraju2 <[email protected]>
  • Loading branch information
HimajaDhanyamraju2 committed Jul 30, 2024
1 parent 1c7e647 commit 646c5d0
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions hub/start_hub.bal
Original file line number Diff line number Diff line change
Expand Up @@ -65,18 +65,6 @@ public function main() returns error? {
runtime:registerListener(hubListener);
}


function validateConfigs() returns boolean|error {
if (config:HUB_SECRET_ENCRYPTION_KEY_FORMAT.equalsIgnoreCaseAscii("base64-encoded-bytes")){
byte[]|error decodedEncryptionKey = array:fromBase64(config:HUB_SECRET_ENCRYPTION_KEY);
if (decodedEncryptionKey is byte[] && decodedEncryptionKey.length() == 32) {
return true;
}
return error("Found error in decoding the encryption key. Please set valid base64 encoded bytes as encryption key to proceed.");
}
return true;
}

function validateConfigs() returns boolean|error {
if (config:HUB_SECRET_ENCRYPTION_KEY_FORMAT.equalsIgnoreCaseAscii("base64-encoded-bytes")){
byte[]|error decodedEncryptionKey = array:fromBase64(config:HUB_SECRET_ENCRYPTION_KEY);
Expand Down

0 comments on commit 646c5d0

Please sign in to comment.