India’s Leading Domain & Web Hosting Provider
Child-education NGO removes deploy secrets and gates agency code on donor platform
NGO with 1.4 lakh individual donors, a donation portal and a volunteer app · Azure Central India (Pune) · 7 weeks
As-is situation
The NGO's donation portal, donor CRM integrations and 80G receipt generation, which handles donor PAN numbers, were built by a digital agency and a three-person internal team. Code lived in GitHub, deployed by GitHub Actions to App Service and Azure Functions using a service principal secret with Contributor on the whole subscription, stored as a repository secret readable by all agency staff. No code or dependency scanning existed. A volunteer found an outdated payment SDK with a known vulnerability, and a large corporate CSR donor asked for evidence of secure development before renewing a multi-year grant.
- Contributor-level service principal secret shared with all agency developers
- No scanning on 14 repositories including the donation and receipt services
- CSR donor grant renewal conditional on secure development evidence
Approach, tools and architecture
NTSPL replaced the service principal secret with workload identity federation from GitHub Actions to Entra ID, using separate identities for staging and production, each scoped to its own resource group. Production deployments required approval from an internal reviewer through GitHub environments. The NGO enabled GitHub Code Security with CodeQL and Dependabot, and GitHub Secret Protection with push protection, on its repositories. Bicep templates were checked with PSRule for Azure. Defender for Cloud DevOps security connected the GitHub organisation so findings appeared beside cloud posture. Branch protection required review on all agency pull requests.
Implementation approach
Measured results
Operational improvements
- Agency developers can no longer deploy to production without NGO approval
- Push protection blocked three secrets in the first two months
Cost considerations
GitHub Code Security and Secret Protection are licensed per active committer, about ten here, costing roughly INR 40,000 a month; Defender for Cloud's foundational DevOps security features carry no extra charge. NTSPL delivered the engagement for INR 5.5 lakh, scoped for a small team.
Return on investment
The CSR donor renewed a three-year grant worth about INR 3 crore after reviewing the evidence. Removing an agency-wide Contributor secret also closed the most likely path to a breach of donor PAN data, which would carry DPDP obligations and reputational damage.