Skip to content

Commit 58e4a2f

Browse files
committed
dev-cpp/azure-identity: Sync with Gentoo to fix managed identity issue
Signed-off-by: James Le Cuirot <[email protected]>
1 parent a29d5b5 commit 58e4a2f

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
DIST azure-sdk-for-cpp-de3cc64a55b2a67d672b7ca899a8675182d1c989.tar.gz 3359660 BLAKE2B eda2034cc789ad6d5e1d477bbb5a3619a53ee22b511707b8aec9471dc8b09814b4b6c199442532790f7b43c07e21bfa3f6534cf49e1f46d7f8a5e60f3e5eecce SHA512 b6004de0e1f312bdd55f91f597d2ee831be9d3d500a0c554a8258f52d054c288a6caff3ae86cc023b9ee1167df9fd898d65278f0b076ae23b2e65e9ab5791d36
1+
DIST azure-sdk-for-cpp-6aea93d0410f5bc3e3a58a8d492a3063cac3aced.tar.gz 3360426 BLAKE2B 027729aece30196a607a3bb9d6b12e1f884069526b96773701fe211945426a0175ed94d65ae5df6577dfe871a89cbbcff53ea1c6ab814719385af9c9a821aad5 SHA512 f7abcf97468caa04c841935911490c134f1d860b9ae11f2ba57a2a480b9c63a7277fe2ed1440ae0d3c8d2ba76890bc170f38ee936016f9a4ba9b4989f2b7eb11
22
DIST azure-sdk-for-cpp-e8d34efc671b7dff133bd32bd2fe65aab4737ef2.tar.gz 3330505 BLAKE2B 3693cc1d587ad3cba32f5dfdbbc650fbd077f05092f0bd44809d1b99b27a2e3e4a9eeb6fa725e5385f117cd76fb09101839e74c3fdc1e082b45d824cad059fb4 SHA512 ffa0ec9e10dfefd948607761dcc328d39bbb3ed56aa9d1df7c1e370fcfd61e91df6f207c85a97e84fb1bd5ad7f2ec848f2f5f1cb85181174c6c7850ade265eeb

sdk_container/src/third_party/portage-stable/dev-cpp/azure-identity/azure-identity-1.12.0.ebuild renamed to sdk_container/src/third_party/portage-stable/dev-cpp/azure-identity/azure-identity-1.13.0-r1.ebuild

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ EAPI=8
55

66
inherit cmake
77

8-
COMMIT="de3cc64a55b2a67d672b7ca899a8675182d1c989"
8+
COMMIT="6aea93d0410f5bc3e3a58a8d492a3063cac3aced"
99
MY_P="azure-sdk-for-cpp-${COMMIT}"
1010
DESCRIPTION="Azure SDK for C++"
1111
HOMEPAGE="https://azure.github.io/azure-sdk-for-cpp/"
@@ -30,6 +30,10 @@ BDEPEND="
3030
doc? ( app-text/doxygen )
3131
"
3232

33+
PATCHES=(
34+
"${FILESDIR}"/${PN}-imds-double-slash.patch
35+
)
36+
3337
src_configure() {
3438
local mycmakeargs=(
3539
-DBUILD_DOCUMENTATION=$(usex doc)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
From 72f327b2c19afffa9df2ce0ef817c13b3dd75804 Mon Sep 17 00:00:00 2001
2+
From: James Le Cuirot <[email protected]>
3+
Date: Wed, 13 Aug 2025 15:52:31 +0100
4+
Subject: [PATCH] Fix IMDS token requests for managed identities
5+
6+
This was broken by a035ee5f9416ef9188533de40b4ab1c37fb7c0af, which
7+
accidentally constructed the IMDS URL with a double slash at the start
8+
of the path. This is not properly routed on the server side, leading to
9+
a 404 error with some very misleading XML.
10+
11+
Signed-off-by: James Le Cuirot <[email protected]>
12+
--- a/src/managed_identity_source.cpp
13+
+++ b/src/managed_identity_source.cpp
14+
@@ -527,7 +527,7 @@ std::unique_ptr<ManagedIdentitySource> ImdsManagedIdentitySource::Create(
15+
16+
imdsUrl = Core::Url{imdsEndpointEnvVarValue};
17+
}
18+
- imdsUrl.SetPath("/metadata/identity/oauth2/token");
19+
+ imdsUrl.SetPath("metadata/identity/oauth2/token");
20+
21+
return std::unique_ptr<ManagedIdentitySource>(
22+
new ImdsManagedIdentitySource(clientId, objectId, resourceId, imdsUrl, options));

0 commit comments

Comments
 (0)