Skip to main content

MLFlow plugin that allows adding extra headers to requests to MLFlow in order to enable authentication and other use-cases.

Project description

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>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mlflow-custom-headers-plugin-1.0.2.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mlflow_custom_headers_plugin-1.0.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file mlflow-custom-headers-plugin-1.0.2.tar.gz.

File metadata

File hashes

Hashes for mlflow-custom-headers-plugin-1.0.2.tar.gz
Algorithm Hash digest
SHA256 13c5e3073019689113495bbf77bc50b96ec3aac7648d01830b54961ce1ae984a
MD5 834e85e20facfb62c496bf21bcd9432e
BLAKE2b-256 6b28158bb1579d45b57c7115daf9678202d37bcc765c620bfa601cc6056f936e

See more details on using hashes here.

File details

Details for the file mlflow_custom_headers_plugin-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mlflow_custom_headers_plugin-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bfcf096aa3c9e4bccb7fa97d81e3d27d4d4b61c881982cd95169dc22a8e5ce73
MD5 76f8b1d9aa4911d14e5e1f0b01f03bf2
BLAKE2b-256 280479c0394e06734e7bd69e0795a92c0a0bbfaee510afccf13feff9b92bcc93

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page