Skip to main content

MLFlow Custom Headers Plugin

Source code

A package that enables setting any number of custom headers to be passed along with requests to the MLFlow tracking server.

This is very useful for enabling proper authentication on your MLFlow instance beyond MLFlow's simplistic authentication capabilities using basic auth or one single token.

This plugin was inspired by the mlflow-cloudflare-header-plugin and does also provide support for using Cloudflare Access service tokens for securing your MLFlow tracking server.

Usage

Install the plugin in your project using MLFlow:

pip install mlflow-custom-headers-plugin

Set all the headers you'd like passed in an environment variable called MLFLOW_CUSTOM_HEADERS. Key-value header pairs should be separated by commas, and header name and value should be separated by a colon (:) without any empty space.

export MLFLOW_CUSTOM_HEADERS=Header1:<Header1Value>,Header2:<Header2Value>,Header3:<Header2Value>

Example (using Cloudflare Access):

export MLFLOW_CUSTOM_HEADERS=CF-Access-Client-Id:<cf_client_id>,CF-Access-Client-Secret:<cf_client_secret>

Metadata

Release files for mlflow-custom-headers-plugin 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mlflow-custom-headers-plugin 1.0.2
File Size Uploaded Provenance Actions
mlflow-custom-headers-plugin-1.0.2.tar.gz 3.2 kB Without provenance Details for mlflow-custom-headers-plugin-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mlflow-custom-headers-plugin 1.0.2
File Interpreter ABI Platform Actions
mlflow_custom_headers_plugin-1.0.2-py3-none-any.whl Python 3 none any Details for mlflow_custom_headers_plugin-1.0.2-py3-none-any.whl

Total release size: 7.1 kB

Release files / mlflow-custom-headers-plugin-1.0.2.tar.gz

Download URL mlflow-custom-headers-plugin-1.0.2.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
13c5e3073019689113495bbf77bc50b96ec3aac7648d01830b54961ce1ae984a
BLAKE2b-256 checksum
How to use checksums
6b28158bb1579d45b57c7115daf9678202d37bcc765c620bfa601cc6056f936e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.10

Release files / mlflow_custom_headers_plugin-1.0.2-py3-none-any.whl

Download URL mlflow_custom_headers_plugin-1.0.2-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bfcf096aa3c9e4bccb7fa97d81e3d27d4d4b61c881982cd95169dc22a8e5ce73
BLAKE2b-256 checksum
How to use checksums
280479c0394e06734e7bd69e0795a92c0a0bbfaee510afccf13feff9b92bcc93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.10

Security for mlflow-custom-headers-plugin 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page