From 98af8a9ee82880258dd207c794b2ccb9ad996e4f Mon Sep 17 00:00:00 2001 From: Ajay Gupta Date: Tue, 15 Aug 2023 16:27:34 -0400 Subject: [PATCH 1/2] Fix empty credential output when TA and Profile ARN regions don't match --- aws_signing_helper/credentials.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws_signing_helper/credentials.go b/aws_signing_helper/credentials.go index be89516..d8929c7 100644 --- a/aws_signing_helper/credentials.go +++ b/aws_signing_helper/credentials.go @@ -45,7 +45,7 @@ func GenerateCredentials(opts *CredentialsOpts, signer Signer, signatureAlgorith } if trustAnchorArn.Region != profileArn.Region { - return CredentialProcessOutput{}, err + return CredentialProcessOutput{}, errors.New("trust anchor and profile regions don't match") } if opts.Region == "" { From b5937480032ff9ad867751e4161edb36700a7084 Mon Sep 17 00:00:00 2001 From: Ajay Gupta Date: Tue, 15 Aug 2023 16:29:41 -0400 Subject: [PATCH 2/2] Increment patch version number --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2b3bf23..5225426 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION=1.0.5 +VERSION=1.0.6 release: go build -buildmode=pie -ldflags "-X 'github.com/aws/rolesanywhere-credential-helper/cmd.Version=${VERSION}' -linkmode=external -w -s" -trimpath -o build/bin/aws_signing_helper main.go