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

Commit

Permalink
chore: remove get key alias
Browse files Browse the repository at this point in the history
Signed-off-by: Firas Qutishat <[email protected]>
  • Loading branch information
fqutishat committed Jan 13, 2023
1 parent 23caad1 commit ca7f6dc
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 ca7f6dc

Please sign in to comment.