Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 1.17 KB

scp-template.md

File metadata and controls

43 lines (35 loc) · 1.17 KB

{% for scp in scps %}

{{scp.Identifier}}

{{scp.Guardrail}}

Rationale

{% for rationale in scp["Rationale"] %}

  • {{rationale}} {%- endfor %}

References

{% for reference in scp["References"] %}

Test Scenarios

||Test Scenario|Steps|Expected Result| |:-------------|:-----|:---------------| {%- for scenario in scp["Test Scenarios"] %} |{{loop.index}}| {{scenario["Test-Scenario"]}} | {% set stepcounter=1 %} {% for step in scenario["Steps"] %} {{loop.index}}. {{step}}
{% set stepcounter=stepcounter+1 %} {% endfor %} | {{scenario["Expected-Result"]}} | {% endfor %}

Example SCP Statement

{
  "Effect": "Deny",
  "Action": [
    {% for action in scp["IAM Actions"] -%}
    {% filter indent(width=4) %}    "{{action}}"{% if not loop.last %},{% endif %} {% endfilter %}
    {% endfor -%}
  ],
  "Resource": [
    {% for resource in scp["Resource"] -%}
    {% filter indent(width=4) %}    "{{resource}}"{% if not loop.last %},{% endif %} {% endfilter %}
    {% endfor -%}
  ]{% if "conditions" in scp %},
  "Condition": {% filter indent(width=4) %}{{scp["conditions"]}}{% endfilter %}{% endif %}
}

{% endfor %}