From ca7f6dc1f509a50da113834f940a80c1af4f6e4d Mon Sep 17 00:00:00 2001 From: Firas Qutishat Date: Fri, 13 Jan 2023 13:18:31 -0500 Subject: [PATCH] chore: remove get key alias Signed-off-by: Firas Qutishat --- pkg/aws/service.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkg/aws/service.go b/pkg/aws/service.go index 83aa1b8..4977855 100644 --- a/pkg/aws/service.go +++ b/pkg/aws/service.go @@ -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 }