Skip to content
mofcloud

Network and security

Last updated:

Go through this list once after deploying.

Ports

Open only 80, plus 443 with HTTPS. Both are served by Dash.

PortServiceExposure
80 / 443DashUsers
8080MOF APIInside the containers only
8001MCPInside the containers only

The templates do not publish 8080 or 8001; keep it that way. Dash forwards only /v1/mof, OAuth discovery and the health check to MOF, so metrics and API docs under /internal are not reachable on port 80.

HTTPS

Dash turns on HTTPS by itself when it finds a certificate: put tls.crt and tls.key in a certs folder next to compose.yaml, then add to the dash service:

compose.yaml · dash
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - ./certs:/etc/nginx/certs:ro

Run docker compose up -d. HTTP then redirects to HTTPS. If the public HTTPS port is not 443, set DASH_HTTPS_PORT to it so the redirect lands on the right port. You can also terminate HTTPS at your own load balancer or Nginx instead.

Browser sign-in for AI clients needs HTTPS; see MCP and OAuth.

Keys

In Admin → Settings → Keys:

  • Encryption key: protects cloud account credentials and email passwords. It starts as the system default; set your own right after deploying. Saving re-encrypts everything in a few seconds without downtime. Keep the new key somewhere safe.
  • Sign-in signing key: generated on first start; nothing to do. If you suspect a leak, click Regenerate; everyone has to sign in again within an hour. To keep it in your own secret manager, set MOF_JWT_SECRET.
  • Admin password: random, shown once in the log on first start. Lost it? Set MOF_ADMIN_PASSWORD and restart MOF.

Database

  • Reach PostgreSQL over a private network only; never expose it to the internet.
  • Use a dedicated role with login and CREATEDB permissions only.
  • TLS-only PostgreSQL is not supported yet, so the connection must stay on a trusted network.

Anyone who can read the database can read all data and keys. Database access control is the security boundary of the whole system.

Outbound access

MOF calls out to:

DestinationUsed for
Cloud provider APIsSyncing bills and resources
data.mofcloud.comPrice data updates
Your email serviceNotifications, if set up

Without direct internet access, go through a proxy with HTTPS_PROXY, and put the database address in NO_PROXY. See Environment variables.