From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6A94715827B for ; Wed, 13 Aug 2025 15:15:13 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 2E35C340AA7 for ; Wed, 13 Aug 2025 15:15:13 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 2260C110280; Wed, 13 Aug 2025 15:15:12 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 1967F110280 for ; Wed, 13 Aug 2025 15:15:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C1AA2340943 for ; Wed, 13 Aug 2025 15:15:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 34E9B32D6 for ; Wed, 13 Aug 2025 15:15:10 +0000 (UTC) From: "James Le Cuirot" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "James Le Cuirot" Message-ID: <1755098014.55b031898feeda57d0b75a6ad05e41aae3405ad8.chewi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/azure-identity/files/, dev-cpp/azure-identity/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-cpp/azure-identity/azure-identity-1.13.0-r1.ebuild dev-cpp/azure-identity/azure-identity-1.13.0.ebuild dev-cpp/azure-identity/files/azure-identity-imds-double-slash.patch X-VCS-Directories: dev-cpp/azure-identity/files/ dev-cpp/azure-identity/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 55b031898feeda57d0b75a6ad05e41aae3405ad8 X-VCS-Branch: master Date: Wed, 13 Aug 2025 15:15:10 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 16f401d3-c4e9-49a6-a014-acfc2f6b25cc X-Archives-Hash: 43f1df2875b37109c2f78f4648b3148b commit: 55b031898feeda57d0b75a6ad05e41aae3405ad8 Author: James Le Cuirot gentoo org> AuthorDate: Wed Aug 13 15:13:34 2025 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Wed Aug 13 15:13:34 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55b03189 dev-cpp/azure-identity: Patch 1.13.0 to fix issue with managed identities Signed-off-by: James Le Cuirot gentoo.org> ...13.0.ebuild => azure-identity-1.13.0-r1.ebuild} | 4 ++++ .../files/azure-identity-imds-double-slash.patch | 22 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/dev-cpp/azure-identity/azure-identity-1.13.0.ebuild b/dev-cpp/azure-identity/azure-identity-1.13.0-r1.ebuild similarity index 94% rename from dev-cpp/azure-identity/azure-identity-1.13.0.ebuild rename to dev-cpp/azure-identity/azure-identity-1.13.0-r1.ebuild index 79814f2229e7..eb21aada9a90 100644 --- a/dev-cpp/azure-identity/azure-identity-1.13.0.ebuild +++ b/dev-cpp/azure-identity/azure-identity-1.13.0-r1.ebuild @@ -30,6 +30,10 @@ BDEPEND=" doc? ( app-text/doxygen ) " +PATCHES=( + "${FILESDIR}"/${PN}-imds-double-slash.patch +) + src_configure() { local mycmakeargs=( -DBUILD_DOCUMENTATION=$(usex doc) diff --git a/dev-cpp/azure-identity/files/azure-identity-imds-double-slash.patch b/dev-cpp/azure-identity/files/azure-identity-imds-double-slash.patch new file mode 100644 index 000000000000..f6b47be1ad6f --- /dev/null +++ b/dev-cpp/azure-identity/files/azure-identity-imds-double-slash.patch @@ -0,0 +1,22 @@ +From 72f327b2c19afffa9df2ce0ef817c13b3dd75804 Mon Sep 17 00:00:00 2001 +From: James Le Cuirot +Date: Wed, 13 Aug 2025 15:52:31 +0100 +Subject: [PATCH] Fix IMDS token requests for managed identities + +This was broken by a035ee5f9416ef9188533de40b4ab1c37fb7c0af, which +accidentally constructed the IMDS URL with a double slash at the start +of the path. This is not properly routed on the server side, leading to +a 404 error with some very misleading XML. + +Signed-off-by: James Le Cuirot +--- a/src/managed_identity_source.cpp ++++ b/src/managed_identity_source.cpp +@@ -527,7 +527,7 @@ std::unique_ptr ImdsManagedIdentitySource::Create( + + imdsUrl = Core::Url{imdsEndpointEnvVarValue}; + } +- imdsUrl.SetPath("/metadata/identity/oauth2/token"); ++ imdsUrl.SetPath("metadata/identity/oauth2/token"); + + return std::unique_ptr( + new ImdsManagedIdentitySource(clientId, objectId, resourceId, imdsUrl, options));