#24328·mlflow

[FR] Add MLflow UI support for presigned artifact flows and optional presigned-only server mode

Author: NeriCarcasciCreated Jul 8, 2026Updated Sep 30, 2026
Labelsenhancementarea/uiuxarea/scoringarea/trackingdomain/platformready

[!WARNING] Before submitting a PR, please make sure that:

  • A maintainer has triaged this issue and applied the ready label
  • This issue has no assignee
  • No duplicate PR exists

PRs not meeting these requirements may be automatically closed.

Willingness to contribute

Yes. I can contribute this feature independently.

Proposal Summary

The Python client now detects presigned multipart artifact capabilities from /server-info, and the MLflow UI downloads supported run artifacts directly from object storage through presigned URLs. This request is for the remaining UI preview flows and an optional --artifacts-only-presigned server mode that lets operators disable legacy artifact proxying once their clients can use presigned flows.

Current status

  • /server-info advertises multipart_uploads_enabled and multipart_downloads_enabled, and the Python client auto-detects them (#24341). These are the names used by the implementation rather than the originally proposed supports_presigned_* fields.
  • The UI download button uses presigned URLs for supported run artifacts, with fallback to the existing proxy path when presigned downloads are unavailable (#24613, #24748).
  • Artifact previews, including text and images, still fetch through get-artifact and need a direct download path when the artifact repository supports one. Logged-model artifact downloads also still use the proxy.
  • There is no presigned-only server mode or artifacts_only_presigned value in /server-info yet.

Motivation

What is the use case for this feature?

Allowing the MLflow web UI to preview artifacts via presigned URLs instead of proxying every byte through the tracking server, and allowing operators to enforce presigned-only mode once all relevant clients and UI flows are ready.

Why is this use case valuable to support for MLflow users in general?

Presigned transfers already let supported backends keep artifact bytes off the tracking server for Python client transfers and UI downloads. Artifact previews still use the server proxy, however, creating unnecessary memory and disk pressure. Operators who have confirmed their clients can use presigned flows also have no way to disable the legacy proxy endpoints that consume server resources.

Why is this use case valuable to support for your project(s) or organization?

We run multi-tenant MLflow tracking servers where the UI is a primary interface for browsing and downloading model artifacts. Large artifact transfers via the proxy can exhaust server resources and degrade service for all users. Enforcing presigned-only mode would let us remove that source of resource-exhaustion incidents once the remaining proxy paths are covered.

Why is it currently difficult to achieve this use case?

The UI download button has a presigned path for supported run artifacts, but artifact previews still fetch through get-artifact (the proxied Flask handler), and logged-model artifact downloads still use the proxy. On the server side, there is no configuration flag to disable the legacy GET/PUT /api/2.0/mlflow-artifacts/artifacts/<path> proxy endpoints, so operators cannot enforce presigned transfers. The Python client also uses the legacy upload path for files below the multipart threshold, which a presigned-only mode must account for.

Details

1. Complete UI presigned flow adoption

  • Use the existing /server-info capability fields (multipart_downloads_enabled and multipart_uploads_enabled) to select a presigned flow where supported.
  • For artifact preview components (ShowArtifactTextView, ShowArtifactImageView, etc.), obtain a presigned download URL and fetch directly from object storage when possible. Preserve the current proxy path when /server-info is unavailable or the repository does not support presigned downloads. The implementation should account for object-storage CORS requirements and responses that require request headers.
  • Cover logged-model artifact downloads and UI artifact upload flows if they would otherwise be broken by presigned-only mode. Existing UI uploads to /ajax-api/2.0/mlflow/upload-artifact still pass through the server.

2. Optional presigned-only server mode

  • Add a server CLI flag --artifacts-only-presigned (default false) and corresponding environment variable MLFLOW_ARTIFACTS_ONLY_PRESIGNED.
  • When enabled, have the legacy artifact proxy endpoints (GET/PUT /api/2.0/mlflow-artifacts/artifacts/<path>) return HTTP 426 (Upgrade Required) with a JSON body that clearly explains how to use a compatible client, for example:
    json
    {
      "error_code": "UPGRADE_REQUIRED",
      "message": "This server requires presigned artifact flows. Please use an MLflow client that supports presigned uploads and downloads."
    }
  • Keep the presigned endpoints (/mlflow-artifacts/mpu/create, /mlflow-artifacts/mpu/complete, /mlflow-artifacts/presigned/<path>) active, and expose an artifacts_only_presigned boolean in /server-info.
  • Only allow this mode with artifact repositories that support the required presigned operations, and make sure current clients can still upload small files: today, the Python client selects presigned multipart upload only above a size threshold and otherwise uses the legacy PUT endpoint. A presigned-only server mode needs a compatible path for those uploads before disabling PUT.
  • Ensure the remaining UI preview and upload routes cannot continue proxying artifact bytes in this mode, so the mode actually achieves the resource-isolation goal.

What machine learning domain(s) is this feature request about?

  • domain/genai: LLMs, Agents, and other GenAI-related use cases
  • domain/classical-ml: Traditional machine learning, such as linear regression.
  • domain/deep-learning: Deep learning and neural networks.
  • domain/platform: MLflow platform foundation, not specific to a particular machine learning domain.

What area(s) of MLflow is this feature request about?

  • area/tracking: Tracking Service, tracking client APIs, autologging
  • area/model-registry: Model Registry service, APIs, and the fluent client calls for Model Registry
  • area/scoring: MLflow model serving, deployment tools, Spark UDFs
  • area/evaluation: MLflow model evaluation features, evaluation metrics, and evaluation workflows
  • area/prompt: MLflow prompt engineering features, prompt templates, and prompt management
  • area/tracing: MLflow Tracing features, tracing APIs, and LLM tracing functionality
  • area/gateway: MLflow AI Gateway client APIs, server, and third-party integrations
  • area/projects: MLproject format, project running backends
  • area/uiux: Front-end, user experience, plotting
  • area/docs: MLflow documentation pages