MLflow plugin that injects authentication headers from secret managers
Project description
MLflow Secrets Auth
A secure MLflow plugin that automatically injects authentication headers from secret management systems into tracking requests.
Features
- Zero Code Changes: Works transparently with existing MLflow applications
- Multiple Providers: HashiCorp Vault, AWS Secrets Manager, Azure Key Vault
- Security First: Host allowlisting, credential redaction, in-memory caching only
- Production Ready: Automatic retries, TTL-based caching, comprehensive logging
Quick Start
# Install with your preferred provider
pip install mlflow-secrets-auth[vault]
# Configure for HashiCorp Vault
export VAULT_ADDR="https://vault.company.com"
export VAULT_TOKEN="your-vault-token"
export MLFLOW_VAULT_SECRET_PATH="secret/mlflow/auth"
export MLFLOW_SECRETS_AUTH_ENABLE="vault"
# Your MLflow code works unchanged
import mlflow
mlflow.set_tracking_uri("https://mlflow.company.com")
mlflow.start_run() # Authentication happens automatically
Supported Providers
| Provider | Install Command | Authentication | Status |
|---|---|---|---|
| HashiCorp Vault | pip install mlflow-secrets-auth[vault] |
Token, AppRole | ✅ Available |
| AWS Secrets Manager | pip install mlflow-secrets-auth[aws] |
IAM, Access Keys | ✅ Available |
| Azure Key Vault | pip install mlflow-secrets-auth[azure] |
Service Principal, Managed Identity | ✅ Available |
| Google Secret Manager | pip install mlflow-secrets-auth[gcp] |
Service Account, Workload Identity | 🚧 Planned |
Documentation
- Getting Started - Quick setup guide
- Configuration - Complete configuration reference
- Providers - Provider-specific setup
- Troubleshooting - Common issues and solutions
Requirements
- Python 3.9+
- MLflow 2.20.4+
- Provider-specific SDKs (installed with extras)
License
Apache License 2.0 - see LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mlflow_secrets_auth-0.1.0.tar.gz
(25.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mlflow_secrets_auth-0.1.0.tar.gz.
File metadata
- Download URL: mlflow_secrets_auth-0.1.0.tar.gz
- Upload date:
- Size: 25.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.4 CPython/3.12.11 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61d8819faa3fbaa73fd1f1ba20632d439cea18f1a82b1629fed869f7b4934b50
|
|
| MD5 |
772afab2f9ef2094a84ee321a0e263f6
|
|
| BLAKE2b-256 |
22114e78c97ae88b26b3f1b1054cb8b0db4945551460dc65c8a57843d5dee2dc
|
File details
Details for the file mlflow_secrets_auth-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mlflow_secrets_auth-0.1.0-py3-none-any.whl
- Upload date:
- Size: 30.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.4 CPython/3.12.11 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8f4ec0333cc9463f9ccff0c7845f2d467f3e9ddd1fef3524517219b13094184
|
|
| MD5 |
89a00598cb9a9cb0f7359efc62265c33
|
|
| BLAKE2b-256 |
75dc1a5af2f8a291fec76122510c8437af4c4409145a66f2891dd33edb669eac
|