Automated GitHub Branch Protection, Access Reviews, Vendor Risk & Disaster Recovery Runbooks
Line-by-line mapping between AICPA Trust Services Criteria and cloud-native engineering controls.
| Criteria | Control Description | Evidence Artifact | Audit Verification Method |
|---|---|---|---|
| CC1.1 | Code of Conduct acknowledged by 100% of staff annually | HR e-signature logs | 100% sample headcount ledger audit |
| CC6.1 | MFA mandatory for 100% of admin access (Okta, AWS, GitHub) | MFA enforcement policies | API extraction: Zero non-MFA accounts |
| CC6.2 | Access revoked within 24 hours of employee departure | SCIM revocation timestamps | Reconciliation of termination date vs token kill |
| CC6.6 | Network isolation: DB tiers restricted to private VPC subnets | Terraform security group rules | Automated scan: Zero public 5432/3306 ingress |
| CC7.1 | Weekly automated SAST & dependency scans; annual pentest | Dependabot alerts & Pentest Report | Verification of SLA remediation times |
| CC8.1 | Enforced peer review on 'main' branch; direct push blocked | GitHub branch protection ruleset | API JSON attestation: enforce_admins = true |
Production Terraform HCL ruleset enforcing strict linear history, signed commits, and independent review.
resource "github_branch_protection" "production_main" {
repository_id = "your-saas-core-api"
pattern = "main"
enforce_admins = true # CRITICAL FOR SOC 2: Admins CANNOT bypass rules
allows_deletions = false
allows_force_pushes = false
required_status_checks {
strict = true
contexts = [
"ci/unit-tests",
"ci/security/trivy-container-scan",
"ci/security/semgrep-sast",
"ci/security/gitleaks-secret-scan"
]
}
required_pull_request_reviews {
dismiss_stale_reviews = true
require_code_owner_reviews = true
required_approving_review_count = 1
}
require_signed_commits = true
}
Standardized managerial sign-off ledger and anomaly detection workflow.
| User Email | System | Role | MFA | Sign-Off Status | Reviewer Action |
|---|---|---|---|---|---|
| sara.m@company.com | AWS Console | AdministratorAccess | TRUE | APPROVED | Retain infrastructure role |
| john.d@contractor.com | GitHub Org | Write | TRUE | REVOKE | Contract expired; revoke within 24 hours |
| david.k@marketing.com | Supabase DB | db_owner | FALSE | REVOKE | Privilege anomaly; revoke immediately |
Active registry of evaluated sub-processors and external SOC 2 attestation monitoring.
| Vendor Name | Data Shared | Risk Tier | SOC 2 Report Expiry | DPA Executed | Audit Status |
|---|---|---|---|---|---|
| Amazon Web Services (AWS) | Production RDS / S3 | Tier 1 (Critical) | 2026-11-30 | YES | COMPLIANT |
| Supabase | User Auth & Database | Tier 1 (Critical) | 2026-10-15 | YES | COMPLIANT |
| Stripe, Inc. | Tokenized Billing Data | Tier 1 (Critical) | 2026-12-31 | YES | COMPLIANT |
| Datadog | System Telemetry | Tier 2 (Operational) | 2026-09-15 | YES | COMPLIANT |
Defined operational recovery metrics: 99.95% Availability, 2-Hour RTO, 15-Minute RPO.
# Quarterly Automated PITR Restoration Verification Drill
aws rds restore-db-instance-to-point-in-time \
--source-db-instance-identifier saas-prod-db \
--target-db-instance-identifier dr-test-restore-$(date +%s) \
--restore-time $(date -u -d "3 days ago 04:00" +%Y-%m-%dT%H:%M:%SZ) \
--db-subnet-group-name dr-testing-subnet
# Benchmark Requirement: Restoration must complete <= 45 mins to guarantee 2-hr RTO.