# Provider tokens

> Pulse encrypts hosting provider tokens at rest and uses them only to read. Give each one as few permissions as possible, and replace it when it expires.

- Section: Security and trust
- Availability: One provider from the Free plan, no limit with Pro and Team. On iPhone, iPad, Mac and Android.
- URL: https://pulse-app.si/en/docs/security/host-tokens

## How they’re stored

Unlike SSH keys, a provider token is sent to the Pulse server, which uses it to read your VPS servers at regular intervals. It’s protected in these ways:

- Encrypted at rest with AES-256-GCM, with a key kept outside the database, so a stolen backup doesn’t reveal your tokens.
- Bound to its provider account. If it’s copied onto another database row, it can’t be decrypted.
- Never sent back to the app, never written to a log.
- Only its last 4 characters stay readable, so you can recognize it (`•••• abcd`). They also appear in [your data export](https://pulse-app.si/en/docs/security/delete-account#export).

## Give it as few permissions as possible

Pulse only reads from the provider. The one technical exception is Contabo, which needs a `POST` request to get a token that lasts a few minutes.

| Provider | Permissions to give |
| --- | --- |
| Hostinger | A token created in hPanel, with an expiration date |
| OVHcloud | Three keys, encrypted together, with `GET /vps` and `GET /vps/*` rights |
| AWS | `ec2:DescribeInstances` and `cloudwatch:GetMetricData` |
| DigitalOcean | A **Read Only** token |
| Hetzner | A **Read** token, per project |
| Vultr | An API key, limited to Pulse’s IP address |
| Contabo | Four credentials. Contabo doesn’t offer read-only access, but Pulse only uses them to read |

For the steps, see [Connect a provider](https://pulse-app.si/en/docs/servers/hosts).

## Token expiration

Pulse doesn’t read this date from the provider, so enter it in **Token Expiration Date** when you connect the account. A notification goes out 7 days before, and the account shows **Renewal due** from 14 days before.

If the provider rejects the token, syncing stops until you replace it. Your servers and their history stay in Pulse.

## Replace or remove a token

### iPhone and iPad

1. Open **Settings › Connected Providers**, then the account.
2. **Replace Token** saves a new one and overwrites the old one.
3. **Disconnect** removes the account. Its servers and their history are removed from Pulse, and the token is erased.

### Mac

1. Open **Settings › Providers**, then the account.
2. **Replace Token** saves a new one and overwrites the old one.
3. **Disconnect** removes the account. Its servers and their history are removed from Pulse, and the token is erased.

### Android

1. Open **Settings › Connected Providers**, then the account.
2. **Replace Token** saves a new one and overwrites the old one.
3. **Disconnect** removes the account. Its servers and their history are removed from Pulse, and the token is erased.

> **Remember to revoke it**
>
> Disconnecting erases the token in Pulse, but not at the provider. Revoke it in the provider’s console too if you no longer use it.

- [Connect a provider](https://pulse-app.si/en/docs/servers/hosts)
- [What Pulse sees](https://pulse-app.si/en/docs/security/what-we-see)
