Skip to content

Commit

Permalink
Add support for validating the codecommit-fips endpoint.
Browse files Browse the repository at this point in the history
Changing url regex to allow matching of git-codecommit or git-codecommit-fips
  • Loading branch information
mkeener authored May 19, 2023
1 parent 8aac35a commit e1feaf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/awsv4/signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import (
)

var (
urlRgx = regexp.MustCompile(`^https://git-codecommit\.(.*)\.(amazonaws\.com|amazonaws\.com\.cn)/v1/repos/.*$`)
urlRgx = regexp.MustCompile(`^https://(git-codecommit|git-codecommit-fips)\.(.*)\.(amazonaws\.com|amazonaws\.com\.cn)/v1/repos/.*$`)
)

// Signer implements the AWS authenticated V4 Signature Specification for
Expand Down

0 comments on commit e1feaf0

Please sign in to comment.