Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package aws-c-auth for openSUSE:Factory 
checked in at 2024-09-01 19:21:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/aws-c-auth (Old)
 and      /work/SRC/openSUSE:Factory/.aws-c-auth.new.2698 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "aws-c-auth"

Sun Sep  1 19:21:41 2024 rev:10 rq:1197831 version:0.7.26

Changes:
--------
--- /work/SRC/openSUSE:Factory/aws-c-auth/aws-c-auth.changes    2024-08-09 
16:15:25.668844471 +0200
+++ /work/SRC/openSUSE:Factory/.aws-c-auth.new.2698/aws-c-auth.changes  
2024-09-01 19:21:59.969422050 +0200
@@ -1,0 +2,7 @@
+Mon Aug 26 15:19:39 UTC 2024 - John Paul Adrian Glaubitz 
<adrian.glaub...@suse.com>
+
+- Update to version 0.7.26
+  * Update CacheCredentialsProvider Refresh Time to
+    5 Minutes before Expiry by @waahm7 in (#247)
+
+-------------------------------------------------------------------

Old:
----
  v0.7.25.tar.gz

New:
----
  v0.7.26.tar.gz

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

Other differences:
------------------
++++++ aws-c-auth.spec ++++++
--- /var/tmp/diff_new_pack.55lx2Z/_old  2024-09-01 19:22:00.517444487 +0200
+++ /var/tmp/diff_new_pack.55lx2Z/_new  2024-09-01 19:22:00.517444487 +0200
@@ -20,7 +20,7 @@
 %define library_pkg 1_0_0
 %define library_soversion 1
 Name:           aws-c-auth
-Version:        0.7.25
+Version:        0.7.26
 Release:        0
 Summary:        AWS C99 library implementation of AWS client-side 
authentication
 License:        Apache-2.0

++++++ v0.7.25.tar.gz -> v0.7.26.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/aws-c-auth-0.7.25/source/credentials_provider_cached.c 
new/aws-c-auth-0.7.26/source/credentials_provider_cached.c
--- old/aws-c-auth-0.7.25/source/credentials_provider_cached.c  2024-08-04 
19:29:46.000000000 +0200
+++ new/aws-c-auth-0.7.26/source/credentials_provider_cached.c  2024-08-23 
21:13:35.000000000 +0200
@@ -20,7 +20,7 @@
 
 */
 
-#define REFRESH_CREDENTIALS_EARLY_DURATION_SECONDS 10
+#define REFRESH_CREDENTIALS_EARLY_DURATION_SECONDS 60 * 5 /* 5 minutes */
 
 struct aws_credentials_provider_cached {
     struct aws_credentials_provider *source;
@@ -120,6 +120,8 @@
                         AWS_TIMESTAMP_SECS,
                         AWS_TIMESTAMP_NANOS,
                         NULL);
+                } else {
+                    next_refresh_time_in_ns = high_res_now;
                 }
             }
         }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/aws-c-auth-0.7.25/tests/credentials_provider_sts_tests.c 
new/aws-c-auth-0.7.26/tests/credentials_provider_sts_tests.c
--- old/aws-c-auth-0.7.25/tests/credentials_provider_sts_tests.c        
2024-08-04 19:29:46.000000000 +0200
+++ new/aws-c-auth-0.7.26/tests/credentials_provider_sts_tests.c        
2024-08-23 21:13:35.000000000 +0200
@@ -2078,9 +2078,9 @@
         s_tester.mocked_requests[0].body.len);
 
     /* advance each time to a little before expiration, verify we get creds 
with the same expiration */
-    uint64_t eight_hundred_seconds_in_ns = aws_timestamp_convert(800, 
AWS_TIMESTAMP_SECS, AWS_TIMESTAMP_NANOS, NULL);
-    mock_aws_set_system_time(eight_hundred_seconds_in_ns);
-    mock_aws_set_high_res_time(HIGH_RES_BASE_TIME_NS + 
eight_hundred_seconds_in_ns);
+    uint64_t before_expiration_time = aws_timestamp_convert(599, 
AWS_TIMESTAMP_SECS, AWS_TIMESTAMP_NANOS, NULL);
+    mock_aws_set_system_time(before_expiration_time);
+    mock_aws_set_high_res_time(HIGH_RES_BASE_TIME_NS + before_expiration_time);
 
     s_cleanup_creds_callback_data();
 
@@ -2091,10 +2091,9 @@
     
ASSERT_TRUE(aws_credentials_get_expiration_timepoint_seconds(s_tester.credentials)
 == 900);
 
     /* advance each time to after expiration but before cached provider 
timeout, verify we get new creds */
-    uint64_t nine_hundred_and_one_seconds_in_ns =
-        aws_timestamp_convert(901, AWS_TIMESTAMP_SECS, AWS_TIMESTAMP_NANOS, 
NULL);
-    mock_aws_set_system_time(nine_hundred_and_one_seconds_in_ns);
-    mock_aws_set_high_res_time(HIGH_RES_BASE_TIME_NS + 
nine_hundred_and_one_seconds_in_ns);
+    uint64_t after_expiration_time = aws_timestamp_convert(901, 
AWS_TIMESTAMP_SECS, AWS_TIMESTAMP_NANOS, NULL);
+    mock_aws_set_system_time(after_expiration_time);
+    mock_aws_set_high_res_time(HIGH_RES_BASE_TIME_NS + after_expiration_time);
 
     s_cleanup_creds_callback_data();
 

Reply via email to