---
title: "Deploying Philter in a HIPAA Environment"
description: "How to configure a Philter deployment for HIPAA: encryption of data at rest and in motion across AWS, Azure, and Google Cloud."
url: "https://philterd.ai/guides/deploying-philter-in-a-hipaa-environment/"
---

[Knowledge base](https://philterd.ai/guides/) [How-to](https://philterd.ai/guides/?kind=how-to)

# Deploying Philter in a HIPAA Environment

How to configure a Philter deployment for HIPAA: encryption of data at rest and in motion across AWS, Azure, and Google Cloud.

For [Philter](https://philterd.ai/support/philter/)

> This is not intended to be a comprehensive or legal HIPAA guide. Please refer to your HIPAA compliance or security officer prior to deploying and using Philter in a PHI environment.

The steps below outline how to configure a [Philter](https://philterd.ai/philter/) 4.0 deployment for encryption of data at rest and in motion.

### Encryption of data at rest

Philter encrypts the sensitive data it stores, such as policies, custom lists, the redaction ledger, and documents waiting to be redacted, with the `PHILTER_ENCRYPTION_KEY` the virtual machine generates on its first boot. Back that key up, and keep it with any backup of Philter’s data: the data cannot be read without it. See Philter’s [encryption settings](https://philterd.github.io/philter/latest/settings.html#encryption) and [what is encrypted at rest](https://philterd.github.io/philter/latest/database.html#what-is-encrypted-at-rest).

Encrypt the virtual machine’s disk as well.

#### Amazon Web Services

Turn on [EBS encryption by default](https://docs.aws.amazon.com/ebs/latest/userguide/encryption-by-default.html) in the region before launching Philter, so its volume is encrypted from the start. For an instance that is already running:

1. Stop the Philter EC2 instance.
2. Make an AMI of the instance.
3. Make an [encrypted copy](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/CopyingAMIs.html#ami-copy-encryption) of the Philter AMI.

EC2 instances launched from the encrypted AMI use an encrypted EBS volume, and their snapshots are encrypted. Refer to the AWS documentation [Creating an Amazon EBS-Backed Linux AMI](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html) for assistance.

#### Microsoft Azure and Google Cloud

Azure managed disks and Google Cloud persistent disks are encrypted at rest by default. To control the keys yourself, use customer-managed keys: [Azure Disk Storage server-side encryption](https://learn.microsoft.com/azure/virtual-machines/disk-encryption) or [Google Cloud customer-managed encryption keys](https://cloud.google.com/compute/docs/disks/customer-managed-encryption).

### Encryption of data in motion

Philter serves its API over HTTPS on port 8080. Launched from the AWS, Azure, or Google Cloud marketplace, it starts with a self-signed certificate. Replace it with a certificate from a trusted certificate authority, as described in [using a signed SSL certificate with Philter](https://philterd.ai/guides/using-a-signed-ssl-certificate-with-philter/). Then verify the connection from a client, without skipping certificate verification:

```
curl https://philter.yourdomain.com:8080/api/health
```

To terminate TLS in front of Philter instead, see [using an Apache reverse proxy with Philter](https://philterd.ai/guides/using-an-apache-reverse-proxy-with-philter/). Keep any unencrypted hop on the same host or on a private network.

### Related links

- [HIPAA Compliance in Amazon Web Services](https://aws.amazon.com/compliance/hipaa-compliance/)
- [Microsoft and the HIPAA and HITECH Act](https://www.microsoft.com/en-us/trustcenter/compliance/hipaa)

## Related reading

- [Healthcare use cases: How Philterd handles HIPAA, PHI, and clinical text.](https://philterd.ai/use-cases/healthcare/)
- [Compliance matrix: Products mapped to the regulations they support.](https://philterd.ai/compliance/)
- [Philter: The self-hosted redaction engine being deployed.](https://philterd.ai/philter/)
