Compliance Frameworks
Purpose of this guide
This guide will walk you through using GitLab's Compliance Frameworks feature to validate that controls are in place in your Workshop Namespace.
What is a Compliance Framework?
Compliance Frameworks serve as a list of compliance requirements that a given project must adhere to, as well as a mechanism for reporting when those requirements are met and applying security policies that handle implementation for each project.
Compliance Frameworks are created and managed at the Workshop Namespace level, allowing for consistency across different teams in how requirements are measured and met.
Creating your first Compliance Framework
Compliance Frameworks must be created at the Namespace level, by a Namespace Owner.
- Visit your Namespace's main page
- In the left sidebar, click
Secure->Compliance center - Click the
New frameworkbutton in the top right corner - Follow the steps in
Import frameworkif you want to start with an existing framework or clickCreate blank framework - Add or edit any of the information in the
Basic informationandRequirementssections as needed - Note the
Nameyou gave this Compliance Framework, as it will be needed to connect projects to this framework
Import framework
Workshop publishes some starter frameworks that you can easily import.
- Visit Workshop's public compliance content project
- Download one or more of the json files from the compliance-frameworks folder
- Back in the
New frameworkpage, clickImport frameworkand upload the json file you downloaded in step 2 - Continue the main instructions
Connecting Compliance Frameworks to Projects
Once you have created a Compliance Framework, you must use your Workshop Config project to register each project with that Framework.
To do this, edit your cg-workshop.yml file to add the compliance_frameworks key to each project that should have the Framework applied to it:
projects:
example-project-path:
name: Example Project Name
# other settings omitted for brevity
compliance_frameworks:
- Compliance Framework Name
Up to 20 compliance frameworks can be applied to a single project, and each one must already have been created before it can be added using the Config project.