background-shape

Security Framework

A robust security framework for generic input validation based on policies to curate data for downstream consumption and decrease development effort.

Worked On

Backend, Policy Framework

Tech Stack

Ruby+Rails

Date

November, 2019

Challenge

To avoid dirty data, memory bloating in services and curate the data to build confidence in analytics pipelines and derived insights

Solution

Implemented a generic framework from scratch in Ruby, used as a middleware that avoids security vulnerabilities and permits only scoped data into the system

case-details

To avoid buffer overflows, Cross-Site Scripting (XSS), Unvalidated Input vulnerability, SQL injection and dirty data, I came up with a generic security framework for all Ruby-based microservices.

It was designed as a generic regex-based multi-level nested input validation system, which gives complete control over the data that is getting ingested into the system. The developers had to specify a regex policy for the incoming requests' params and the framework will act as a middleware scrutinizing the input before forwarding it to the API controller. This completely avoided dirty data from getting ingested which resulted in better analytics and reporting downstream.

This gave huge confidence in the data and amped-up the security aspects and boosted the developer productivity. This was critically acclaimed and immediately adopted by the data ingestion team who are responsible for all types of data creation in the platform.