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

chore: remove get key alias #354

Merged
merged 1 commit into from
Jan 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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