1

Watch our latest Product Showcase

Group 370
2

Meet us at WeAreDevelopers World Congress in Berlin

Group 370
3

Spotlight Whitepaper by IDC on Importance of Automated Code Review Technologies

Group 370

All Case Studies  ·  Green Flag

Green Flag

Achieving PCI DSS Compliance with Codacy 

 

green

 Industry: Automative Services

 Location: UK

  Solution:

Icon 1

Codacy Quality

|  Challenge:

Green Flag's main goal was to comply with PCI SSD, particularly with requirement 6.3.2, which states: "review custom code prior to release to production or customers in order to identify any potential coding vulnerability." 

|  Value:

The Codacy API allowed Green Flag to filter dashboards and programmatically retrieve and analyze code quality data, allowing them to see security issues per repository. The security team is now able to easily review those issues without requiring additional licenses. 

|  Employees:  935    ··     Website: https://www.greenflag.com

Lorem ipsum dolor amet, consectetur adipiscing 

Lorem ipsum dolor amet, consectetur adipiscing
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim.
Get Started

Icono-Bocadillo

"Codacy gives us a lot of detail, which is very good for developers and their managers to make sure that they maintain good code quality and are following a coding standard."

"
kader-kawsar

 Kader Kawsar

Heading up software and Data Engineering

Green Flag Customer Story

About Green Flag 

Green Flag (originally National Breakdown Service) helps motorists in the UK when their vehicles have a breakdown or need assistance. Green Flag is part of the Direct Line Group, which provides insurance policies.

The main programming languages used by the Green Flag development team include Python and AngularJS. In addition, they use Bitbucket as their version control system.

Challenge

Payment Card Industry Data Security Standard (PCI DSS) is a set of security standards designed to make sure that companies who accept, process, store, or transmit credit card infrastructure maintain a secure environment.

Green Flag's main goal was to comply with PCI SSD, particularly with requirement 6.3.2, which states: "review custom code prior to release to production or customers in order to identify any potential coding vulnerability." Every time the source code goes into production, it must be reviewed. Green Flag's developers were already using Bandit for Python on their IDE, but they needed a solution that covered static code analysis.

Another requirement for the PCI is that the security team can see if there are any issues or vulnerabilities related to security. This team needs to check the static code, dynamic activity, and what's happening in the infrastructure. That's where custom security dashboards based on Codacy API come to play.

With Codacy

The Codacy API allows you to programmatically retrieve and analyze data from Codacy. It can be used in various scenarios, like adding many people to Codacy, adding multiple repositories, or obtaining code quality metrics for specific files. In the Green Flag's case, they needed a solution that only showed them the security issues per repository. This way, the security team could review those issues without requiring additional licenses. Using the API was the perfect way to filter the dashboards.

"Codacy gives us a lot of detail, which is very good for developers and their managers to make sure that they maintain good code quality and are following a coding standard. But it's too detailed for the security personnel because they're not interested in details other than security." Kader Kawsar, Green Flag software and data engineering lead. 

About three years ago, Green Flag completely overhauled the code and the infrastructure. They had been working with a legacy system for a while, but it had become too slow. Going for a whole new platform and knowing the need to be PCI DSS compliant allowed them to build the new system with code quality in mind from day one.

Green Flag was looking for a solution to work as a second gatekeeper that was centralized and not only dependent on developers. Codacy serves as a second check that is easily integrated into GreenFlag's Bitbucket. Developers can correct the issues presented in their IDE, but there is no guarantee they'll act based on that information or even if they'll keep Bandit on. 

"If developers accidentally turned it [Bandit] off, or they've ignored something in their development environment, Codacy will pick it up and say, 'Look, you forgot to do this." Kawsar said. 

Future

The next step for Green Flag is to expand their usage of Codacy and aim at bolder goals, to unlock the full potential of a tool like Codacy.

We look forward to seeing what Green Flag accomplishes in its mission of helping motorists all over the UK.