Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package terragrunt for openSUSE:Factory 
checked in at 2023-09-07 21:13:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/terragrunt (Old)
 and      /work/SRC/openSUSE:Factory/.terragrunt.new.1766 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "terragrunt"

Thu Sep  7 21:13:20 2023 rev:61 rq:1109418 version:0.50.14

Changes:
--------
--- /work/SRC/openSUSE:Factory/terragrunt/terragrunt.changes    2023-09-06 
19:03:57.995907132 +0200
+++ /work/SRC/openSUSE:Factory/.terragrunt.new.1766/terragrunt.changes  
2023-09-07 21:14:37.957362556 +0200
@@ -1,0 +2,6 @@
+Thu Sep 07 05:38:10 UTC 2023 - ka...@b1-systems.de
+
+- Update to version 0.50.14:
+  * Terragrunt version in AWS API Calls (#2701)
+
+-------------------------------------------------------------------

Old:
----
  terragrunt-0.50.13.obscpio

New:
----
  terragrunt-0.50.14.obscpio

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ terragrunt.spec ++++++
--- /var/tmp/diff_new_pack.ajvMhA/_old  2023-09-07 21:14:40.205442919 +0200
+++ /var/tmp/diff_new_pack.ajvMhA/_new  2023-09-07 21:14:40.209443062 +0200
@@ -19,7 +19,7 @@
 %define __arch_install_post export NO_BRP_STRIP_DEBUG=true
 
 Name:           terragrunt
-Version:        0.50.13
+Version:        0.50.14
 Release:        0
 Summary:        Thin wrapper for Terraform for working with multiple Terraform 
modules
 License:        MIT

++++++ _service ++++++
--- /var/tmp/diff_new_pack.ajvMhA/_old  2023-09-07 21:14:40.309446637 +0200
+++ /var/tmp/diff_new_pack.ajvMhA/_new  2023-09-07 21:14:40.337447638 +0200
@@ -3,7 +3,7 @@
     <param name="url">https://github.com/gruntwork-io/terragrunt</param>
     <param name="scm">git</param>
     <param name="exclude">.git</param>
-    <param name="revision">v0.50.13</param>
+    <param name="revision">v0.50.14</param>
     <param name="versionformat">@PARENT_TAG@</param>
     <param name="changesgenerate">enable</param>
     <param name="versionrewrite-pattern">v(.*)</param>

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.ajvMhA/_old  2023-09-07 21:14:40.361448496 +0200
+++ /var/tmp/diff_new_pack.ajvMhA/_new  2023-09-07 21:14:40.365448639 +0200
@@ -1,6 +1,6 @@
 <servicedata>
 <service name="tar_scm">
                 <param 
name="url">https://github.com/gruntwork-io/terragrunt</param>
-              <param 
name="changesrevision">5df74fe0eea87e39a823209b2756a00751f92d45</param></service></servicedata>
+              <param 
name="changesrevision">d3285f0e44a7b82a1a20598088f529004459c2c7</param></service></servicedata>
 (No newline at EOF)
 

++++++ terragrunt-0.50.13.obscpio -> terragrunt-0.50.14.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/terragrunt-0.50.13/aws_helper/config.go 
new/terragrunt-0.50.14/aws_helper/config.go
--- old/terragrunt-0.50.13/aws_helper/config.go 2023-09-05 21:06:47.000000000 
+0200
+++ new/terragrunt-0.50.14/aws_helper/config.go 2023-09-06 20:56:07.000000000 
+0200
@@ -4,6 +4,9 @@
        "fmt"
        "time"
 
+       "github.com/aws/aws-sdk-go/aws/request"
+       "github.com/gruntwork-io/go-commons/version"
+
        "github.com/aws/aws-sdk-go/aws"
        "github.com/aws/aws-sdk-go/aws/arn"
        "github.com/aws/aws-sdk-go/aws/credentials"
@@ -29,6 +32,13 @@
        SessionName             string
 }
 
+// addUserAgent - Add terragrunt version to the user agent for AWS API calls.
+var addUserAgent = request.NamedHandler{
+       Name: "terragrunt.UserAgentHandler",
+       Fn: request.MakeAddToUserAgentHandler(
+               "terragrunt", version.GetVersion()),
+}
+
 // Returns an AWS session object for the given config region (required), 
profile name (optional), and IAM role to assume
 // (optional), ensuring that the credentials are available.
 func CreateAwsSessionFromConfig(config *AwsSessionConfig, terragruntOptions 
*options.TerragruntOptions) (*session.Session, error) {
@@ -71,6 +81,8 @@
                return nil, errors.WithStackTraceAndPrefix(err, "Error 
initializing session")
        }
 
+       sess.Handlers.Build.PushFrontNamed(addUserAgent)
+
        // Merge the config based IAMRole options into the original one, as the 
config has higher precedence than CLI.
        iamRoleOptions := terragruntOptions.IAMRoleOptions
        if config.RoleArn != "" {
@@ -125,6 +137,7 @@
                if err != nil {
                        return nil, errors.WithStackTrace(err)
                }
+               sess.Handlers.Build.PushFrontNamed(addUserAgent)
                if terragruntOptions.IAMRoleOptions.RoleARN != "" {
                        terragruntOptions.Logger.Debugf("Assuming role %s", 
terragruntOptions.IAMRoleOptions.RoleARN)
                        sess.Config.Credentials = 
getSTSCredentialsFromIAMRoleOptions(sess, terragruntOptions.IAMRoleOptions)
@@ -156,6 +169,8 @@
                return nil, errors.WithStackTrace(err)
        }
 
+       sess.Handlers.Build.PushFrontNamed(addUserAgent)
+
        _, err = sess.Config.Credentials.Get()
        if err != nil {
                return nil, errors.WithStackTraceAndPrefix(err, "Error finding 
AWS credentials (did you set the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY 
environment variables?)")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/terragrunt-0.50.13/aws_helper/config_test.go 
new/terragrunt-0.50.14/aws_helper/config_test.go
--- old/terragrunt-0.50.13/aws_helper/config_test.go    1970-01-01 
01:00:00.000000000 +0100
+++ new/terragrunt-0.50.14/aws_helper/config_test.go    2023-09-06 
20:56:07.000000000 +0200
@@ -0,0 +1,30 @@
+package aws_helper
+
+import (
+       "testing"
+
+       "github.com/aws/aws-sdk-go/aws/request"
+       "github.com/aws/aws-sdk-go/service/sts"
+       "github.com/gruntwork-io/terragrunt/options"
+       "github.com/stretchr/testify/assert"
+)
+
+func TestTerragruntIsAddedInUserAgent(t *testing.T) {
+       t.Parallel()
+
+       sess, err := CreateAwsSession(nil, options.NewTerragruntOptions())
+       assert.NoError(t, err)
+
+       op := &request.Operation{
+               Name:       "",
+               HTTPMethod: "POST",
+               HTTPPath:   "/",
+       }
+       input := &sts.GetCallerIdentityInput{}
+       output := &sts.GetCallerIdentityOutput{}
+
+       r := sts.New(sess).NewRequest(op, input, output)
+       sess.Handlers.Build.Run(r)
+
+       assert.Contains(t, r.HTTPRequest.Header.Get("User-Agent"), "terragrunt")
+}

++++++ terragrunt.obsinfo ++++++
--- /var/tmp/diff_new_pack.ajvMhA/_old  2023-09-07 21:14:41.201478525 +0200
+++ /var/tmp/diff_new_pack.ajvMhA/_new  2023-09-07 21:14:41.209478811 +0200
@@ -1,5 +1,5 @@
 name: terragrunt
-version: 0.50.13
-mtime: 1693940807
-commit: 5df74fe0eea87e39a823209b2756a00751f92d45
+version: 0.50.14
+mtime: 1694026567
+commit: d3285f0e44a7b82a1a20598088f529004459c2c7
 

++++++ vendor.tar.gz ++++++
/work/SRC/openSUSE:Factory/terragrunt/vendor.tar.gz 
/work/SRC/openSUSE:Factory/.terragrunt.new.1766/vendor.tar.gz differ: char 5, 
line 1

Reply via email to