genesis-flow 1.0.4__py3-none-any.whl → 1.0.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: genesis-flow
3
- Version: 1.0.4
3
+ Version: 1.0.6
4
4
  Summary: Genesis-Flow: MLflow v3.1.4 compatible fork for Genesis platform
5
5
  Maintainer-email: Databricks <mlflow-oss-maintainers@googlegroups.com>
6
6
  License: Copyright 2018 Databricks, Inc. All rights reserved.
@@ -1,4 +1,4 @@
1
- genesis_flow-1.0.4.dist-info/licenses/LICENSE.txt,sha256=Y5U1Xebzka__NZlqMPtBsYm0mRpMtUmTrONatpoL-ig,11382
1
+ genesis_flow-1.0.6.dist-info/licenses/LICENSE.txt,sha256=Y5U1Xebzka__NZlqMPtBsYm0mRpMtUmTrONatpoL-ig,11382
2
2
  mlflow/__init__.py,sha256=-_r__N5Afed81pLVtr2wKbHQIA0aj9u9n_7kWGxLWi4,11194
3
3
  mlflow/__main__.py,sha256=_PcdoxKehR_a2MI6GqBfzYzRCXZhVyDCSdbxDWVlWd4,39
4
4
  mlflow/cli.py,sha256=f1ObrWZ03HgRiRoVEE1Gffe-dGcSY7CxJyEFgb5VUMM,26137
@@ -26,7 +26,7 @@ mlflow/azure/client.py,sha256=dUaMFj04OLrlyvYSRTHXF4CaLHCGUdSzhjM5u8ucv8g,11509
26
26
  mlflow/azure/config.py,sha256=0DwiEYN3TefmdaGO9KogNNflX_-0wOeHwKt2hMxKEdU,4491
27
27
  mlflow/azure/connection_factory.py,sha256=1hcwPmc5xpP_MS1t3CIlzYfJ_mzEn2GBxnz5TJ1sHOY,12391
28
28
  mlflow/azure/exceptions.py,sha256=3jQo_kimK4g94LmSCtzfRQqEOl6bDBtwAQ6utXbgw8k,494
29
- mlflow/azure/stores.py,sha256=dlmdDVZRINgJw2wxzLhEsnAp1W76bR3NhQ0MftH9T74,12732
29
+ mlflow/azure/stores.py,sha256=EwcAnb7RolKU-cI11Ak1Rdsv6a-TOQJbAOOaaoIcKuE,12876
30
30
  mlflow/azure/utils.py,sha256=uU4OWU9ffz3KhLf0IgGqabZTTiAskLrNGVH5bIcwKUU,5563
31
31
  mlflow/bedrock/__init__.py,sha256=LNOczTpqmgbdek-anWMNisPGDcnn-VbWQm5VVxQ7FdA,1846
32
32
  mlflow/bedrock/_autolog.py,sha256=7c2mj9pK1aj-IKCySl74g6gGxze2Bldo8bHSIZAQj5M,7800
@@ -641,8 +641,8 @@ mlflow/utils/autologging_utils/metrics_queue.py,sha256=bwpMX7Go6xFxrpYROi6rDBdVt
641
641
  mlflow/utils/autologging_utils/safety.py,sha256=IwbTbusyE87Hc4qkhhvMikoaZqX9kpr972FWS2B8goc,51465
642
642
  mlflow/utils/autologging_utils/versioning.py,sha256=2hSN4KXFWEJCcopDdLG6BiPeqSoqjETeNMuUBsCCwlI,3762
643
643
  mlflow/utils/import_hooks/__init__.py,sha256=werje98Woelkbwrhtlb8wmRdt3RtiL--LqGru7Xh3YU,13589
644
- genesis_flow-1.0.4.dist-info/METADATA,sha256=0ZYCp0XfX9xral_05JfSsI8gh0jXigpbeHEANiP2EIM,33401
645
- genesis_flow-1.0.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
646
- genesis_flow-1.0.4.dist-info/entry_points.txt,sha256=fwlE6mYWea9uCNIsmXdT5qMIOZ8rYbTvO6XcZR8fBbE,495
647
- genesis_flow-1.0.4.dist-info/top_level.txt,sha256=wm8UqYyUHI21EvrTDHb3eYICy0dOVDLBhAL-jp5zbuI,7
648
- genesis_flow-1.0.4.dist-info/RECORD,,
644
+ genesis_flow-1.0.6.dist-info/METADATA,sha256=_ofi_wrmOHLBu-0gjHwRW97dMrrVpnksdsLhUr1WrlU,33401
645
+ genesis_flow-1.0.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
646
+ genesis_flow-1.0.6.dist-info/entry_points.txt,sha256=YZZiTHSYQpv8vou6gdqWI17piK9Pm0P3BmZ-xepUtnw,449
647
+ genesis_flow-1.0.6.dist-info/top_level.txt,sha256=wm8UqYyUHI21EvrTDHb3eYICy0dOVDLBhAL-jp5zbuI,7
648
+ genesis_flow-1.0.6.dist-info/RECORD,,
@@ -16,4 +16,3 @@ openai = mlflow.deployments.openai
16
16
 
17
17
  [mlflow.tracking_store]
18
18
  azure-postgres = mlflow.azure.stores:create_store
19
- postgresql = mlflow.azure.stores:create_store
mlflow/azure/stores.py CHANGED
@@ -8,7 +8,7 @@ from typing import Optional, Any, Dict
8
8
 
9
9
  from sqlalchemy import Engine
10
10
 
11
- from mlflow.azure.config import AzureAuthConfig
11
+ from mlflow.azure.config import AzureAuthConfig, AuthMethod
12
12
  from mlflow.azure.connection_factory import ConnectionFactory
13
13
  from mlflow.azure.exceptions import ConnectionError, ConfigurationError
14
14
 
@@ -162,25 +162,31 @@ def create_store(store_uri: str, artifact_uri: Optional[str] = None):
162
162
  # Check if Azure authentication should be used
163
163
  config = AzureAuthConfig()
164
164
 
165
- # Auto-detect Azure PostgreSQL and enable auth if credentials are available
166
- is_azure_postgres = (
165
+ # IMPORTANT: Do NOT auto-detect Azure PostgreSQL based on hostname
166
+ # Only use Azure auth if explicitly enabled through configuration
167
+ # The MLFLOW_AZURE_AUTH_ENABLED flag should be the single source of truth
168
+
169
+ # Check if URI explicitly requests Azure auth (via scheme or parameter)
170
+ explicit_azure_request = (
167
171
  store_uri.startswith("azure-postgres://") or
168
- ".postgres.database.azure.com" in store_uri or
169
172
  "auth_method=managed_identity" in store_uri
170
173
  )
171
174
 
172
- # For Azure PostgreSQL, enable auth if we have any Azure credentials
173
- if is_azure_postgres and not config.auth_enabled:
174
- # Enable auth automatically if we have Azure credentials
175
- if config.client_id or config.client_secret or os.getenv("AZURE_CLIENT_ID"):
176
- config.auth_enabled = True
177
- if not config.auth_method or config.auth_method == config.auth_method.SQL_AUTH:
178
- # Default to service principal if we have credentials, managed identity otherwise
179
- config.auth_method = (
180
- config.auth_method.SERVICE_PRINCIPAL
181
- if config.client_secret or os.getenv("AZURE_CLIENT_SECRET")
182
- else config.auth_method.MANAGED_IDENTITY
183
- )
175
+ # Check if we need to enable auth based on explicit request in URI
176
+ if explicit_azure_request and not config.auth_enabled:
177
+ # URI explicitly requests Azure auth, so enable it
178
+ config.auth_enabled = True
179
+ if not config.auth_method or config.auth_method == AuthMethod.SQL_AUTH:
180
+ config.auth_method = AuthMethod.MANAGED_IDENTITY
181
+ logger.debug("Enabled Azure auth due to explicit request in URI")
182
+
183
+ # Log the decision for debugging
184
+ if not config.auth_enabled and not explicit_azure_request:
185
+ logger.debug(
186
+ "Azure auth not enabled: config.auth_enabled=%s, explicit_request=%s",
187
+ config.auth_enabled,
188
+ explicit_azure_request
189
+ )
184
190
 
185
191
  if config.should_use_azure_auth:
186
192
  logger.info("Creating Azure-enabled tracking store via plugin: auth_method=%s", config.auth_method.value)