Skip to main content

OIDC auth plugin for MLflow

Project description

mlflow-oidc-auth

License PyPI Downloads Ask DeepWiki

MLflow auth plugin to use OpenID Connect (OIDC) as authentication and authorization provider.

This plugin allows you to use OIDC for user management in MLflow, enabling single sign-on (SSO) capabilities and centralized user management.

Features

  • OIDC-based authentication for MLflow UI and API
  • User management through OIDC provider
  • User-level access control
  • Group-based access control
  • Permissions management based on regular expressions (allows or denies access to specific MLflow resources based on regular expressions and assigns permissions to users or groups)
  • Support for session, JWT, and basic authentication methods
  • Compatible with mlflow-client (basic auth)

Documentation

For detailed documentation, please refer to the docs. AI generated documentation is available at DeepWiki.

Quick Start

To get the full version (with entire MLflow and all dependencies), run:

python3 -m venv venv
source venv/bin/activate
python3 -m pip install mlflow-oidc-auth[full]
mlflow server --app-name oidc-auth --host 0.0.0.0 --port 8080

Webhook secret encryption key 🔐

Webhook secrets are stored encrypted in the database using a Fernet key. If you plan to use MLflow webhooks with secrets, set the encryption key in the environment variable MLFLOW_WEBHOOK_SECRET_ENCRYPTION_KEY before creating any webhooks. Generate a key with:

MLFLOW_WEBHOOK_SECRET_ENCRYPTION_KEY=$(python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())")
export MLFLOW_WEBHOOK_SECRET_ENCRYPTION_KEY

Important: keep this key stable across application restarts and replicas. If the key is lost or changed after webhooks are created, previously stored secrets cannot be decrypted and will cause webhook listing to fail until you restore the original key or remove/rotate the affected webhook secrets.

Development

For development quick start, please refer to the Development and Contribution section.

License

Apache 2 Licensed. For more information, please see LICENSE.

Based on MLflow basic-auth plugin

https://github.com/mlflow/mlflow/tree/master/mlflow/server/auth

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_oidc_auth-6.7.1.tar.gz (571.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_oidc_auth-6.7.1-py3-none-any.whl (737.2 kB view details)

Uploaded Python 3

File details

Details for the file mlflow_oidc_auth-6.7.1.tar.gz.

File metadata

  • Download URL: mlflow_oidc_auth-6.7.1.tar.gz
  • Upload date:
  • Size: 571.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mlflow_oidc_auth-6.7.1.tar.gz
Algorithm Hash digest
SHA256 cf4e18f20b35e6f135d949eedc6af8acef1aebb68ae450e0ae9d35bb26b48e3b
MD5 70c1c9a0cd28a07be513c2b6f1939014
BLAKE2b-256 6b8b3d4585ab51c4d78f7afaf0f932eb094fdbf8e3d9bcb6b59b1a13a76c7964

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlflow_oidc_auth-6.7.1.tar.gz:

Publisher: pypi.yml on mlflow-oidc/mlflow-oidc-auth

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mlflow_oidc_auth-6.7.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mlflow_oidc_auth-6.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 571e463ba8ea99292d8826d17ea877c7290459358192c5d780fd5a6d916efcee
MD5 538676aad806a7e3d4703ba931ac4465
BLAKE2b-256 87feab9d7f2e3a4360e0422a2f4b13f2660e304ff6d9b35216db7d7d1b834ef8

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlflow_oidc_auth-6.7.1-py3-none-any.whl:

Publisher: pypi.yml on mlflow-oidc/mlflow-oidc-auth

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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