Skip to content

Commit

Permalink
OCM-4513 | fix: Fixed kms arn regex pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
den-rgb committed Oct 26, 2023
1 parent 1e92673 commit 19ec567
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/resource/validations/kms_arn_regex_validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

var KmsArnRE = regexp.MustCompile(
`^arn:aws[\w-]*:kms:[\w-]+:\d{12}:key\/mrk-[0-9a-f]{32}$|[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$`,
`^arn:aws[\w-]*:kms:[\w-]+:\d{12}:key\/(mrk-[0-9a-f]{32}$|[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$)`,
)

func ValidateKMSKeyARN(kmsKeyARN *string) error {
Expand Down

0 comments on commit 19ec567

Please sign in to comment.