Skip to content

Commit

Permalink
Update alias regex used in fake client (#5224)
Browse files Browse the repository at this point in the history
It does not match that specified by
https://docs.aws.amazon.com/kms/latest/APIReference/API_CreateAlias.html#API_CreateAlias_RequestSyntax

Signed-off-by: Andrew Harding <azdagron@gmail.com>
  • Loading branch information
azdagron committed Jun 14, 2024
1 parent bf68502 commit 2fc296c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/plugin/keymanager/awskms/client_fake.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func newKMSClientFake(t *testing.T, c *clock.Mock) *kmsClientFake {

// Valid KMS alias name must match the expression below:
// https://docs.aws.amazon.com/kms/latest/APIReference/API_CreateAlias.html#API_CreateAlias_RequestSyntax
validAliasName: regexp.MustCompile(`alias[a-zA-Z0-9/_-]+$`),
validAliasName: regexp.MustCompile(`^alias/[a-zA-Z0-9/_-]+$`),
}
}

Expand Down

0 comments on commit 2fc296c

Please sign in to comment.