dapr / components-contrib

Community driven, reusable components for distributed apps
Apache License 2.0
548 stars 480 forks source link

fix(metadata): make access/secret keys optional #3562

Closed sicoyle closed 1 month ago

sicoyle commented 1 month ago

Description

In the event someone is using AWS IAM authentication, then they can leverage the loading of default credentials here: https://github.com/dapr/components-contrib/blob/9012bdce7f0eb67c1c22fa1928a657b27d4bdd31/common/authentication/aws/aws.go#L105

Alternatively, they can supply the access key and secret key. Therefore, the accesskey and secretkey fields are optional, not required.

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #[issue number]

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list: