Skip to content
/ RedHat Public
forked from opencontrol/RedHat

OpenControl content for Red Hat technologies

License

Notifications You must be signed in to change notification settings

noslzzp/RedHat

 
 

Repository files navigation

Red Hat

OpenControl content for Red Hat technologies. Work in progress!

Prep your Development Environment

A few packages are needed for successful OpenControl builds on a RHEL7/Fedora 25+ system.

(1) Install Base Packages

sudo yum -y install git vim gcc-c++ make xdg-utils libxml2-devel

(2) Enable EPEL

sudo yum -y localinstall https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

(3) Install NodeJS and NPM packages

sudo yum install nodejs npm --enablerepo=epel

(4) Install Calibre

sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.py | sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"

(5) Install GitBook via NPM

sudo npm install gitbook-cli -g

(6) Install ComplianceMasonry

curl -L https://github.com/opencontrol/compliance-masonry/releases/download/v1.1.2/compliance-masonry_1.1.2_linux_amd64.tar.gz -o compliance-masonry.tar.gz
tar -xf compliance-masonry.tar.gz
sudo cp compliance-masonry_1.1.2_linux_amd64/compliance-masonry /usr/local/bin

(7) Install Golang

sudo subscription-manager repos --enable=rhel-7-server-optional-rpms
sudo yum -y install golang

(7a) Create GOPATH structure You can use something else besides ~/golang-projects, just remember to update the directory in 7b.

mkdir -p ~/golang-projects/{bin,pkg,src}

(7b) Update ~./bash_profile

export GOBIN="$HOME/golang-projects/bin"
export GOPATH="$HOME/golang-projects"
export GOSRC="$HOME/golang-projects/src"

And then source it:

source ~/.bash_profile

(8) Install FedRAMP Templater

go get github.com/opencontrol/fedramp-templater

(9) Install yamllint

sudo yum -y install yamllint

Build the Content

You can run make in the top-level directory to build OpenControl content for all subprojects. Alternatively, you can cd into a project directory and run things one at a time.

For example, to build OpenShift v3 content:

$ cd OpenShift-v3
$ make

Inside the exports directory, you will now see two files:

  • FedRAMP-Filled-v2.1.docx: Completed FedRAMP template with your security controls
  • OpenShift_v3_Compliance.pdf: DocBook style, breakouts controls without formatting

About

OpenControl content for Red Hat technologies

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 36.7%
  • CMake 26.4%
  • Makefile 21.2%
  • Ruby 8.7%
  • Shell 6.5%
  • Puppet 0.5%