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 2026-05-26 16:35:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/aws-c-auth (Old) and /work/SRC/openSUSE:Factory/.aws-c-auth.new.2084 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "aws-c-auth" Tue May 26 16:35:07 2026 rev:27 rq:1355155 version:0.10.3 Changes: -------- --- /work/SRC/openSUSE:Factory/aws-c-auth/aws-c-auth.changes 2026-03-20 21:20:51.012105076 +0100 +++ /work/SRC/openSUSE:Factory/.aws-c-auth.new.2084/aws-c-auth.changes 2026-05-26 16:35:23.731381724 +0200 @@ -1,0 +2,10 @@ +Fri May 22 07:34:10 UTC 2026 - John Paul Adrian Glaubitz <[email protected]> + +- Update to version 0.10.3 + * Fix error handling for profile provider by @DmitriyMusatkin in (#295) +- from version 0.10.2 + * imds: Fix NULL check by @ProjectMutilation in (#289) + * fix: Remove strict requirement for ECS SessionToken by @TingDaoK in (#292) + * builder -> v0.9.92 and clang-latest by @sbSteveK in (#293) + +------------------------------------------------------------------- Old: ---- v0.10.1.tar.gz New: ---- v0.10.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ aws-c-auth.spec ++++++ --- /var/tmp/diff_new_pack.VIjt0A/_old 2026-05-26 16:35:52.660578582 +0200 +++ /var/tmp/diff_new_pack.VIjt0A/_new 2026-05-26 16:35:52.660578582 +0200 @@ -20,7 +20,7 @@ %define library_pkg 1_0_0 %define library_soversion 1 Name: aws-c-auth -Version: 0.10.1 +Version: 0.10.3 Release: 0 Summary: AWS C99 library implementation of AWS client-side authentication License: Apache-2.0 ++++++ v0.10.1.tar.gz -> v0.10.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aws-c-auth-0.10.1/.github/workflows/ci.yml new/aws-c-auth-0.10.3/.github/workflows/ci.yml --- old/aws-c-auth-0.10.1/.github/workflows/ci.yml 2026-03-05 05:18:17.000000000 +0100 +++ new/aws-c-auth-0.10.3/.github/workflows/ci.yml 2026-05-22 01:57:32.000000000 +0200 @@ -6,7 +6,7 @@ - 'main' env: - BUILDER_VERSION: v0.9.72 + BUILDER_VERSION: v0.9.92 BUILDER_SOURCE: releases BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net PACKAGE_NAME: aws-c-auth @@ -57,6 +57,7 @@ - clang-11 - clang-15 - clang-17 + - clang-latest - gcc-4.8 - gcc-5 - gcc-6 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aws-c-auth-0.10.1/source/aws_imds_client.c new/aws-c-auth-0.10.3/source/aws_imds_client.c --- old/aws-c-auth-0.10.1/source/aws_imds_client.c 2026-03-05 05:18:17.000000000 +0100 +++ new/aws-c-auth-0.10.3/source/aws_imds_client.c 2026-05-22 01:57:32.000000000 +0200 @@ -196,8 +196,10 @@ static void s_on_connection_manager_shutdown(void *user_data) { struct aws_imds_client *client = user_data; - - if (client && client->shutdown_options.shutdown_callback) { + if (!client) { + return; + } + if (client->shutdown_options.shutdown_callback) { client->shutdown_options.shutdown_callback(client->shutdown_options.shutdown_user_data); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aws-c-auth-0.10.1/source/credentials_provider_ecs.c new/aws-c-auth-0.10.3/source/credentials_provider_ecs.c --- old/aws-c-auth-0.10.1/source/credentials_provider_ecs.c 2026-03-05 05:18:17.000000000 +0100 +++ new/aws-c-auth-0.10.3/source/credentials_provider_ecs.c 2026-05-22 01:57:32.000000000 +0200 @@ -190,7 +190,7 @@ .token_name = "Token", .account_id_name = "AccountId", .expiration_name = "Expiration", - .token_required = true, + .token_required = false, .expiration_required = true, }; if (aws_byte_buf_append_null_terminator(&ecs_user_data->current_result) == AWS_OP_SUCCESS) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aws-c-auth-0.10.1/source/credentials_provider_profile.c new/aws-c-auth-0.10.3/source/credentials_provider_profile.c --- old/aws-c-auth-0.10.1/source/credentials_provider_profile.c 2026-03-05 05:18:17.000000000 +0100 +++ new/aws-c-auth-0.10.3/source/credentials_provider_profile.c 2026-05-22 01:57:32.000000000 +0200 @@ -134,10 +134,7 @@ int error_code = AWS_ERROR_SUCCESS; if (credentials == NULL) { - error_code = aws_last_error(); - if (error_code == AWS_ERROR_SUCCESS) { - error_code = AWS_AUTH_CREDENTIALS_PROVIDER_PROFILE_SOURCE_FAILURE; - } + error_code = AWS_AUTH_CREDENTIALS_PROVIDER_PROFILE_SOURCE_FAILURE; } if (error_code == AWS_ERROR_SUCCESS) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aws-c-auth-0.10.1/tests/CMakeLists.txt new/aws-c-auth-0.10.3/tests/CMakeLists.txt --- old/aws-c-auth-0.10.1/tests/CMakeLists.txt 2026-03-05 05:18:17.000000000 +0100 +++ new/aws-c-auth-0.10.3/tests/CMakeLists.txt 2026-05-22 01:57:32.000000000 +0200 @@ -55,6 +55,7 @@ add_net_test_case(credentials_provider_ecs_bad_document_failure) add_net_test_case(credentials_provider_ecs_bad_host_failure) add_net_test_case(credentials_provider_ecs_basic_success) +add_net_test_case(credentials_provider_ecs_basic_success_no_session_token) add_net_test_case(credentials_provider_ecs_basic_success_with_account_id) add_net_test_case(credentials_provider_ecs_basic_success_token_file) add_net_test_case(credentials_provider_ecs_basic_success_uri_env) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aws-c-auth-0.10.1/tests/credentials_provider_ecs_tests.c new/aws-c-auth-0.10.3/tests/credentials_provider_ecs_tests.c --- old/aws-c-auth-0.10.1/tests/credentials_provider_ecs_tests.c 2026-03-05 05:18:17.000000000 +0100 +++ new/aws-c-auth-0.10.3/tests/credentials_provider_ecs_tests.c 2026-05-22 01:57:32.000000000 +0200 @@ -757,6 +757,68 @@ AWS_TEST_CASE(credentials_provider_ecs_basic_success, s_credentials_provider_ecs_basic_success); +AWS_STATIC_STRING_FROM_LITERAL( + s_good_response_no_token, + "{\"AccessKeyId\":\"SuccessfulAccessKey\", \n \"SecretAccessKey\":\"SuccessfulSecret\", \n " + "\"Expiration\":\"2020-02-25T06:03:31Z\"}"); + +static int s_credentials_provider_ecs_basic_success_no_session_token(struct aws_allocator *allocator, void *ctx) { + (void)ctx; + + s_aws_ecs_tester_init(allocator); + + struct aws_byte_cursor good_response_cursor = aws_byte_cursor_from_string(s_good_response_no_token); + aws_array_list_push_back(&s_tester.response_data_callbacks, &good_response_cursor); + + struct aws_credentials_provider_ecs_options options = { + .bootstrap = s_tester.bootstrap, + .function_table = &s_mock_function_table, + .shutdown_options = + { + .shutdown_callback = s_on_shutdown_complete, + .shutdown_user_data = NULL, + }, + .host = aws_byte_cursor_from_c_str("www.xxx123321testmocknonexsitingawsservice.com"), + .path_and_query = aws_byte_cursor_from_c_str("/path/to/resource/?a=b&c=d"), + .auth_token = aws_byte_cursor_from_c_str("test-token-1234-abcd"), + .tls_ctx = s_tester.tls_ctx, + }; + + struct aws_credentials_provider *provider = aws_credentials_provider_new_ecs(allocator, &options); + aws_credentials_provider_get_credentials(provider, s_get_credentials_callback, NULL); + s_aws_wait_for_credentials_result(); + + aws_mutex_lock(&s_tester.lock); + ASSERT_SUCCESS(s_check_ecs_tester_request_uri_and_authorization( + "https://www.xxx123321testmocknonexsitingawsservice.com:443/path/to/resource/?a=b&c=d", + "test-token-1234-abcd")); + ASSERT_TRUE(s_tester.has_received_credentials_callback == true); + ASSERT_TRUE(s_tester.credentials != NULL); + ASSERT_CURSOR_VALUE_STRING_EQUALS(aws_credentials_get_access_key_id(s_tester.credentials), s_good_access_key_id); + ASSERT_CURSOR_VALUE_STRING_EQUALS( + aws_credentials_get_secret_access_key(s_tester.credentials), s_good_secret_access_key); + ASSERT_TRUE(aws_credentials_get_session_token(s_tester.credentials).len == 0); + + struct aws_date_time expiration; + struct aws_byte_cursor date_cursor = aws_byte_cursor_from_string(s_good_response_expiration); + aws_date_time_init_from_str_cursor(&expiration, &date_cursor, AWS_DATE_FORMAT_ISO_8601); + ASSERT_TRUE( + aws_credentials_get_expiration_timepoint_seconds(s_tester.credentials) == (uint64_t)expiration.timestamp); + aws_mutex_unlock(&s_tester.lock); + + aws_credentials_provider_release(provider); + s_aws_wait_for_provider_shutdown_callback(); + aws_mem_release(provider->allocator, provider); + + s_aws_ecs_tester_cleanup(); + + return 0; +} + +AWS_TEST_CASE( + credentials_provider_ecs_basic_success_no_session_token, + s_credentials_provider_ecs_basic_success_no_session_token); + static int s_credentials_provider_ecs_basic_success_with_account_id(struct aws_allocator *allocator, void *ctx) { (void)ctx;
