MLflow RBAC: built-in permissions and basic auth

MLflow's open-source tracking server has role-based permissions built in through basic auth, but it is only one part of an enterprise access control design. Plan the identity, network and audit layers around it before approval.

On this page

Does MLflow RBAC meet the access control requirement?

Yes, for the open-source tracking server, MLflow's built-in basic auth meets a role-based access control requirement: permissions are granted through roles from MLflow 3.13.0, using the permission levels READ, USE, EDIT, MANAGE and NO_PERMISSIONS on experiments, registered models, prompts, scorers and AI Gateway resources. If you are weighing a paid edition or managed offering, confirm its access control features with the vendor before you assume they are included here. Creators of experiments and registered models receive MANAGE on what they create, and every other user starts at READ, a default you can change in the config file. Set that default deliberately before you invite the first team, because it decides what each new account can see.

Basic auth does not cover several controls on its own, so plan them around the server. The documentation lists no limit on login attempts, which means brute-force protection belongs at your reverse proxy, identity layer or network controls, and you should test that those controls apply to the tracking server. Sessions end only when the browser closes, so there is no timed logout built into the feature; confirm what your proxy can enforce. The UI also shows no current-user information, so users and reviewers cannot confirm from the screen which account is active. Finally, these accounts live in the basic-auth database and are separate from your corporate directory, so external identity is covered on the separate SSO page.

Three decisions remain before sign-off. First, user and permission data defaults to a SQLite file named basic_auth.db, so for several teams or more than one node, point database_uri at a central database and include it in your backups. Second, the server will not start without an admin password of at least 12 characters set in MLFLOW_AUTH_ADMIN_PASSWORD or admin_password, and only an admin can create, delete or promote users, so name who holds that account and how the password is stored. Third, confirm what the server records about logins and permission changes, and if your policy requires an audit trail, plan it at the proxy or database layer and test it before approval. Full details are in the basic HTTP auth documentation.

Which MLflow access controls are built in, paid or outside components

This table compares each access control in basic auth for a self-hosted MLflow tracking server against what is built in, what a paid edition documents, and what needs a component outside MLflow. Read the built-in column as the documented behavior of the open-source server. Where no paid tier is documented for a control, the paid edition cell says to confirm it with the vendor before you assume it exists.

ControlBuilt inPaid editionOutside component
Permission levelsREAD, USE, EDIT, MANAGE and NO_PERMISSIONSTo confirm with the vendorNone required for these levels
Default access levelREAD for all users, changed through the basic auth config fileTo confirm with the vendorNone
Creator grantsCreators of experiments and registered models receive MANAGE on themTo confirm with the vendorNone
RolesPermissions granted through roles from MLflow 3.13.0To confirm with the vendorNone
Covered resourcesExperiments, registered models, prompts, scorers and AI Gateway resources, with prompts and registered models needing separate grantsTo confirm with the vendorNone
Admin passwordServer will not start without an admin password of at least 12 charactersTo confirm with the vendorSecrets manager to supply the admin password
User managementOnly an admin can create, delete or promote usersTo confirm with the vendorIdentity provider or SSO layer for sign-in, covered on the SSO page
User and permission storeSQLite file basic_auth.db by default, with database_uri pointing to a central database for multi-node setupsTo confirm with the vendorA central database you operate for multi-node setups
Documented limitsNo login attempt limit, no current-user info in the UI, logout only by closing the browserTo confirm with the vendorReverse proxy controls, to confirm with your proxy product

How MLflow RBAC checks permissions on each request

Basic auth applies only to a remote tracking server. You enable it by installing mlflow[auth] and naming the basic-auth app in the server configuration. Users and permission grants live in a database set by database_uri in a basic_auth.ini file, or by the path in MLFLOW_AUTH_CONFIG_PATH, so the auth config decides where those records are kept. The MLflow basic HTTP auth documentation sets out the full config keys. Each request is checked against the user's role and the grant on the target resource before the tracking server returns an answer.

The permission levels are READ, USE, EDIT, MANAGE and NO_PERMISSIONS. Users default to READ, and that default can be changed in the config file, so confirm the value you want before onboarding teams. Creators of experiments and registered models receive MANAGE on what they create. From MLflow 3.13.0, permissions are granted through roles, and covered resources include experiments, registered models, prompts, scorers and AI Gateway resources. Prompts and registered models need separate grants, so a user who can reach one may still be denied the other. Test each resource type with a non-admin account during rollout.

The decision points are the tracking server, which performs the check, and its auth database, which holds the users and grants it checks against. Protect and back up the auth database as you would any store of credentials. If you run a reverse proxy or network layer in front of the tracking server, it sits ahead of both decision points, so traffic it blocks never reaches the check. Multi-node setups should point database_uri at a central database so every node checks the same grants. The basic auth documentation lists no limit on login attempts, so confirm which layer will limit repeated logins and log source addresses.

Request path from a user to a protected MLflow resource

The flow starts at the user's client, which sends each request to the tracking server. An optional reverse proxy or network control can sit in front of the server, outside MLflow itself. The server reads users and grants from the auth database, which defaults to a SQLite file named basic_auth.db unless database_uri points to a central database. The permission check then compares the grant on the specific resource with the levels READ, USE, EDIT and MANAGE. Users without an explicit grant fall back to the default level in the config file, and NO_PERMISSIONS leads to a denied outcome. Check prompts and registered models separately, because they need their own grants.

How a request reaches the permission check and each protected resource type.

Decisions to make before enabling MLflow RBAC

These six choices shape the server before any user signs in. Some are set by the database and MLflow version you pick, and others by who holds the admin account and how grants are issued. Settle them in writing with the owners of the MLflow server, the security team and the identity team, so that every later change is planned rather than improvised.

User store location

MLflow stores users and permissions in a database set by database_uri in basic_auth.ini, or at the path in MLFLOW_AUTH_CONFIG_PATH. The default is a SQLite file named basic_auth.db, which fits one tracking server. Multi-node setups should point database_uri at a central database so every node reads the same users and grants. Decide this before the first account is created, and confirm that each node can reach the database you choose.

Basic HTTP auth docs

Default permission level

Permission levels are READ, USE, EDIT, MANAGE and NO_PERMISSIONS. Every user starts at READ unless you change the default in the config file, and creators of experiments and registered models receive MANAGE on what they create. Decide whether READ is the right baseline for the whole server, since it applies to every user without an explicit grant. A stricter default makes each team request access in advance. Test the choice with one non-admin account before rollout.

Role model and version

Permissions are granted through roles from MLflow 3.13.0 onward, so a role model needs that version or later. Covered resources include experiments, registered models, prompts, scorers and AI Gateway resources. Define the roles your teams need, such as readers, experiment runners and model managers, and map each role to a permission level before writing any grant. Confirm the version your environment runs, and plan the upgrade first if it is older.

Admin password custody

The server will not start without an admin password of at least 12 characters, set in MLFLOW_AUTH_ADMIN_PASSWORD or admin_password. Only an admin can create, delete or promote users, so this account controls the whole server. Decide who holds the password, where it is stored, such as a secrets manager, and who can read it. Plan rotation, and confirm how a changed password reaches the running server before you schedule it.

Grants for prompts and models

Experiment permissions do not cover prompts and registered models, which need separate grants. Creators get MANAGE on the models and experiments they create, but a team that needs a shared prompt must be granted access to it explicitly. Decide who issues these grants, how each one is recorded, and what request path teams use. Test one prompt and one registered model per team after each grant.

Local users or identity layer

Basic auth keeps accounts inside MLflow, so offboarding and password resets are manual steps in that database. An identity layer moves sign-in to an external provider, which the SSO page covers through the community mlflow-oidc-auth plugin or a reverse proxy such as oauth2-proxy. Choose local users only for a small group that accepts manual account changes. Also weigh the documented gaps: the UI shows no current-user information, login attempts are not limited, and logout happens only when the browser closes.

SSO docs

How MLflow RBAC changes by team model and data sensitivity

A single team on one tracking server is the simplest case for built-in permissions. Install mlflow[auth], enable the basic-auth app, and have the admin account create the team's users. The default permission for all users is READ, so the first decision is whether to keep that default or change it in the config file. Creators of experiments and registered models receive MANAGE on what they create, so most day-to-day grants follow from the creation path.

  • Grant design: Keep READ as the default for most users and grant EDIT or MANAGE only to named owners.
  • Database placement: The default store is a SQLite file named basic_auth.db. That suits one server, and it needs the same backup routine as the rest of the server.
  • Admin password: The server will not start without an admin password of at least 12 characters in MLFLOW_AUTH_ADMIN_PASSWORD or admin_password. Keep it in your secrets manager, not in shell history.
  • Outside controls: Terminate TLS in front of the server and limit network reach to the team's subnet. Confirm your proxy and certificate setup, since the documentation does not describe it.
  • Caveats to plan for: The UI shows no current-user information, there is no login attempt limit, and logout happens only when the browser closes. Add rate limiting at the proxy if your policy requires it.

Check that the admin password, default permission level and database file location are written into your runbook before the team starts logging runs.

MLflow RBAC gaps to cover before production

MLflow's basic-auth documentation lists caveats that matter once more than one team uses a shared tracking server. Each gap below states what the built-in feature does not do, and the usual way teams close it outside MLflow. Verify each control in your own environment before go-live, and record the result in your production readiness review.

No limit on login attempts

MLflow's basic-auth caveats state that the server sets no limit on login attempts, so a password can be guessed for as long as the endpoint accepts requests. Put rate limiting and lockout in front of the tracking server, at a reverse proxy or load balancer, and restrict who can reach the login path at the network layer. Check that throttled responses are logged and that the admin account falls under the same rule. Confirm that the proxy counts failed attempts per client and per account, because basic auth sends credentials with every request.

Logout only by closing the browser

The documented caveats say MLflow logs a user out only when the browser is closed, so a session on a shared workstation stays usable until then. Set session lifetimes and idle timeouts where sessions are actually managed, which is usually the reverse proxy or the identity provider in front of the server. Ask users to close the browser on shared machines, and test that a second browser profile cannot reuse a session after the timeout. Confirm with your MLflow release whether any logout route exists before you document it as a control.

Basic HTTP auth docs

No current-user information in the UI

The basic-auth caveats say the MLflow UI shows no current-user information, so a person looking at a screen cannot easily confirm which account is signed in. Establish identity in the audit trail. Ask the proxy or identity layer to log the authenticated username with each request, and keep a register that maps shared or service accounts to named owners. Check that exported runs and review screenshots record the account used. Confirm the MLflow version you run before assuming any user display is available in later releases.

Separate grants for prompts and models

The documented caveats say prompts and registered models need separate grants, so access granted to a model does not carry over to the prompts that feed it. Add a grant review step that covers both resource types for every team. Build a list of who holds READ, USE, EDIT or MANAGE on each prompt and each registered model, and compare it with the team roster on a fixed schedule. Creators of experiments and registered models receive MANAGE on them by default, so review those creator grants too. Confirm how grants behave for prompts in the release you run.

Authentication only on the remote server

MLflow's basic-auth documentation says authentication applies only to a remote tracking server, so code that writes to a local file store or connects directly to the backend database skips the login check. Restrict the network path so the tracking server is the only route to the database and artifact store. Block direct database access from workstations and notebooks, and give the artifact bucket credentials only to the server's service identity. Test from an approved host with the server address unset, and confirm that the write is refused or never reaches the store.

No external identity federation

Basic auth keeps users and permissions in its own database, so accounts are not linked to your corporate directory. Joiners, movers and leavers must be handled by hand unless you add a federated route. Use SSO in front of the server, either through the community-maintained OIDC plugin or a reverse proxy such as oauth2-proxy, as the MLflow SSO docs describe. Decide the route before go-live, because each one changes how admin accounts and group mappings work. Confirm the plugin's maintenance status before you rely on it.

MLflow SSO docs

MLflow RBAC rollout order for production

Production rollout for MLflow basic auth follows a fixed order: confirm the version and auth extra, move users to a central database, protect the admin password, set default access, bind the edge controls, and prove every resource type with test grants. Each step ends with a check that must pass before the next one starts. The result is a server whose access rules are documented, tested and repeatable after every upgrade.

  1. Confirm version and install the auth extra

    The platform owner confirms that the MLflow version on every tracking server node is 3.13.0 or later, the release from which permissions are granted through roles. Install the package with the auth extra, mlflow[auth], on each node so the same build runs everywhere, and record the exact version in your change ticket. Start the server with the basic-auth app name. Done when every node reports the same version, the basic-auth app starts, and the change record names the version you will test against.

  2. Move the user store to a central database

    The platform owner sets database_uri in basic_auth.ini, or in the file named by MLFLOW_AUTH_CONFIG_PATH, to a central database that every tracking server node can reach. The default is a local SQLite file named basic_auth.db, and a file on one machine is not shared with the other nodes, so their users and permissions would drift apart. Create the first admin account, then sign in from a second node. Done when a user created on one node can sign in on all of them and the permission state matches across nodes.

  3. Keep the admin password out of source control

    The platform owner supplies the admin password through MLFLOW_AUTH_ADMIN_PASSWORD or the admin_password setting, pulled from your secrets manager at deploy time. The password must be at least 12 characters, and the server will not start without it, so the deployment pipeline must inject it on every start. Keep it out of basic_auth.ini, compose files, Helm values and shell history. Done when the server starts from a clean checkout, a search of the repository and its history finds no password, and the admin can sign in.

  4. Set the default level and roles

    The platform owner decides the default permission level for all users. It starts as READ and can be changed in the config file. Then the owner creates roles that map teams to the levels they need among READ, USE, EDIT, MANAGE and NO_PERMISSIONS. Creators of experiments and registered models receive MANAGE on what they create, so the default should not be wider than the team expects. Assign roles to test users first. Done when the default, the role list and the assignments are written in the change record, and a new test user sees only what the default and their roles allow.

  5. Bind login and network controls at the edge

    The network or platform team places the tracking server behind TLS and a network boundary you control. Basic auth has no limit on login attempts, the UI shows no current-user information, and sessions end only when the browser closes, so these controls must come from outside the server. Add rate limiting and allowed source ranges at the reverse proxy or load balancer. If you need single sign-on, plan that separately. Done when direct access to the server port is blocked, repeated failed logins are throttled at the edge, and the team has tested each control with a failed login.

  6. Test grants for every resource type

    The security engineer builds a test matrix with one test user per role and one row per action on experiments, registered models, prompts, scorers and AI Gateway resources. Prompts and registered models need their own grants, so an experiment permission does not extend to them. Check each cell by calling the API and the UI as that user. Include a user with no role, and confirm that creators keep MANAGE on what they create. Done when every cell matches the expected result, and each failure is fixed and retested.

  7. Retest the matrix after every upgrade

    The platform owner repeats the full matrix after each MLflow upgrade and after any change to basic_auth.ini, the user database or the default level. MLflow minor releases have arrived roughly monthly, so plan a retest for each one before it reaches production. Keep the matrix, the test users and the expected results in version control, with the admin password kept elsewhere. Done when the matrix matches the recorded baseline on the new version, the admin account still works, and the change record names the version that passed.

What a security reviewer asks to see for MLflow access control

This table maps each request a security reviewer typically makes to the evidence that answers it and where that evidence comes from. Read it as a checklist to prepare before the review starts, since basic auth leaves some controls, such as login limits and audit trails, to the surrounding infrastructure. Independent auditors decide whether the evidence is sufficient for their assessment.

Reviewer requestEvidence to provideWhere it comes from
Default access level and auth setupConfig showing basic-auth is enabled, the default permission level (READ unless changed) and the database locationThe basic_auth.ini file or the path set in MLFLOW_AUTH_CONFIG_PATH
Users, roles and grantsListing of users, roles and permission grants, including roles available from MLflow 3.13.0 onwardQuery of the auth database set by database_uri, which defaults to a SQLite file named basic_auth.db
Admin account handlingRecord that the admin password meets the 12-character minimum, where it is stored, and who can create, delete or promote usersYour secrets store, deployment records and the admin change history kept by your team
MLflow version in useExact installed version, the install method and the upgrade history for the serverThe pip environment or container image tag, compared with the GitHub releases page
Login limits and session controlReverse proxy or network rules for rate limits, session timeouts and TLS, with the matching configuration filesProxy or load balancer configuration, since the basic auth docs list no login attempt limit and logout only by closing the browser
Request and access logsRetained logs of API and UI requests tied to a user name, with retention settingsProxy access logs or a log platform outside MLflow, since the basic auth docs describe no built-in audit trail
Known limitations and accepted riskSigned risk acceptance covering the UI showing no current-user information and separate grants for prompts and registered modelsYour risk register, plus the caveats list in the MLflow basic auth documentation

Questions buyers ask before approving MLflow RBAC

Does MLflow RBAC cost extra beyond the open-source license?

The MLflow code is free to use under the Apache License 2.0, and the mlflow package on PyPI carries the same license. Using built-in basic auth does not add a license fee for that code. Confirm with the vendor whether a paid edition or enterprise license exists that adds access control features, because the open-source license alone does not answer that question. Your costs are the infrastructure for the tracking server and its database, the staff time to configure and operate it, and any outside help you buy. Ask for a quote that lists those components separately and states which parts recur, such as upgrades and periodic access reviews. Managed MLflow from Databricks is a separate product with its own terms.

How much effort does MLflow RBAC setup take, and what drives it?

Effort depends mostly on how many teams need separate access, how many resource types need their own grants, how users sign in, and which controls sit outside MLflow. Basic auth covers experiments, registered models, prompts, scorers and AI Gateway resources through roles, which MLflow added in version 3.13.0. A server with a few teams and one resource type is a smaller job. Effort rises as you add teams, resource types, a shared database for several nodes, or identity integration through a community plugin or reverse proxy. Each of those adds configuration, testing and documentation. Ask for a quote that counts each team, resource type and integration separately, and confirm the MLflow version you will run before scoping.

What does our team need to provide for an MLflow access project?

Your team provides the decisions and access to the systems. Name the teams, the roles each person holds, and which experiments, registered models and prompts each team owns, since creators receive MANAGE on what they create. Provide a test or staging tracking server, the database that will hold user and permission data, and a secure place to store the admin password, which must be at least 12 characters. Expect to name a platform owner who can approve the role model, and an identity owner if sign-in is tied to an external provider. Confirm how your change process handles configuration files and database backups, because basic auth keeps users and permissions in that database.

Can our own platform engineers set up MLflow RBAC without outside help?

Yes, a capable platform team can configure basic auth from the MLflow documentation, and an outside partner is optional. The setup itself involves installing the mlflow[auth] extra, pointing the auth configuration at a database, setting the admin password, and defining users and grants. The harder work is design: deciding the default permission level, mapping roles to teams, and testing and documenting the result for reviewers. Engineers who have not operated a tracking server before may need more time. A partner is useful when you need the design, an evidence pack for a review, or extra capacity on a deadline. Decide before starting which of those you want to buy.

Does MLflow RBAC alone satisfy an audit of our access controls?

No single tool satisfies an audit by itself, so treat MLflow basic auth as one control within your wider access program. An auditor will ask how identities are issued and removed, how privileges are granted and reviewed, how the admin account is protected, and whether activity is recorded. Basic auth can enforce the permission levels and the admin password rule, but its documented caveats require compensating controls. The UI shows no current-user information, there is no limit on login attempts, and sessions end only when the browser closes. DeployOpen prepares systems, controls and evidence for compliance assessments. It does not issue audit reports or certifications, which independent auditors and certification bodies do. Confirm your control framework with your auditor before relying on this design.

Does MLflow basic auth replace single sign-on for our users?

No. Basic auth keeps its own users and passwords in a database, so it does not connect your people to your corporate identity provider. MLflow's documentation treats SSO as a separate choice with two routes: the mlflow-oidc-auth plugin, which the documentation says is community maintained, or a reverse proxy such as oauth2-proxy in front of the tracking server. Each route changes who manages passwords, how joiners and leavers are handled, and where multi-factor sign-in is enforced. If you require SSO, plan it as separate work and decide whether the permission model stays in MLflow or moves to the proxy. The MLflow SSO documentation describes both routes in more detail.

What limits should a security team check in MLflow basic auth before approval?

Check the documented caveats and scope rules before approving the design. Authentication applies only to a remote tracking server, so local runs fall outside it. Prompts and registered models need separate grants, so a permission on experiments does not cover them. The UI shows no current-user information, has no limit on login attempts, and logs out only when the browser closes. Permission data defaults to a SQLite file named basic_auth.db, and multi-node setups should point database_uri at a central database. Test each limit in your environment and record the compensating control you chose, such as network restrictions or a reverse proxy that adds login throttling. The MLflow basic HTTP auth documentation lists these caveats, so confirm them against the version you run.

How DeployOpen puts MLflow access control in place in your infrastructure

DeployOpen plans and builds MLflow access control on the tracking server you run, using the basic-auth permission model that MLflow ships with. Each engagement starts from a written scope that names the users, roles and resources in play. Work is fixed-scope, with deliverables and timelines agreed in writing before work starts, and ongoing support is available as a retainer.

How we scope

  • We record which teams, service accounts and admins need access before any configuration starts.
  • The written scope maps each team to permission levels and to the experiments, models and prompts it uses.
  • The scope states deliverables and timelines, agreed in writing before work starts.

How we build

  • We install mlflow[auth] on the remote tracking server and enable the basic-auth app in your configuration.
  • We set the default permission level in the config file to match the agreed scope.
  • We keep users and grants in the database named by database_uri, using a central database for multi-node setups.

How we hand over

  • We test each permission level with a test account for every role in the scope.
  • We document the admin password rule, which requires at least 12 characters in MLFLOW_AUTH_ADMIN_PASSWORD or admin_password.
  • We write a runbook covering admin-only user changes, known caveats, and the separate grants for prompts and models.

How we support

  • We document the UI limits that matter to your users: no current-user display, no login-attempt limit, and browser-only logout.
  • We list compensating controls for those gaps, to evaluate with your security team.
  • Ongoing support, upgrades and continuous testing are available as a retainer, scoped in writing.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.