Skip to content

Commit 270cb83

Browse files
committed
MQE-1919: MFTF AWS Secrets Manager - CI Use
1 parent fd9e721 commit 270cb83

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/Magento/FunctionalTestingFramework/DataGenerator/Handlers/CredentialStore.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ private function initializeAwsSecretsManagerStorage()
166166
// Initialize AWS Secrets Manager storage
167167
$awsRegion = getenv('CREDENTIAL_AWS_SECRETS_MANAGER_REGION');
168168
$awsProfile = getenv('CREDENTIAL_AWS_SECRETS_MANAGER_PROFILE');
169+
print_r('AWS Profile:' . $awsProfile);
169170
$awsId = getenv('CREDENTIAL_AWS_ACCOUNT_ID');
171+
print_r('AWS Id:' . $awsId);
170172
if (!empty($awsRegion)) {
171173
if (empty($awsProfile)) {
172174
$awsProfile = null;

src/Magento/FunctionalTestingFramework/DataGenerator/Handlers/SecretStorage/AwsSecretsManagerStorage.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,15 @@ public function getEncryptedValue($key)
115115
$reValue = openssl_encrypt($value, parent::ENCRYPTION_ALGO, parent::$encodedKey, 0, parent::$iv);
116116
parent::$cachedSecretData[$key] = $reValue;
117117
} catch (AwsException $e) {
118+
print_r('AwsException:' . $e->getAwsErrorMessage());
118119
$error = $e->getAwsErrorCode();
119120
if (MftfApplicationConfig::getConfig()->verboseEnabled()) {
120121
LoggingUtil::getInstance()->getLogger(AwsSecretsManagerStorage::class)->debug(
121122
"AWS error code: {$error}. Unable to read value for key {$key} from AWS Secrets Manager"
122123
);
123124
}
124125
} catch (\Exception $e) {
126+
print_r('Exception:' . $e->getMessage());
125127
if (MftfApplicationConfig::getConfig()->verboseEnabled()) {
126128
LoggingUtil::getInstance()->getLogger(AwsSecretsManagerStorage::class)->debug(
127129
"Unable to read value for key {$key} from AWS Secrets Manager"

0 commit comments

Comments
 (0)