India’s Leading Domain & Web Hosting Provider

  • Chat
    Live Chat 24 X 7 online support
  • Contact NTSPL Hosting support
    Call Now +91 - 8260003333
Google CloudFinancial services, digital lendingBFSI & Fintech

Digital lending app removes 96 service account keys ahead of its NBFC partner's RBI audit

Lending Service Provider partnered with two NBFCs, 220 employees · Western India, Mumbai and Pune · 8 weeks

Amazon Web Services
01

As-is situation

The app disbursed small-ticket personal loans through two partner NBFCs and ran on GKE in asia-south1 with Cloud SQL for PostgreSQL. Its GitLab pipelines, a Jenkins box in the office and three bureau integration scripts authenticated with 96 user-managed service account keys, 31 of them older than a year. Database passwords and bureau API secrets sat in Kubernetes Secrets in base64. An NBFC partner's audit team, preparing for RBI inspection under the digital lending directions, asked for evidence that borrower data stayed on servers in India, that keys were rotated and that privileged access was time-bound. The team had none of it in writing.

  • 96 long-lived service account keys, including 4 with roles/owner on the production project
  • Borrower KYC documents in Cloud Storage encrypted only with Google default keys, with no customer-controlled revocation
  • Engineers held standing Cloud SQL admin access for production incident fixes
  • No proof that resources could not be created outside India
02

Selected Google Cloud services and architecture

NTSPL moved GitLab CI to Workload Identity Federation with attribute conditions on project path and protected branch, and moved GKE pods to Workload Identity Federation for GKE with one Kubernetes service account per microservice. Jenkins was retired in favour of GitLab runners. Secrets moved to Secret Manager with replication pinned to Mumbai and Delhi, fetched through the Secret Manager CSI driver. KYC buckets and Cloud SQL were re-encrypted with CMEK held in Cloud HSM. Production database access now goes through Privileged Access Manager with a 2-hour maximum grant and approver from the risk team, and Organization Policy blocks non-India locations and new key creation.

GitLab CI and GKE pods → Workload Identity Federation → Cloud SQL for PostgreSQL and Cloud Storage (CMEK in Cloud HSM) in asia-south1 → Secret Manager via CSI driver → Privileged Access Manager for break-fix access
Workload Identity FederationSecret ManagerCloud HSMPrivileged Access ManagerOrganization Policy ServiceCloud Audit Logs
03

Implementation approach

Weeks 1-2 · Key usage mappingUsed key usage insights and Policy Analyzer to tie each of the 96 keys to a caller; 38 were unused and disabled immediately.
Weeks 3-5 · Federation and secretsConverted pipelines and workloads to federated identity and moved 140 secrets into Secret Manager.
Weeks 6-7 · Encryption and accessRotated KYC storage and Cloud SQL to Cloud HSM keys and introduced Privileged Access Manager entitlements.
Week 8 · Audit packDelivered evidence mapped to the NBFC's audit checklist, including location policy screenshots and key rotation logs.
04

Measured results

User-managed service account keys
96→2 (bureau SFTP, rotated every 30 days)
Standing production database admins
11 engineers→0; average 3 time-bound grants per week
Secrets stored outside a secret manager
140→0
Partner audit observations on cloud controls
9 open in pre-audit→1 minor, closed in 2 weeks

Operational improvements

  • Production database fixes go through a 2-hour Privileged Access Manager grant approved by risk, leaving an audit trail per incident
  • Secret rotation is triggered by Pub/Sub notifications and a Cloud Run job, removing a quarterly manual rotation weekend
  • New microservices get a Kubernetes service account from a Terraform module instead of a downloaded JSON key
05

Cost considerations

Cloud HSM key versions and operations added most of the roughly INR 30,000 monthly increase; the team accepted this over software keys because the NBFC's policy named hardware-backed keys. Retiring the Jenkins VM offset part of it. No Security Command Center Premium was bought; evidence came from audit logs and Policy Analyzer.

06

Return on investment

ROI indicator

The main return was commercial: the NBFC partner renewed the arrangement and raised the monthly disbursement cap, which the company valued at INR 4 to 6 crore of additional annual loan book. Direct run cost rose by roughly INR 30,000 per month for Cloud HSM and logging, against an estimated INR 12 lakh avoided in external remediation consulting.

Illustrative scenario: a composite based on typical NTSPL engagement patterns for this industry and service. It does not describe a named customer. The figures are indicative, and actual results depend on the workload, its scale and the commercial terms.