Security overview
How mlflow authenticates users, protects secrets, limits network access and records an audit trail.
This page describes the protections that mlflow has built in. It explains what is done for you and what you still decide. Where a value is a default, an administrator of a self-hosted server can change it.
Authentication
People sign in with an email address and a password. The server never stores the password: it stores a salted bcrypt hash. Passwords must have at least 10 characters.
- Sessions. After sign-in the app receives a short-lived access token (60 minutes by default) and a refresh token (30 days by default). Only a fingerprint of the refresh token is stored on the server, so a stolen database does not reveal usable sessions. Changing your password ends your other sessions.
- Accounts come from an administrator. Public sign-up is off by default. A platform administrator creates accounts, and a workspace admin adds existing users to a workspace.
- Email checks. When the server can send email, accounts are verified by email, and password reset links expire. mlflow sends you a notice when your password changes.
- API keys. Code uses personal API keys instead of a password. A key is shown once, stored only as a SHA-256 fingerprint, can expire and can be revoked. See API keys and scopes.
- Sign-in protection. Repeated failed sign-in attempts from the same address or against the same account are slowed down and then refused with a
429answer. The answer never tells you whether an account exists.
Authorization
Every request is checked twice: by who you are and by what you are doing.
- Roles. Workspace roles and project roles decide what a person can see and change. A member with a read-only role cannot create, change or delete anything. See Roles and permissions.
- Isolation. Workspaces are separate. When you ask for something in another workspace, you get "not found", so identifiers do not reveal what exists.
- API key scopes. A key can be limited to
read,write,predictoradmin. A key never has more rights than the person who created it. Sensitive account actions, such as creating keys or changing a password, always need a signed-in session, not a key. - Deployment access. Each endpoint has an access mode: workspace members, API key or public (any signed-in user). Only a workspace admin can choose public. See Deploy and test a model.
- Approvals. For sensitive actions, such as moving a model to production, an approval workflow can require signatures before the action runs. See Register and manage models.
Secrets at rest
Credentials that you give to mlflow are encrypted before they are saved: database passwords and keys stored under Connections & secrets, access tokens for Git repositories, the API key of your AI provider and webhook signing secrets. Only the last four characters of a stored secret are shown in lists, and the value is never returned again.
Encryption uses a key that belongs to your installation. A production server refuses to start without it, so credentials are never saved unprotected. Deployment-specific keys, such as the keys of external deployments, are stored as fingerprints, not as readable values.
Use read-only logins for the databases you connect, and give each connection the least access it needs.
Network egress
mlflow connects to systems that you name: databases, HTTP APIs and your AI provider. To keep this from being abused to reach internal systems, every outgoing connection goes through one check:
- Addresses on the public internet are allowed.
- Addresses inside a private network, on the same machine or in a cloud's internal metadata service are refused by default. On a self-hosted server an administrator can allow private networks, for example for a database in the same data center. Link-local and metadata addresses stay blocked even then.
- The address is resolved once, checked, and then used for the connection, so a name cannot be switched to an internal address between the check and the connection.
- An administrator can add hosts that are always allowed.
If a connection to your database fails with "Could not reach the database server", this check or your firewall is the usual reason. See Connect a database.
Read-only SQL
You can define a dataset with your own SQL query. mlflow treats that text as untrusted:
- Only a single read-only
SELECTis accepted. Comments, several statements and statements that change data, run commands or call side-effecting functions are rejected. - The query is wrapped in a row limit and run in a read-only, time-limited transaction that is always rolled back. The database driver is also told to refuse a second statement.
- These layers do not replace a database login with read-only rights. Some databases cannot enforce read-only sessions, so use a read-only login there.
Rate limits
mlflow limits request rates to protect the service and your accounts. The limits below are defaults:
| What | Default limit |
|---|---|
| Sign-in attempts | 10 per minute per address, 5 per minute per account and address |
| Password reset and verification emails | A few per hour per address and per account |
| API requests with one API key | 600 per minute |
| Calls from outside the workspace to a public endpoint | 60 per minute per address |
| AI advisor requests | 30 per 5 minutes per user |
A limited request is answered with 429 and a Retry-After header. See Errors and rate limits.
Audit log
mlflow records every request that changes something: creating, updating or deleting. Each entry holds who did it, when, what and the outcome. Reading data is not logged.
- Workspace admins see the audit log of their workspace: select Audit log under Settings > General.
- Platform administrators can see the log of the whole installation.
Secrets never reach the log. Values of secrets, passwords, tokens, connection strings and headers are replaced with a marker, and credentials inside web addresses are masked. For routes that carry secrets, only the names of the fields are kept.
Other protections worth knowing
- Model files run code. A model file is a program. Only load files that you trust, and prefer downloading models you trained here. The download dialog reminds you of this.
- The AI advisor only advises. It returns suggestions and risk flags. A person approves every change before anything runs, and it never takes destructive actions on its own.
- Notebooks use a separate token for each session.
- Your data. You can export your data and delete your account. See Your account.
Reporting a vulnerability
If you think you found a security problem in mlflow, please tell us before you share it with anyone else. Send an email to sales@mlflow.es with the subject "Security report". Include what you found, the steps to reproduce it and the address of the server. Do not include real customer data. We will confirm that we received your report and keep you informed.
On a self-hosted installation, also tell your own administrator.
Next steps
Learn the theory
Lessons on learning.mlflow.es that explain the ideas behind this page.
Updated 2026-11-22