This package provides a custom MLflow plugin that allows users to pass custom headers when authenticating to a MLflow server that is protected using Cloudflare Access.
cloudflare-request-header-plugin
: this package includes theCloudflareRequestHeaderProvider
class that is used to specify the custom request headercf-access-token
required for a user to authenticate to the MLflow server when using the MLflow Python API.setup.py
file defines the entrypoint that tells MLflow to automatically register the custom request header provider to the registry when this package is installed. The entrypoint is configured as follows:
entry_points={
"mlflow.request_header_provider": "unused=cloudflare_request_header_plugin.cloudflare_request_header_provider:CloudflareRequestHeaderProvider"
}
Install this package using pip and then use MLflow as normal.
pip install cloudflare-request-header-plugin
The plugin expects Cloudflare Access credentials to be set in the CF_ACCESS_TOKEN
environment variable on the client application.