Fintech teams are caught between two pressures. Product wants to ship daily; regulators, banking partners and auditors want proof that every change was reviewed, tested, authorised and reversible. Teams that treat these as opposites end up with either reckless releases or quarterly deployments wrapped in paperwork. The better path is to build controls into the delivery pipeline so that compliance evidence is a by-product of normal work.
This article walks through the practical building blocks: environment separation, audit logging, change management, secrets, and the handling of card and identity data. It is not legal advice, and the specific obligations depend on your licences, jurisdictions and partners, so treat the framework mentions as orientation and verify requirements with your compliance function.
The regulatory landscape in brief
Which rules apply depends on what you do. A few frameworks come up repeatedly:
- PCI DSS applies to any entity that stores, processes or transmits cardholder data. Version 4.0 became mandatory in full in March 2025 and emphasises continuous controls, targeted risk analysis and stronger authentication.
- SOC 2 is an attestation, common with B2B fintechs, covering security, availability, confidentiality and, optionally, processing integrity and privacy.
- ISO 27001 provides an information security management system certification.
- KYC and AML obligations require identity verification, record retention and monitoring, defined by national laws and, in the EU, by directives and regulations on anti-money-laundering.
- GDPR and local privacy laws govern personal data, including lawful basis, minimisation, retention and data subject rights.
- DORA (the EU Digital Operational Resilience Act), applying since January 2025, imposes ICT risk management, incident reporting and third-party oversight on many EU financial entities.
The frameworks overlap heavily on the underlying engineering: least privilege, change control, logging, encryption, vulnerability management and incident response. Build those well once and map them to each framework, rather than running a separate project per standard.
Environment design
Separate environments, separate accounts
A typical setup has development, staging (or pre-production) and production. For regulated workloads, separation should be real:
- Separate cloud accounts or projects per environment, with distinct IAM boundaries. A mistake in development cannot touch production resources.
- Separate networks and no direct connectivity from lower environments to production data stores.
- No production data in lower environments. Use synthetic or properly anonymised data. If production-like data is unavoidable for debugging, handle it as production: same controls, same access list, short retention.
- Parity by code. Define infrastructure as code (Terraform, Pulumi, CloudFormation) and promote the same artefact through environments, changing only configuration. This is both a reliability win and strong audit evidence.
Isolate the sensitive zone
Minimising scope is the cheapest compliance measure. In PCI terms, the cardholder data environment (CDE) should be as small as possible. Common techniques include:
- Using a payment provider’s hosted fields or redirect so card numbers never touch your servers, which reduces your assessment burden substantially.
- Tokenisation: store the provider’s token, not the PAN.
- Network segmentation between the CDE and everything else, tested regularly.
- A dedicated service for sensitive operations, with a narrow API, rather than letting every microservice read the sensitive tables.
The most efficient way to protect sensitive data is to arrange never to hold it.

Audit logging that survives an audit
Audit logs answer: who did what, to which resource, when, from where and with what result. Application debug logs are not audit logs.
What to capture
| Event category | Examples | Why it matters |
|---|---|---|
| Authentication | Logins, failures, MFA challenges, session creation | Detect account takeover; demonstrate access control |
| Authorisation changes | Role grants, permission changes, API key creation | Show separation of duties |
| Data access | Reads of KYC documents, exports, bulk queries | Detect misuse; support privacy requests |
| Financial actions | Payouts, refunds, limit changes, ledger adjustments | Reconstruct money movement |
| Administrative actions | Config changes, deployments, secrets rotation | Link changes to approvals |
| System events | Service starts, failures, policy violations | Support incident investigation |
How to store it
- Append-only and tamper-evident. Ship logs to a separate account with write-only permissions for producers. Object storage with retention locks (WORM) or a managed log service provide immutability.
- Time synchronisation. Use NTP everywhere, and UTC timestamps. Reconstructing a timeline with drifting clocks is miserable.
- Structured format. JSON with consistent fields: actor, action, resource, outcome, request ID, source IP, timestamp.
- Never log secrets or full sensitive values. PCI DSS forbids storing sensitive authentication data; mask PANs to the permitted digits and avoid logging document images or full national IDs.
- Retention aligned to obligations. PCI DSS expects at least twelve months of audit log history with three months immediately available. AML rules commonly require several years for transaction and identity records, varying by jurisdiction.
- Alerting. Logs nobody reads have limited value. Alert on high-risk events such as privileged logins outside working hours, mass exports and failed deployment approvals.
Change management without the committee
Traditional change advisory boards do not scale to daily deployments. The modern alternative is to automate the evidence that a change board would have asked for.
Pull requests as the control
- Branch protection requiring at least one reviewer who is not the author; two for sensitive services.
- Mandatory status checks: unit tests, static analysis, dependency scanning, secret scanning, infrastructure policy checks (OPA, Checkov or similar).
- Linked ticket or change record for traceability, enforced by a bot.
- CODEOWNERS files so that changes to payment or ledger code route to the right reviewers.
Pipelines with approvals where they matter
Classify changes by risk. A copy change or dashboard tweak is a standard change that flows automatically after review and tests. A database migration on the ledger, a new third-party integration or a change to authentication logic is a high-risk change that needs an explicit approval step from a designated approver, recorded in the pipeline. This satisfies separation of duties without slowing the whole organisation.
Safe deployment practices
- Progressive delivery. Canary or blue-green deployments with automatic rollback on error-rate thresholds.
- Feature flags to decouple deployment from release, with flag changes logged like code changes.
- Backwards-compatible migrations using the expand and contract pattern, so rollback is always possible.
- Immutable artefacts and signed builds. Build once, sign, store the provenance, and deploy exactly that artefact. Supply chain frameworks such as SLSA give a useful maturity ladder.
- Emergency changes. Define a break-glass process: time-boxed elevated access, mandatory post-incident review, automatic alert to the security team. Auditors accept exceptions that are rare, justified and documented.
Keep the evidence together
For each release, you should be able to produce, within minutes: the commits, reviews, test results, approver, deployment time and environment. Many teams generate this automatically into a release record. When an auditor samples 25 changes from last quarter, this saves days of searching.
Secrets management
Hard-coded credentials and long-lived keys are among the most common findings in security reviews.
- Use a dedicated secrets manager such as HashiCorp Vault, AWS Secrets Manager, Google Secret Manager or Azure Key Vault. Never store secrets in repositories, container images or CI variables that are widely readable.
- Prefer short-lived credentials. Workload identity federation (OIDC between CI and cloud) removes static cloud keys from pipelines. Dynamic database credentials with a time-to-live limit exposure.
- Rotate on a schedule and on events, such as staff departures or suspected exposure. Automate rotation so it does not depend on someone remembering.
- Separate duties for key management. Encryption keys in a KMS or HSM, with key administrators distinct from key users. For cardholder data, PCI DSS has detailed requirements on key custody and rotation.
- Scan continuously. Secret scanning on commits and pre-receive hooks catches mistakes before they spread. Have a runbook for the case where a key leaks: revoke first, investigate after.
- Limit human access. Engineers should rarely need to see production secrets. Access to production should be through audited, time-bound sessions.
Handling PCI and KYC data
Card data
If you can avoid touching card data, do. Use a PCI-compliant payment service provider with hosted payment pages or client-side tokenisation. If you must handle PANs, expect a full assessment of the CDE, encryption at rest and in transit (strong TLS), strict key management, quarterly vulnerability scans by an approved scanning vendor, penetration testing and formal policies. Never store the card verification code after authorisation.
Identity and KYC data
KYC data tends to be more sensitive than people assume: passport scans, selfies, proof of address, source-of-funds documents. Handle it with these practices:
- Store documents in a dedicated, encrypted store separate from the main application database, with access via a service that enforces role checks and logs every view.
- Use a verification provider where appropriate, and store only the outcome, reference ID and the minimum evidence you must retain by law.
- Apply retention rules. Keep records for the legally required period and delete afterwards. Retention schedules should be implemented as automated jobs, not intentions.
- Pseudonymise for analytics. Data teams rarely need names or document numbers. Provide hashed or tokenised identifiers and keep the mapping in a restricted system.
- Control cross-border transfers. Know where data is stored and processed, and document the legal mechanism for any transfer outside your home region.
Operating model and culture
Tools alone will not deliver this. A few organisational habits make the difference:
- Compliance as a partner in design. Involve security and compliance staff in planning, not only at the end. They can often propose simpler controls early.
- Policy as code. Encode rules such as “no public storage buckets” or “databases must be encrypted” into automated checks, so violations fail the pipeline.
- Blameless incident reviews with tracked actions, and regulatory notification procedures rehearsed in advance. DORA and many national regimes impose strict reporting timelines.
- Regular game days to test restore from backup, failover and credential revocation. Untested recovery plans are guesses.
- Metrics. Track the DORA delivery metrics alongside control metrics such as percentage of changes with peer review, mean time to patch critical vulnerabilities and number of standing privileged accounts.
Key takeaways
- Treat compliance as engineering: automate the evidence so that every change leaves a reviewable trail.
- Keep environments in separate accounts, never copy production data into lower environments, and shrink the sensitive zone through tokenisation and hosted payment fields.
- Maintain structured, immutable audit logs of authentication, access, financial and administrative events, retained for the periods your obligations require.
- Replace change boards with protected branches, risk-based pipeline approvals, progressive delivery and a break-glass process.
- Use a secrets manager, short-lived credentials and automated rotation; handle KYC documents in a dedicated, access-logged store with enforced retention.
- Verify the exact obligations for your licence and jurisdiction with compliance advisers before treating any framework summary as complete.

