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.1.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.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for mlflow-custom-headers-plugin-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a383a65fa96c20cdb6124bff83ba277f43a9356367676f6e72d7a3d02330c74a
MD5 a915d58b3fb608c3dd93df412ba1a7db
BLAKE2b-256 dee14655e805876dadcdf487705fb1e727cd39050a67887847b3a6dd65ecc861

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mlflow_custom_headers_plugin-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2475fd5a87eb7bc7fa844f2a3da2b2ff094c7137796eab2cfb1afe8fc2e1038f
MD5 e6d2fb65f684b92483c53691bb4b957f
BLAKE2b-256 6e4ff3e8abf52202d257e606fff7be6eea8401411d7570d4f63f536e4e13d883

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