Compliance Masonry
Compliance Masonry is a command-line interface (CLI) that allows users to construct certification documentation using the OpenControl Schema. See Benefits for more explanation, and learn more in our blog post about Compliance Masonry. If you're interested in working on the code, see our developer documentation.
Quick start
-
Install Go 1.6, and ensure your GOPATH
is set. Using gvm is recommended.
-
Install the tool
go get github.com/opencontrol/compliance-masonry
-
Run the CLI
compliance-masonry
Creating an OpenControl project
-
Start a fresh directory
mkdir your-project-name && cd your-project-name
-
Create an opencontrol.yaml files
touch opencontrol.yaml
-
Edit the opencontrol.yaml to contain the following data:
schema_version: "1.0.0" # 1.0.0 is the current opencontrol.yaml schema version
name: Project_Name # Name of the project
metadata:
description: "A description of the system"
maintainers:
- maintainer_email@email.com
components: # A list of paths to components written in the opencontrol format for more information view: https://github.com/opencontrol/schemas
- ./component-1
certifications: # An optional list of certifications for more information visit: https://github.com/opencontrol/schemas
- ./cert-1.yaml
standards: # An optional list of standards for more information visit: https://github.com/opencontrol/schemas
- ./standard-1.yaml
dependencies:
certifications: # An optional list of certifications stored remotely
- url: github.com/18F/LATO
revision: master
systems: # An optional list of repos that contain an opencontrol.yaml stored remotely
- url: github.com/18F/cg-compliance
revision: master
standards: # An optional list of remote repos containing standards info that contain an opencontrol.yaml
- url: github.com/18F/NIST-800-53
revision: master
-
Collect dependencies
compliance-masonry get
The get
command will retrieve dependencies needed to compile documentation.
Creating Gitbook Documentation
-
Update dependencies
compliance-masonry get
-
Run the gitbook command
compliance-masonry docs gitbook LATO
# Or
compliance-masonry docs gitbook FedRAMP-low
The gitbook
command by default will create a folder called exports
that contains the files needed to create a gitbook. Visit the gitbook documentation for more information on creating gitbooks via the cli
Create Docx template
-
Create a Word Document template that uses the following template tag format:
Documentation for Standard: NIST-800-53 and Control: CM-2 will be rendered below
{{ getControl "NIST-800-53@CM-2"}}
Documentation for Standard: NIST-800-53 and Control: AC-2 will be rendered below
{{ getControl "NIST-800-53@AC-2"}}
-
Run the docx command.
compliance-masonry docs docx -t path/to/template.docx
Running the docx
command will by default create a file named export.docx
in the local directory.
Examples
Compliance Masonry examples in the wild:
Compliance Masonry uses the OpenControl v2 Schema.
Benefits
Modern applications are built on existing systems such as S3, EC2, and Cloud Foundry. Documentation for how these underlying systems fulfill NIST controls or PCI SSC Data Security Standards is a prerequisite for receiving authorization to operate (ATO). Unlike most System Security Plan documentation, Compliance Masonry documentation is built using OpenControl Schema, a machine readable format for storing compliance documentation.
Compliance Masonry simplifies the process of certification documentations by providing:
- a data store for certifications (ex FISMA), standards (ex NIST-800-53), and the individual system components (ex AWS-EC2).
- a way for government project to edit existing files and also add new control files for their applications and organizations.
- a pipeline for generating clean and standardized certification documentation.