Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This would fix #77
By default the template policies are mapped to TSC 2017 criteria using
satisfies
front matter. Because the logic in comply is to mark controls as satisfied based on this front matter a newly initialized set of templates show all controls as satisfied.This is confusing to new users as it makes tracking the work to implement the compliance program less obvious and there's no mechanism to manually mark controls/policies as satisfied.
This PR adds a new boolean field to the Document and Procedure structs for
Live
to determine if a document/procedure is live and in-place in an organizations control environment. I've also updated theControlsSatisfied()
func to only mark controls as satisfied if the document/procedure has this new field set to true.To help guide users on the workflow I've also updated the default README to include a section about satisfying controls that describes setting
live: true
once the policy is implemented. To make it even more clear I updated the template files that are already mapped to criteria as havinglive: false
added to the front matter to ensure new users have an example of the right front matter.