We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dbef635 + ba9ee8b commit 84387d7Copy full SHA for 84387d7
src/LaravelAwsSecretsManager.php
@@ -105,10 +105,13 @@ protected function getVariables()
105
$result = $this->client->getSecretValue([
106
'SecretId' => $secret['ARN'],
107
]);
108
- $key = $result['Name'];
109
- $secret = $result['SecretString'];
110
- putenv("$key=$secret");
111
- $this->storeToCache($result['Name'], $result['SecretString']);
+ $secretValues = json_decode($result['SecretString'], true);
+ if (isset($secretValues['name']) && isset($secretValues['value'])) {
+ $key = $secretValues['name'];
+ $secret = $secretValues['value'];
112
+ putenv("$key=$secret");
113
+ $this->storeToCache($key, $secret);
114
+ }
115
}
116
117
0 commit comments