Security

MAAS enforces strict access control and secure secret management to protect system integrity.

Reporting vulnerabilities

MAAS follows the Ubuntu disclosure policy. If you discover a security issue, see the MAAS security policy for how to report it.

Because security fixes are included in regular MAAS releases, keeping your system up to date is the best way to stay protected. Check out Supported MAAS versions to see if your current version is still receiving updates.

Security architecture

A MAAS deployment is made of region controllers, rack controllers, a PostgreSQL database, and the machines that MAAS manages. Each of these components sits on one side of a trust boundary, and every boundary is protected by its own security controls.

        flowchart LR
    subgraph EXT["External"]
        USERS["Administrators, users<br/>and API clients"]
        IDP["Identity provider<br/>(OIDC)"]
        IMG["Image and package<br/>repositories"]
    end

    subgraph CP["MAAS control plane"]
        REGION["Region controller<br/>(web UI and API)"]
        DB[("PostgreSQL")]
        VAULT[("Vault<br/>(optional)")]
        RACK["Rack controller"]
    end

    subgraph PN["Provisioning network"]
        MACHINES["Machines"]
        BMC["BMCs"]
    end

    USERS -->|"HTTP or HTTPS"| REGION
    IDP -->|"Single sign-on"| REGION
    IMG -->|"Signed images"| REGION
    REGION --> DB
    REGION --> VAULT
    RACK <-->|"RPC with shared secret"| REGION
    RACK -->|"DHCP, TFTP and HTTP"| MACHINES
    RACK -->|"Power drivers"| BMC
    

Components

  • Region controller: serves the web UI and the API, and orchestrates the rest of MAAS. It also runs the Temporal server, which orchestrates MAAS workflows. See Region controllers.

  • Rack controller: provides DHCP, TFTP, HTTP boot, and power management to the machines on its fabrics. It also runs the MAAS Agent, which connects to the region controller. See Rack controllers.

  • PostgreSQL: stores the state of MAAS, including credentials. See PostgreSQL security.

  • HashiCorp Vault: optionally stores MAAS secrets outside the database. See HashiCorp Vault.

  • Load balancer: optionally distributes web UI and API requests across region controllers, and can terminate TLS. See Highly available API with HAProxy.

  • Machines and BMCs: the servers that MAAS commissions and deploys, and the baseboard management controllers that MAAS uses to power them on and off. See The machine life cycle.

Access to the region controller

Administrators, users, and API clients only interact with the region controller, through the web UI, the CLI, or the API. Users authenticate with a password, an API key, or single sign-on, and each request is authorized against the user’s entitlements.

By default, the web UI and the API use HTTP. To encrypt this traffic, enable TLS. When TLS is enabled, the region controller still serves an internal HTTP endpoint for the rack controllers.

External services

The region controller downloads boot images from image repositories and verifies them with a GPG keyring. When single sign-on is configured, the region controller also trusts an external OIDC identity provider to authenticate users.

Communication between controllers

Rack controllers have no direct access to the database. They communicate with the region controller over RPC, authenticated with the shared secret, and the MAAS Agent connects to the internal API of the region controller on port 5242.

Provisioning network

Rack controllers boot machines over DHCP, TFTP, and HTTP, and control them through their BMCs with power drivers. Network boot protocols do not authenticate the machines, so keep the provisioning network isolated from untrusted networks. To restrict the ports that MAAS exposes, see Manage network ports.

TLS termination

SSL should be replaced with Transport Layer Security (TLS). A TLS-terminated load balancer routes incoming Web UI and API requests across region controllers, reducing workload and latency. Encryption and decryption occur at the edge of the network; in this case, right at the load balancer. TLS better ensures privacy and data integrity through symmetric cryptography and message authentication codes.

Certificate expiration

When the specified number of days remain until certificate expiration (as defined in the notification reminder), all administrators will see the certificate expiration notification. This notification enumerates the number of days until certificate expiration. It can be dismissed, but once dismissed, it won’t appear again.

A certificate expiration check runs every twelve hours. When the certificate has expired, the notification will change to “certificate has expired”.

Note that MAAS does not auto-renew certificates.

Security hardening and FIPS mode

MAAS can apply STIG- and CIS-aligned transport-security controls to its controllers. These controls activate automatically when a controller’s host is in FIPS mode, and you can also activate them on any other host. When a prerequisite is missing, MAAS keeps running and reports the problem as a non-dismissable notification for administrators.

For the concepts, see FIPS mode and security hardening. To set up a hardened controller, see Activate MAAS hardening.

Shared secrets

When you add a new rack or region controller, MAAS asks for a shared secret it will use to communicate with the rest of MAAS. This secret is also exposed in the web UI when you click the ‘Add rack controller’ button on the Controllers page. MAAS automatically generates this secret when your first region controller installed, and stores the secret in a plain text file. This file is automatically protected with the correct permissions, so there is no need for any action on your part.

As a MAAS administrator, it’s crucial to avoid storing secrets associated with your MAAS instance in the database. This includes secrets like the OMAPI key and the RPC secret.

HashiCorp Vault

Beginning with version 3.3, MAAS secrets are stored in HashiCorp Vault.

Vault employs identity for securing secrets and encryption keys. Its core component is the kv secrets engine, which utilizes key-value pairs to store secrets within an encrypted storage managed by Vault. You can explore more about secrets engines if you’re interested.

Vault safeguards the secrets engine using a barrier view, creating a folder with a randomly-generated UUID as the absolute root directory for that engine. This prevents the engine from accessing secrets outside its UUID folder.

Vault is compatible with MAAS version 3.3 and above. Please upgrade if you’re using an older version of MAAS and want to use Vault.

Learn more about Hashicorp Vault.

PostgreSQL security

PostgreSQL contains secrets, and should be encrypted for maximum protection. You should consider full disk encryption. Also recommended is TLS encryption between MAAS and PostgreSQL.

Strong passwords

You should pick good passwords and store them securely (e.g. in a KeePassX password database). Perform user administration only via the web UI. Only share the maas and root user passwords with administrators.

Valid permissions

MAAS configuration files should be set to have permission 640: readable by logins belonging to the maas group and writeable only by the root user. Currently, the regiond.conf file contains the login credentials for the PostgreSQL database used by MAAS to keep track of all machines, networks, and configuration.

File

Permissions

/var/snap/maas/current/regiond.conf

-rw-r-----

/var/snap/maas/current/rackd.conf

-rw-r-----

Snap security

Snaps are fully confined or ‘sandboxed,’ offering inherent security for the enclosed application. For more detailed information, see this snap blog.

Role-Based Access Control (RBAC)

MAAS assigns access based on roles:

  • Administrator – Full access to all settings and machines.

  • Operator – Admin privileges within assigned resource pools.

  • User – Access to unallocated machines but no settings.

  • Auditor – Read-only access to assigned resource pools.

RBAC, Candid, and an identity provider (e.g., SSO) manage authentication.

Resource pools & permissions

Each machine belongs to one resource pool. Users access machines based on roles. Hiding machines is not security—proper authorization is required.

Identity services & Candid

MAAS supports multiple identity services via Candid, Canonical’s authentication gateway. Candid issues macaroons—tokens that verify users without repeated authentication requests.

RBAC & MAAS integration

RBAC associates roles with authenticated identities, not individual users. It governs:

  • Machines in resource pools

  • DNS, availability zones, images, and settings

A user can have different roles across pools—e.g., Operator in one, Auditor in another.

RBAC workflow

  1. MAAS syncs resource pools with RBAC.

  2. User login is redirected to RBAC.

  3. RBAC authenticates via Candid.

  4. Candid validates the user via an identity provider (e.g., SSO).

  5. If authenticated, Candid issues a macaroon.

  6. RBAC sends the macaroon and role details to MAAS.

  7. MAAS grants access based on role-resource pairings.

RBAC does not check permissions per resource pool—MAAS enforces them based on roles.

RBAC roles summary

Role

Permissions

Administrator

Full access (all settings, machines, pools).

Operator

Admin privileges within assigned resource pools.

User

Can allocate machines but can’t change settings.

Auditor

Read-only access to permitted resource pools.

MAAS enforces role-based visibility. Users cannot access non-permitted machines, even if they know the system ID.

Security consulting

If you need help implementing MAAS security, please contact us. We will be happy to assist you in arranging security consulting appropriate to your needs.