Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-msal for openSUSE:Factory checked in at 2024-12-09 21:12:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-msal (Old) and /work/SRC/openSUSE:Factory/.python-msal.new.29675 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-msal" Mon Dec 9 21:12:50 2024 rev:25 rq:1229331 version:1.31.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-msal/python-msal.changes 2024-10-08 17:25:54.364778092 +0200 +++ /work/SRC/openSUSE:Factory/.python-msal.new.29675/python-msal.changes 2024-12-09 21:13:53.510790441 +0100 @@ -1,0 +2,7 @@ +Mon Dec 9 10:56:29 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaub...@suse.com> + +- Update to version 1.31.1 + * Bugfix: The Managed Identity detection logic on Arc (#731) + had a bug (#762), now fixed in PR (#763) + +------------------------------------------------------------------- Old: ---- msal-1.31.0.tar.gz New: ---- msal-1.31.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-msal.spec ++++++ --- /var/tmp/diff_new_pack.rYeWgx/_old 2024-12-09 21:13:53.954809018 +0100 +++ /var/tmp/diff_new_pack.rYeWgx/_new 2024-12-09 21:13:53.958809185 +0100 @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-msal -Version: 1.31.0 +Version: 1.31.1 Release: 0 Summary: Microsoft Authentication Library (MSAL) for Python License: MIT ++++++ msal-1.31.0.tar.gz -> msal-1.31.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/msal-1.31.0/PKG-INFO new/msal-1.31.1/PKG-INFO --- old/msal-1.31.0/PKG-INFO 2024-09-07 00:20:40.805118800 +0200 +++ new/msal-1.31.1/PKG-INFO 2024-11-18 10:51:04.722303200 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: msal -Version: 1.31.0 +Version: 1.31.1 Summary: The Microsoft Authentication Library (MSAL) for Python library enables your app to access the Microsoft Cloud by supporting authentication of users with Microsoft Azure Active Directory accounts (AAD) and Microsoft Accounts (MSA) using industry standard OAuth2 and OpenID Connect. Home-page: https://github.com/AzureAD/microsoft-authentication-library-for-python Author: Microsoft Corporation diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/msal-1.31.0/msal/application.py new/msal-1.31.1/msal/application.py --- old/msal-1.31.0/msal/application.py 2024-09-07 00:20:35.000000000 +0200 +++ new/msal-1.31.1/msal/application.py 2024-11-18 10:50:59.000000000 +0100 @@ -21,7 +21,7 @@ # The __init__.py will import this. Not the other way around. -__version__ = "1.31.0" # When releasing, also check and bump our dependencies's versions if needed +__version__ = "1.31.1" # When releasing, also check and bump our dependencies's versions if needed logger = logging.getLogger(__name__) _AUTHORITY_TYPE_CLOUDSHELL = "CLOUDSHELL" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/msal-1.31.0/msal/managed_identity.py new/msal-1.31.1/msal/managed_identity.py --- old/msal-1.31.0/msal/managed_identity.py 2024-09-07 00:20:35.000000000 +0200 +++ new/msal-1.31.1/msal/managed_identity.py 2024-11-18 10:50:59.000000000 +0100 @@ -346,10 +346,12 @@ def _get_arc_endpoint(): if "IDENTITY_ENDPOINT" in os.environ and "IMDS_ENDPOINT" in os.environ: return os.environ["IDENTITY_ENDPOINT"] - if ( # Defined in https://msazure.visualstudio.com/One/_wiki/wikis/One.wiki/233012/VM-Extension-Authoring-for-Arc?anchor=determining-which-endpoint-to-use - sys.platform == "linux" and os.path.exists("/var/opt/azcmagent/bin/himds") + if ( # Defined in https://eng.ms/docs/cloud-ai-platform/azure-core/azure-management-and-platforms/control-plane-bburns/hybrid-resource-provider/azure-arc-for-servers/specs/extension_authoring + sys.platform == "linux" and os.path.exists("/opt/azcmagent/bin/himds") or sys.platform == "win32" and os.path.exists(os.path.expandvars( - r"%ProgramFiles%\AzureConnectedMachineAgent\himds.exe")) + # Avoid Windows-only "%EnvVar%" syntax so that tests can be run on Linux + r"${ProgramFiles}\AzureConnectedMachineAgent\himds.exe" + )) ): return "http://localhost:40342/metadata/identity/oauth2/token" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/msal-1.31.0/msal.egg-info/PKG-INFO new/msal-1.31.1/msal.egg-info/PKG-INFO --- old/msal-1.31.0/msal.egg-info/PKG-INFO 2024-09-07 00:20:40.000000000 +0200 +++ new/msal-1.31.1/msal.egg-info/PKG-INFO 2024-11-18 10:51:04.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: msal -Version: 1.31.0 +Version: 1.31.1 Summary: The Microsoft Authentication Library (MSAL) for Python library enables your app to access the Microsoft Cloud by supporting authentication of users with Microsoft Azure Active Directory accounts (AAD) and Microsoft Accounts (MSA) using industry standard OAuth2 and OpenID Connect. Home-page: https://github.com/AzureAD/microsoft-authentication-library-for-python Author: Microsoft Corporation diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/msal-1.31.0/tests/test_mi.py new/msal-1.31.1/tests/test_mi.py --- old/msal-1.31.0/tests/test_mi.py 2024-09-07 00:20:35.000000000 +0200 +++ new/msal-1.31.1/tests/test_mi.py 2024-11-18 10:50:59.000000000 +0100 @@ -347,9 +347,23 @@ "IDENTITY_ENDPOINT": "http://localhost", "IMDS_ENDPOINT": "http://localhost", }) - def test_arc(self): + def test_arc_by_env_var(self): self.assertEqual(get_managed_identity_source(), AZURE_ARC) + @patch("msal.managed_identity.os.path.exists", return_value=True) + @patch("msal.managed_identity.sys.platform", new="linux") + def test_arc_by_file_existence_on_linux(self, mocked_exists): + self.assertEqual(get_managed_identity_source(), AZURE_ARC) + mocked_exists.assert_called_with("/opt/azcmagent/bin/himds") + + @patch("msal.managed_identity.os.path.exists", return_value=True) + @patch("msal.managed_identity.sys.platform", new="win32") + @patch.dict(os.environ, {"ProgramFiles": "C:\Program Files"}) + def test_arc_by_file_existence_on_windows(self, mocked_exists): + self.assertEqual(get_managed_identity_source(), AZURE_ARC) + mocked_exists.assert_called_with( + r"C:\Program Files\AzureConnectedMachineAgent\himds.exe") + @patch.dict(os.environ, { "AZUREPS_HOST_ENVIRONMENT": "cloud-shell-foo", })