Published
FedRAMP KSI-SVC-ACM & SCN: Terraform Change Triage in GitHub Actions
Classify Terraform plan changes for owned review, retain unknowns and keep official significant-change notification decisions separate from a CI label.
A Terraform plan can identify a security-relevant change candidate. It cannot, by resource name alone, decide the applicable FedRAMP notification category, recipients or required timing. Build an explainable review queue first, then attach the accountable owner’s decision and the relevant rule set.
The current KSI reference includes KSI-SVC-ACM, automated configuration management and persistent drift review, and KSI-CMT-VTD, validation throughout deployment. It does not list KSI-AFR-SCN. Significant Change Notification is a separate SCN rule set, with its own applicability, categories and dates. Do not present a search keyword as an official KSI.
Separate detection, classification and notification
| Stage | Automated output | Required human or policy decision |
|---|---|---|
| Plan intake | Exact input digest, producer/version and scope | Is this the approved plan for this deployment? |
| Technical triage | Changed managed resources and affected domains | Does the change alter the service, boundary or risk? |
| SCN review | Linked evidence and proposed category | Applicable routine/adaptive/transformative handling and any special conditions |
| Communication | Retained approved notice and delivery reference | Authorized recipients, contents and timing |
| Deployment verification | Runtime checks, drift and recovery result | Whether the intended change and accepted risk match deployed behavior |
For example, the current SCN-ADP-NTF provision describes notification after finishing applicable adaptive changes. It is not a universal instruction that every security-group edit requires advance government approval. Check the applicable program path, adoption/effective dates and any corrective-action conditions before assigning a notification workflow.
Use the saved plan as sensitive input
Generate a plan only in an approved job with scoped credentials and the correct backend/workspace. Then retain its JSON in private storage:
set -eu
terraform show -json approved.tfplan > plan.private.json
python3 plan-review.py plan.private.json > change-review.private.json
terraform show -json can expose sensitive values. Do not publish its complete output as a public PR artifact or run a privileged workflow on untrusted fork code. The Terraform JSON format reference describes the structure; the downloaded helper deliberately supports the declared format major version and fails on missing/unknown structure.
Explain every review candidate
The local plan review helper routes managed-resource mutations into identity, network, key-management, transport or general resource-change review. It does not label a change “FedRAMP approved” and does not send a notice. Unknown resource types remain review candidates rather than being silently treated as safe.
{
"synthetic": true,
"format_version": "1.2",
"resource_changes": [
{
"address": "aws_security_group_rule.example",
"mode": "managed",
"type": "aws_security_group_rule",
"change": {"actions": ["update"], "after_unknown": {}}
}
]
}
This synthetic fragment is sufficient for the helper’s narrow contract, not a complete Terraform plan. Download the fixture, inspect the source code and run it locally without cloud credentials. The report retains the input hash and resource addresses, so keep real results private as architecture metadata.
Add a review gate without inventing an approval
Run the helper after the approved plan-producing step in your existing private workflow. Its optional strict mode exits 3 when a managed mutation needs review and 2 when the input contract is unsupported:
# Step fragment; plan creation and credentials are a separate approved boundary.
- name: Require review for changed managed resources
run: |
python3 tools/plan-review.py plan.private.json --fail-on-review > change-review.private.json
Retain the private review evidence in a separately configured failure-safe artifact step. A blocked candidate then goes through your protected review/deployment process with the same plan digest. The helper does not authenticate an approver or clear a change for deployment; a contributor-editable label or JSON field is not a substitute for the approved workflow.
| Fixture | Expected gate behavior |
|---|---|
| Managed security-group or IAM mutation | Owned review candidate with affected domain |
| Unknown managed resource type | General review candidate, not automatic clearance |
| No-op managed resource | No mutation candidate for that resource |
| Computed/unknown changed values | Uncertainty retained for review |
| Missing change/action structure | Fail closed; no empty clean report |
| Plan changed after review | Approved digest no longer matches; deployment blocked |
Validate the deployed state and retain the decision
A plan describes intended changes. Collect runtime evidence after deployment, including the actual boundary, relevant access/transport tests and the rollback outcome. Keep the approved plan, source revision, review decision, applicable SCN basis, any authorized notice and deployment verification together.
Configuration drift discovered outside CI needs a related intake path; a PR-only process cannot demonstrate persistent review of every runtime change. The NIST control guide links baseline approval, settings gates and runtime monitoring without merging those claims.
The 30-Day Continuous Evidence Sprint — $9,500–$14,500 can implement this collector-to-review-to-handoff boundary. The 20x Kit provides measure ownership and evidence fields; the significant-change decision remains accountable to your program and service owners.
Continue in the fedramp-20x-ksi topic hub.
Frequently asked questions
Is KSI-AFR-SCN a current FedRAMP KSI?
It is not listed in the current consolidated KSI reference checked for this guide. Significant Change Notification has a separate SCN rule set; KSI-SVC-ACM concerns configuration management and drift review.
Can a Terraform resource-type classifier decide that a change is officially significant?
No. It can route candidates for review. Program applicability, risk, category, timing and recipients require the applicable rules and an accountable decision.
Is a successful plan-parser exit sufficient to deploy?
No. Evaluate the reviewRequired result, resolve unknowns and verify that an approved review matches the exact plan digest and deployment boundary.
Continue reading
- AWS Config Cost Spikes from EKS: Daily Recording, Exclusions and Audit Evidence
Model Config recording charges by resource type, then review the evidence trade-off before changing frequency or excluding ephemeral AWS resources.
- CISA BOD 26-04 & FedRAMP KEV Evidence: Reviewed Clocks and AWS Patch Handoffs
Correlate scanner CVEs with KEV, preserve the actual trigger and approved timing basis, and hand off remediation to an approval-gated patch or mitigation workflow.
- FedRAMP 20x KSI-CNA-RNT: AWS Network Traffic Restriction Evidence
A reproducible review of AWS security groups, egress, exceptions and Flow Log coverage for the current KSI-CNA-RNT objective.
Written by
Tymur Chmeruk
Cloud Security & Infrastructure Engineer · Baltimore–Washington Metro · [email protected]