Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

sicoyle
Copy link
Contributor

@sicoyle sicoyle commented Oct 7, 2024

Description

In the event someone is using AWS IAM authentication, then they can leverage the loading of default credentials here:

awsCfg, err := config.LoadDefaultConfig(ctx)

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:

Signed-off-by: Samantha Coyle <sam@diagrid.io>
@sicoyle sicoyle requested review from a team as code owners October 7, 2024 16:41
@@ -91,14 +91,10 @@ func (m *PostgresAuthMetadata) ValidateAwsIamFields() (string, string, string, e
if awsRegion == "" {
return "", "", "", errors.New("metadata property AWSRegion is missing")
}
// Note: access key and secret keys can be optional
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the metadata yaml need to be updated?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, the yaml was previously wrong, now it's correct 😆

@yaron2 yaron2 merged commit dc65da2 into dapr:main Oct 8, 2024
88 of 89 checks passed
@sicoyle sicoyle deleted the fix-iam-meta-fields branch October 9, 2024 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants