Skip to content

Commit

Permalink
Merge pull request #53 from GSA-TTS/control-originations
Browse files Browse the repository at this point in the history
Add control origination props to all controls
rahearn authored Jan 14, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 1c19863 + 37db4e3 commit 6939977
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate-ssp-markdown
Original file line number Diff line number Diff line change
@@ -69,4 +69,4 @@ if [ "$leveraged_ssp" != "" ]; then
optional_args+=("-ls" $leveraged_ssp)
fi

trestle author ssp-generate -p "$profile" -o "$markdown" -iap "${optional_args[@]}"
trestle author ssp-generate -p "$profile" -o "$markdown" -iap -y /app/templates/ssp_header_fields.yaml "${optional_args[@]}"
3 changes: 3 additions & 0 deletions scripts/render-ssp
Original file line number Diff line number Diff line change
@@ -75,3 +75,6 @@ echo "Validating ssp before attempting to render"
validate-ssp-json -n "$system_name"

trestle author jinja -i "$template" -ssp "$system_name" -p "$profile" -o "$output" -lut ssp-markdown/ssp_data.yaml -elp gsa -bf "[.]" -vap "$system_name Assigned:" -vnap "Assignment:"

# strip out FedRAMP header text
sed -e 's/### FedRamp Control Origination/### Control Origination/g' -i "$output"
8 changes: 8 additions & 0 deletions templates/ssp_header_fields.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
x-trestle-add-props:
- name: control-origination
value: REPLACE_ME
control-origination-options:
- "Inherited from:"
- "GSA Common Control"
- "Hybrid Control shared with:"
- "System Specific Control"

0 comments on commit 6939977

Please sign in to comment.