Google Cloud Sensitive Data Protection
Premium.
What Emberseal does: sends the message text and each file to Google Cloud Sensitive Data Protection (content:inspect) with a service account. Google reports findings, not decisions: any finding at or above the likelihood you choose blocks (or warns about) the send. Office files, PDFs, CSVs and images are inspected by type; other files are scanned as binary.
1. Enable the API
In the Google Cloud console, pick (or create) a project and enable Sensitive Data Protection (DLP) API (dlp.googleapis.com). Billing must be on for the project. Inspection is charged per GB inspected.
2. Create a service account and key
- IAM & Admin → Service accounts → Create service account (e.g.
emberseal-dlp). - Grant it the role DLP User (
roles/dlp.user). If you use an inspect template, also DLP Inspect Templates Reader (roles/dlp.inspectTemplatesReader). - Keys → Add key → Create new key → JSON. Paste the whole downloaded file into Service account key in Settings → Data loss prevention → Google Cloud Sensitive Data Protection. It's stored encrypted and never shown again. If your organisation blocks key creation (
iam.disableServiceAccountKeyCreation), an admin must allow it for this project.
3. Decide what counts
- Simplest: list the info types to look for (defaults:
CREDIT_CARD_NUMBER,US_SOCIAL_SECURITY_NUMBER,CANADA_SOCIAL_INSURANCE_NUMBER,IBAN_CODE) and a minimum likelihood (Likely is a good balance). Credentials and passwords are deliberately not in the defaults: sending them safely is what Emberseal is for. - Centrally managed: create an inspect template (Security → Sensitive Data Protection → Configuration → Templates) with your info types, custom detectors and likelihood, and paste its full name, e.g.
projects/my-project/locations/global/inspectTemplates/emberseal. A template overrides the info types. - Location:
globalunless your data residency requires a region (e.g.us,europe-west1). An inspect template must live in the same location.
4. Large files
Google inspects at most 0.5 MB per request, so files over roughly 360 KB can't be checked inline. Choose whether those are refused (safest, default) or sent without Google's check (recorded in the audit log). Use another provider (e.g. ICAP) if you need large attachments inspected.
5. Test
Test Google inspects a sample containing the test card number 4111 1111 1111 1111; with the default info types it should report CREDIT_CARD_NUMBER.
Troubleshooting
- 403 PERMISSION_DENIED / API not enabled: enable the API (step 1) in the key's project and check the role (step 2).
- invalid_grant: the key was deleted or the server's clock is wrong.
- Emberseal reaches
oauth2.googleapis.comanddlp.googleapis.comover HTTPS (443).

