You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

mlflow-custom-headers-plugin

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mlflow-custom-headers-plugin

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

1.0.2
Source
pipPyPI
Maintainers
1

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>

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts