Skip to main content

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.

CI/CD Pipeline Coverage PyPI version Python versions License

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

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


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)

Uploaded Source

Built Distribution

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

mlflow_secrets_auth-0.1.0-py3-none-any.whl (30.3 kB view details)

Uploaded Python 3

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

Hashes for mlflow_secrets_auth-0.1.0.tar.gz
Algorithm Hash digest
SHA256 61d8819faa3fbaa73fd1f1ba20632d439cea18f1a82b1629fed869f7b4934b50
MD5 772afab2f9ef2094a84ee321a0e263f6
BLAKE2b-256 22114e78c97ae88b26b3f1b1054cb8b0db4945551460dc65c8a57843d5dee2dc

See more details on using hashes here.

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

Hashes for mlflow_secrets_auth-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a8f4ec0333cc9463f9ccff0c7845f2d467f3e9ddd1fef3524517219b13094184
MD5 89a00598cb9a9cb0f7359efc62265c33
BLAKE2b-256 75dc1a5af2f8a291fec76122510c8437af4c4409145a66f2891dd33edb669eac

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