# Security

> How Monitorly Cloud protects your account, your check secrets, the requests its nodes send, your alert endpoints and agent access, and how to report a vulnerability.

## Your account

- Passwords of at least 12 characters, or sign-in with Google or GitHub; optional two-factor authentication with any TOTP app. A TOTP code works once.
- Sign-in attempts are limited per account and per address.
- Sessions end after 7 days without use and 30 days after sign-in. Changing your password ends your other sessions.
- The session cookie is `Secure`, `HttpOnly` and `SameSite=Lax`, and changing requests must come from the dashboard itself.

## Workspaces

Nothing of one workspace is visible from another: a resource you are not a member of answers 404, as if it did not exist. Every change is recorded in the workspace's audit log with who made it and from where: the dashboard, the API, the CLI or an MCP client.

## Check secrets

Secret request headers, such as `Authorization` or an API key:

- are encrypted at rest with AES-256-GCM;
- are never returned by the dashboard, the API, the CLI or MCP tools, and are removed from results and logs;
- reach a node sealed with that node's own public key, so only that node can read them; the node's private key never leaves its server;
- go only to the origin and the header they were entered for, and never follow a redirect to another origin.

## Requests from nodes

Platform nodes never connect to internal addresses (loopback, private networks, link-local addresses including cloud metadata, shared address space, multicast). The address is checked after DNS resolution and on every redirect, and the node connects to exactly the address it checked, which defeats DNS rebinding. See [Nodes](https://docs.monitorly.cloud/concepts/nodes.md#what-platform-nodes-may-not-reach).

Every request says who sends it: `User-Agent: Monitorly/<version> (+https://monitorly.cloud)`.

## Private nodes

A private node opens the connection to Monitorly Cloud; nothing needs to reach your server from outside. It runs as its own system user with only `CAP_NET_RAW`, may write only its state directory, and cannot see other processes or home directories ([Install a private node](https://docs.monitorly.cloud/nodes/install.md)). Its software is checked by SHA-256 before it is installed.

## Alert endpoints

- Channel destinations (webhook URLs, the ntfy topic and token, PagerDuty and Pushover keys) are stored encrypted and never shown again; the dashboard and the API show only the host or the server.
- Webhook requests are signed with HMAC-SHA256 and a timestamp; [verify them](https://docs.monitorly.cloud/webhooks.md#verify-the-signature).
- Webhook, Mattermost and ntfy server addresses may not point into internal networks; the name is resolved and checked again on every delivery.
- Email channels receive alerts only after the mailbox owner confirms.

## Agents and tokens

- A token or an MCP sign-in acts as the person who made it, within its scopes and project, and never beyond that person's current role ([Authentication](https://docs.monitorly.cloud/api/authentication.md)).
- Tokens never manage members, tokens, workspaces or your account.
- Configuration changes go through a plan; deleting needs its own step with an explicit count ([Coding agents](https://docs.monitorly.cloud/agents.md#what-an-agent-may-do)).
- Text from monitored sites reaches agents only inside fenced `untrusted` fields ([MCP server](https://docs.monitorly.cloud/mcp.md#text-from-monitored-sites)).
- `monitorly discover` never opens environment files, keys, certificates, Terraform state or files named like secrets ([`monitorly discover`](https://docs.monitorly.cloud/cli/discover.md#what-it-never-opens)).

## Reporting a vulnerability

Write to [security@monitorly.cloud](mailto:security@monitorly.cloud) with what you found and how to reproduce it.
