Security
Security & trust
TenantThrift reads other people’s Azure tenants for a living — so the security model is the product. This page answers the two questions any security engineer asks before connecting: what can it do inside my tenant, and what happens if TenantThrift itself is breached. It’s written by someone who works in cloud security.
Security at a glance
- Read-only, always. The only Azure role TenantThrift asks for and uses is built-in Reader. It cannot change, create, start, stop or delete anything.
- Least privilege. For the Azure connection: one delegated Microsoft Graph
permission (
User.Read) for sign-in, and Reader RBAC on the subscriptions you pick. No application permissions, no directory read, no data-plane access. The optional Microsoft 365 license module is a separate app with its own admin consent and four read-only permissions. - Read-only, revocable identity. The identity that reads your Azure is a non-exportable certificate in Azure Key Vault, and it holds only built-in Reader — it cannot change, start, stop or delete anything, and you can revoke it from your side at any time.
- Your kill switch. Delete the enterprise app or remove the Reader assignment and access ends within minutes, as soon as Azure propagates the change — on your side, no ticket. A token already issued expires within about an hour and only ever held Reader.
- Tenant isolation. Every record is scoped to your organization and enforced with database row-level security.
- EU data storage. Database and web app in Frankfurt, scan compute and report storage in Azure West Europe; an independent Swiss product, handled under the GDPR and Swiss revDSG. Notification emails are delivered by Resend (United States); reports travel as a download link, never as an attachment.
What happens, step by step
The complete path from sign-up to first scan — every point where TenantThrift touches your tenant, and what it touches.
- Create an account. Sign up with a work email — no credit card. This creates your organization in TenantThrift. Nothing touches Azure yet.
- Connect a tenant (admin consent). You click Connect with
Microsoft. A tenant admin approves a one-time admin consent for
our multi-tenant application, and Azure creates a service principal — an
“enterprise app” — in your tenant that represents
TenantThrift. The only permission requested is Microsoft Graph delegated
User.Read, the minimum for sign-in to exist. No application permissions and no directory read for this connection, and no secret is generated by or collected from you. - Grant Reader. You assign the built-in Reader role
to that service principal on the subscriptions — or a management group —
you choose, with one
azcommand or in the portal. This, and only this, is what a scan uses. - Verify. The app confirms access and lists exactly the subscriptions it can now read. You see the scope before anything runs.
- First scan. A background worker requests a short-lived access token for your tenant and reads, in memory: resource metadata (Azure Resource Manager), cost data (Cost Management) and, for VMs, runtime metrics (Azure Monitor). It computes findings and bounded cost aggregates and persists only those. The tenant token lives about an hour in worker memory and is never written down.
- Ongoing. Scans run on your schedule. Nothing about this widens access — it stays Reader, and you can revoke at any time.
What you grant — least privilege
- Microsoft Graph — delegated
User.Read. The minimum required for the consent and sign-in to work. We never read your directory, users or groups. - Azure RBAC — built-in Reader on the subscriptions you pick. This is the entire footprint a scan uses.
- Explicitly excluded: no write, Owner or custom role; no Key Vault access; no data-plane access to storage accounts, databases or key material; no ability to change, create, start, stop or delete anything. Every fix TenantThrift surfaces is guidance — the exact command shown for you to run yourself.
How TenantThrift authenticates to Azure
This is the “what if you get breached” answer — the one most cost tools gloss over.
- TenantThrift is a confidential-client application. To act as itself against Microsoft’s identity platform, it must prove its identity with a credential.
- That credential is a certificate whose private key is generated inside Azure Key Vault and marked non-exportable. The key never leaves Key Vault — not to our servers, not to disk, not to us.
- Every token request is signed by calling Key Vault’s signing operation (RS256). The application only ever handles the resulting signature, never the private key.
- The worker reaches Key Vault through an Azure Managed Identity — itself not a copyable secret — scoped to only the signing and certificate-read operations it needs. The identity that reads your Azure uses this certificate, not a client secret.
- Sign-in (“Continue with Microsoft”) uses a separate OAuth client secret, held only in our authentication provider. Whatever the credential, the ceiling on any access to your tenant is built-in Reader — read-only, and revocable by you in one click.
- Net effect: the most any TenantThrift credential can ever do against your tenant is read it — no write, no ability to change, start, stop or delete anything — and you can revoke that access instantly from your side. We never receive or store your Azure credentials, and tenant access tokens live only in worker memory, about an hour.
- When the certificate is rotated, superseded versions are disabled so only the current one is ever trusted.
Data, encryption & isolation
- What we store: bounded findings and cost aggregates, your connection settings, account and billing identifiers, and one PDF per scan. The complete, table-by-table list is in the docs.
- What we never store: credentials of any kind, metric time series, log content, network data, or a full resource inventory. Tenant tokens exist only in worker memory, for about an hour.
- Encryption: everything is encrypted in transit (TLS) and at rest. On top of that disk-level encryption, the fields that describe your estate are sealed one by one before they ever reach the database, under a key belonging to your organization alone (AES‑256‑GCM; that key is itself wrapped by an RSA key in Azure Key Vault and is never stored beside the data it protects). Sealed this way: resource IDs and resource names, the guidance and cost breakdowns derived from them, tenant display names, report recipients — email addresses and Slack/Teams webhook URLs — and the addresses in the audit log. A copy of the database without Key Vault access is ciphertext for all of it.
- What is deliberately readable: your sign‑in address, because we need it to sign you in; your organization’s name; Azure tenant and subscription GUIDs, which identify a customer but open nothing; and our own vocabulary — finding titles, severities, per‑SKU license counts. We would rather name these than claim more than we do.
- Isolation: every row is scoped to your organization and enforced with database row-level security. Report PDFs live in a private bucket and are served only through short-lived signed URLs after an access check.
Microsoft 365 license module (optional)
Off by default. If you enable it, a tenant admin grants a separate consent to a second
TenantThrift app with four read-only application permissions:
Organization.Read.All (license inventory), User.Read.All (license
assignment), AuditLog.Read.All (last sign-in; needs Entra ID P1) and
Reports.Read.All (usage reports as the fallback). None of them can change
anything. During a scan the worker reads each account's enabled state, assigned licenses and
last sign-in or activity date, aggregates them in memory and stores only counts and costs per
license type. No names, email addresses or user IDs are stored; the app shows admin-center
links instead. Switch the module off in Settings, and revoke the consent by deleting the second
enterprise app in your tenant.
Hosting & data residency
- The database and the web app run in Frankfurt; scan compute and report storage run in Azure West Europe (Netherlands). All stored data inside the EU. Two things leave: the emails we send you (Resend, United States — a report is linked, never attached) and the request logs of our hosting provider's global edge (Vercel, United States). The DPA lists every provider with its legal basis.
- TenantThrift is an independent Swiss product; data is handled under the EU GDPR and Swiss data-protection law (revDSG).
- Payment is handled by Stripe; we store only customer and subscription identifiers, never card details.
- The full sub-processor list is in the DPA.
Jurisdiction and government access
This section is the information required by Article 28 of Regulation (EU) 2023/2854 (Data Act). Who operates the Service and where your data is. TenantThrift is operated by Simon Vedder, a sole proprietorship in Schlieren, Switzerland, and is subject to Swiss law. Your stored data sits in the European Union: database and file storage in Frankfurt, Germany (Supabase, contracting entity Supabase Pte. Ltd., Singapore), the application on Vercel's EU region (Vercel Inc., USA), scan compute, key vault and report PDFs in Microsoft Azure West Europe, Netherlands (Microsoft Ireland Operations Ltd.). The infrastructure is therefore subject to EU law and to German and Dutch law at the place of storage. The companies operating it are also subject to the law of their place of incorporation (United States, Singapore, Ireland), which can include duties to disclose data to authorities there, for example under the US CLOUD Act. Notification e-mails are delivered by Resend (Plus Five Five, Inc., USA), which stores message content in the United States; reports travel as a download link, never as an attachment. The optional Microsoft 365 license module uses the same infrastructure.
What we do about it. Technical: data is held only in EU regions, encrypted in transit and at rest; the fields that describe your estate are additionally encrypted per organization with a key held in Azure Key Vault, so a copy taken from the database without that key is ciphertext; we store resource metadata, findings and cost figures, not the content of your workloads; our access to your tenant is read-only and you can revoke it at any time. Organizational: any request from any authority is handled by the owner personally; we do not answer informal requests, we disclose only on a binding order, only the minimum the order requires, and we keep a record. Contractual: each provider is bound by a data processing agreement, with EU standard contractual clauses or a Data Privacy Framework certification where the provider is outside the EU, under which it must challenge unlawful requests and notify us where the law allows. Legal: for non-personal data held in the EU we transfer or give access on an order of a non-EU authority only where Article 32 of the Data Act allows it, that is under an international agreement such as a mutual legal assistance treaty, or where the order is specific, reasoned, subject to court review and takes the interests protected by EU law into account; we may ask the competent EU body for an opinion first. We inform the affected customer before complying with any such request, unless the law prohibits it and only for as long as that is necessary. Personal data is covered by the Privacy Policy and the DPA.
Your controls
- Revoke anytime. Delete the TenantThrift enterprise app in your tenant, or remove the Reader assignment — access ends immediately.
- Delete a connection. Removes its scans, findings and stored reports right away.
- Delete the organization. Removes every connection, all derived data and your account.
- Team roles. Admin, Editor and Reader keep access inside your own org least-privilege too.
Reporting a security issue
Found something, or want to run a review before you connect? Email support@tenantthrift.com — it reaches me directly. Security is my day job; I’ll take it seriously and respond fast. For the contract and processing terms, see the Terms, Privacy Policy and DPA.