Skip to content

Commit acd4f4b

Browse files
authored
Strip key, secret and token from root config options on aws clients (#44979)
* Strip key, secret and token from root config options on aws clients Revert style fix * Only strip token for now
1 parent 3fb2775 commit acd4f4b

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/Illuminate/Filesystem/FilesystemManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ protected function formatS3Config(array $config)
265265
$config['credentials'] = Arr::only($config, ['key', 'secret', 'token']);
266266
}
267267

268-
return $config;
268+
return Arr::except($config, ['token']);
269269
}
270270

271271
/**

src/Illuminate/Mail/MailManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ protected function addSesCredentials(array $config)
253253
$config['credentials'] = Arr::only($config, ['key', 'secret', 'token']);
254254
}
255255

256-
return $config;
256+
return Arr::except($config, ['token']);
257257
}
258258

259259
/**

src/Illuminate/Queue/Connectors/SqsConnector.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ public function connect(array $config)
2323
}
2424

2525
return new SqsQueue(
26-
new SqsClient($config),
26+
new SqsClient(
27+
Arr::except($config, ['token'])
28+
),
2729
$config['queue'],
2830
$config['prefix'] ?? '',
2931
$config['suffix'] ?? '',

0 commit comments

Comments
 (0)