Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

Commit

Permalink
Merge pull request #354 from fqutishat/update
Browse files Browse the repository at this point in the history
chore: remove get key alias
  • Loading branch information
fqutishat authored Jan 13, 2023
2 parents 23caad1 + ca7f6dc commit 87a03ed
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/aws/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,6 @@ func (s *Service) SignMulti(messages [][]byte, kh interface{}) ([]byte, error) {

func (s *Service) getKeyID(keyURI string) (string, error) {
if !strings.Contains(keyURI, "aws-kms") {
aliasPrefix := s.options.KeyAliasPrefix()
if strings.TrimSpace(aliasPrefix) != "" && !strings.Contains(keyURI, "alias") {
return fmt.Sprintf("alias/%s-%s", aliasPrefix, keyURI), nil
}

return keyURI, nil
}

Expand Down

0 comments on commit 87a03ed

Please sign in to comment.