# Security & Compliance

> We design and build the technical controls regulated products need, such as MFA, encryption, access control and audit trails, so compliance does not slow the roadmap.

Page: https://www.leafcompute.com/services/security-compliance

## Security is a constraint on the design, not a feature

In healthcare, fintech and other regulated products, security shapes every technical decision from day one. Retrofitting HIPAA or SOC 2 controls into a codebase that was not designed for them is slow and expensive, and sometimes means rewriting core parts of the system. The better route is to design the controls in early, or to fix the specific gaps in what you already have, which is what we do.

## Work we have done

| Where | What | Result |
|---|---|---|
| ALY, telehealth | A defence-in-depth security architecture across web, mobile and API on Azure: encryption in transit and at rest, MFA, role-based access and continuous monitoring | HIPAA-ready from the first commit |
| An AI web-data platform | SOC 2 remediation on the main worker container images | From 4 critical and 6 high findings to zero |
| VAVA Cars, marketplace | A token-based permission system with custom middleware and policy-based authorisation | 60+ permission claims per user role |
| Our own website | A Content-Security-Policy, a Permissions-Policy and the standard security headers, checked with an automated scan | 100/100 on security in our own scanner |

Read the [ALY case study](/case-studies/aly) for the architecture in detail.

## What we build

### Security architecture

- **Threat modelling.** The realistic attack paths for your application. A telehealth platform and a logistics SaaS have different risks.
- **Data classification.** What you hold, how sensitive it is and which rules apply.
- **Access patterns.** Who needs what, and how to enforce it without making development miserable.

### Authentication and authorisation

- Multi-factor authentication with authenticator apps and fallbacks.
- Biometric sign-in on mobile, with secure token storage.
- Role-based access control with fine-grained permissions, so people get exactly the access they need.
- Adaptive checks that step up for a new device, an unusual place or a sensitive action.
- Token expiry, refresh flows and immediate invalidation when credentials change.

### Data protection

- AES-256 encryption at rest with managed key rotation, and TLS 1.2 or higher for data in transit.
- Encrypted backups with integrity checks.
- Secrets in a key vault or KMS, never in code or environment files.

### Infrastructure and delivery

- Separate development, staging and production environments.
- Network controls on inbound and outbound traffic, and restricted access to databases and APIs.
- Private repositories with branch protection and mandatory review.
- Automated vulnerability and secret scanning in the CI/CD pipeline.

### Monitoring and response

- Audit trails for user actions, system events and data access.
- Alerting on suspicious activity.
- Incident response steps that are written down and rehearsed before you need them.

## Compliance frameworks

We design the technical controls each framework asks for, and document them so you can explain them to an auditor or a customer's security team.

- **HIPAA:** healthcare data protection with audit trails and encryption.
- **SOC 2:** security, availability and confidentiality controls.
- **GDPR:** data residency, deletion and consent handling.
- **PCI DSS:** payment card data handling, together with your payment processor.

## How an engagement runs

1. **Audit.** We review your current architecture and configuration with read-only access, and rank the gaps by risk and by what your auditor will check.
2. **Design.** A security architecture document covering access, encryption, monitoring and incident response.
3. **Build.** We implement the controls alongside your team, inside your normal development workflow.
4. **Verify.** A security review and documentation for your compliance team, plus an independent penetration test if your auditor needs one.

## The rules we work by

- We test only what the owner has authorised in writing, within an agreed scope.
- We report findings to you, with how to fix each one, and nowhere else.
- We do not promise certification, because only your auditor can grant it.

## Who this is for

Companies in healthcare, fintech, insurance and enterprise SaaS that need to get compliance right without slowing product work, and teams whose customers have started asking about SOC 2 or HIPAA before they are ready to hire a full security team.

## How it starts

A short call about your product, your customers' requirements and your timeline. You get a written plan, with the cost of each step, before any work begins. Related: [cloud cost optimisation](/services/cost-optimization) and [Kubernetes management](/services/kubernetes-management).

## Common questions

### Can you make us SOC 2 or HIPAA certified?

No one can except your auditors, and HIPAA has no official certification at all. We design and build the technical controls, document them, and produce the evidence your auditor or customer will ask for. "HIPAA ready" means the safeguards are designed in from the start, as they were for ALY.

### Do you do penetration testing?

We review architecture, configuration and code, and we only test systems with the owner's written permission and an agreed scope. Where your auditor or customer needs a formal penetration test report, that usually comes from an independent tester, and we work with them and fix what they find.

### How long does it take to get ready for an audit?

It depends on how far the product is from the framework. We start with an audit of your current architecture, rank the gaps by risk and by what your auditor will check first, and give you a written plan with the cost of each step before we build anything.

### Do we need to rewrite our product to become compliant?

Usually not. Most gaps are in access control, logging, encryption settings, secrets handling and build pipelines, and these can be fixed in place. Retrofitting is harder than designing security in, but it is rarely a rewrite.

### What do you need from us to start a review?

Read-only access to the cloud configuration and the code, an agreed scope, and a signed authorisation. We sign an NDA before you share anything, and we do not test outside the scope you approve.

### Which frameworks do you cover?

HIPAA, SOC 2, GDPR and PCI DSS, designing the technical controls each one asks for. PCI work is done together with your payment processor.

---
Leaf Compute: https://www.leafcompute.com · hello@leafcompute.com
