Skip to content

Commit

Permalink
Merge branch 'master' into comp-md-dynamodb-2587
Browse files Browse the repository at this point in the history
  • Loading branch information
robertojrojas authored Jul 11, 2023
2 parents 26a9b44 + 836e373 commit bae2ad5
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .build-tools/pkg/metadataschema/builtin-authentication-profiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,34 @@ import (
// ParseBuiltinAuthenticationProfile returns an AuthenticationProfile(s) from a given BuiltinAuthenticationProfile.
func ParseBuiltinAuthenticationProfile(bi BuiltinAuthenticationProfile) ([]AuthenticationProfile, error) {
switch bi.Name {
case "aws":
return []AuthenticationProfile{
{
Title: "AWS: Access Key ID and Secret Access Key",
Description: "Authenticate using an Access Key ID and Secret Access Key included in the metadata",
Metadata: []Metadata{
{
Name: "accessKey",
Required: true,
Sensitive: true,
Description: "AWS access key associated with an IAM account",
Example: `"AKIAIOSFODNN7EXAMPLE"`,
},
{
Name: "secretKey",
Required: true,
Sensitive: true,
Description: "The secret key associated with the access key",
Example: `"wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"`,
},
},
},
{
Title: "AWS: Credentials from Environment Variables",
Description: "Use AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY from the environment",
Metadata: []Metadata{},
},
}, nil
case "azuread":
azureEnvironmentMetadata := Metadata{
Name: "azureEnvironment",
Expand Down

0 comments on commit bae2ad5

Please sign in to comment.