-
Notifications
You must be signed in to change notification settings - Fork 2
/
pws-fedramp.yml
182 lines (164 loc) · 4.17 KB
/
pws-fedramp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
resources:
- name: nist-800-53
type: git
source:
uri: [email protected]:opencontrol/certifications.git
branch: master
private_key: {{github-private-key}}
- name: cloudfoundry-controls
type: git
source:
uri: [email protected]:opencontrol/components.git
branch: master
private_key: {{github-private-key}}
- name: example-fedramp-system
type: git
source:
uri: [email protected]:opencontrol/example-pipelines.git
branch: master
private_key: {{github-private-key}}
# TODO: Put a Semver in here somewhere
- name: gitbook-task
type: git
source:
uri: [email protected]:opencontrol/concourse-gitbook-task.git
branch: master
private_key: {{github-private-key}}
- name: nessus-task
type: git
source:
uri: [email protected]:opencontrol/concourse-nessus-task.git
branch: master
private_key: {{github-private-key}}
- name: yaml-to-markdown-task
type: git
source:
uri: [email protected]:opencontrol/yaml-to-markdown-task.git
branch: master
private_key: {{github-private-key}}
jobs:
- name: 800-53-unit
plan:
- { get: certifications, resource: nist-800-53, trigger: true }
- task: unit
file: certifications/task-unit-test.yml
- name: cf-control-unit
plan:
- { get: components, resource: cloudfoundry-controls, trigger: true }
- task: unit
file: components/task-unit-test.yml
- name: merge-yamls
plan:
- aggregate:
- get: cloudfoundry-controls
passed: [cf-control-unit]
trigger: true
- get: nist-800-53
passed: [800-53-unit]
trigger: true
- get: example-fedramp-system
trigger: true
- task: jinja-merge
config:
platform: linux
image: docker:///opencontrol/jinja
inputs:
- name: example-fedramp-system
path: .
- name: nist-800-53
path: nist-800-53
- name: cloudfoundry-controls
path: cloudfoundry-controls
run:
path: ./jinjame.py
args:
- ssp
- --template_path=./templates/
- --template_file=datatree.tmpl
- nist-800-53/data/certifications/*.y*ml
- nist-800-53/data/standards/*.y*ml
- cloudfoundry-controls/data/components/**/*.y*ml
- output/data_tree.yml
- task: git-add
config:
platform: linux
image: docker:///opencontrol/spruce
inputs:
- name: jinja-merge
run:
path: git-add-all
args: [jinja-merge/output]
- put: example-fedramp-system
params:
repository: git-add/jinja-merge/output
- name: yaml-to-markdown
plan:
- get: example-fedramp-system
passed: [merge-yamls]
trigger: true
- task: jinja-merge
config:
platform: linux
image: docker:///opencontrol/jinja
inputs:
- name: example-fedramp-system
path: .
run:
path: ./jinjame.py
args:
- markdown
- --template_path='./templates/ssp-gitbook'
- --manifest_file='manifest.tmpl'
- output/data_tree.yml
- output/
- task: git-add
config:
platform: linux
image: docker:///opencontrol/spruce
inputs:
- name: jinja-merge
run:
path: git-add-all
args: [jinja-merge/output]
- put: example-fedramp-system
params:
repository: git-add/jinja-merge/output
- name: gitbook-output-pdf
plan:
- get: example-fedramp-system
passed: [merge-yamls]
trigger: true
- get: gitbook-task
trigger: true
- task: gitbook-pdf
file: gitbook-task/task.yml
config:
params:
book-repo: example-fedramp-system
# - put: pws-system-details
- name: gitbook-output-poams
plan:
- get: example-fedramp-system
passed: [merge-yamls]
trigger: true
- get: gitbook-task
trigger: true
- task: gitbook-pdf
file: gitbook-task/waiver.yml
config:
params:
book-repo: example-fedramp-system
#- put: pws-system-details
- name: output-nessus-config
plan:
- get: example-fedramp-system
passed: [merge-yamls]
trigger: true
- get: nessus-task
trigger: true
- task: nessus-config-generation
file: nessus-task/waiver.yml
config:
params:
book-repo: example-fedramp-system
# - put: pws-system-details