Skip to content

Commit

Permalink
Enable the use of colons in policy names (#496)
Browse files Browse the repository at this point in the history
Co-authored-by: Victor Nogueira <[email protected]>
  • Loading branch information
sdejong629 and felladrin authored Aug 4, 2023
1 parent acb269f commit 02df820
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions minio/resource_minio_iam_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ func validateIAMNamePolicy(v interface{}, k string) (ws []string, errors []error
"%q cannot be longer than 96 characters, name is limited to 128", k))
}

if !regexp.MustCompile(`^[\w+=,.@-]*$`).MatchString(value) {
if !regexp.MustCompile(`^[\w+=,.@:-]*$`).MatchString(value) {
errors = append(errors, fmt.Errorf(
"%q must match [\\w+=,.@-]", k))
"%q must match [\\w+=,.@:-]", k))
}
return
}
Expand Down

0 comments on commit 02df820

Please sign in to comment.