12 open-source Rego policies encoding SOC 2 Trust Services Criteria. Apache 2.0, Rego v1, ready to load into OPA or Enterprise OPA.
12 Rego policy files encoding SOC 2 Trust Services Criteria, part of the Rego Policy Libraries — a standalone, dependency-free collection of Open Policy Agent policies for published security and compliance standards. No orchestrator, no agent, no vendor runtime.
git clone https://github.com/ynotbhatc/rego_policy_libraries.git
opa eval -d rego_policy_libraries/frameworks/management/soc2 -f pretty 'data'
Or load into a running OPA:
for f in rego_policy_libraries/frameworks/management/soc2/*.rego; do
curl -X PUT --data-binary @"$f" "$OPA/v1/policies/$(basename $f .rego)"
done
Gating a change of state — evaluate a proposed action before it proceeds, and refuse it if it violates the standard. Measuring state — evaluate collected facts about an environment against the standard to produce compliance evidence. The same policy content serves both; only the integration differs.
system_availability.rego soc2.availability.system_availabilitydata_confidentiality.rego soc2.confidentiality.data_confidentialityapplications_services.rego soc2.infrastructure.applications_servicesnetwork_infrastructure.rego soc2.infrastructure.networksecurity_infrastructure.rego soc2.infrastructure.securitystorage_infrastructure.rego soc2.infrastructure.storagesystems_infrastructure.rego soc2.infrastructure.systemsdata_privacy.rego soc2.privacy.data_privacydata_processing.rego soc2.processing_integrity.data_processingaccess_controls.rego soc2.security.access_controlssoc2_assessment.rego soc2soc2_main.rego soc2.mainTest coverage is published in
COVERAGE.md, and uncovered policies are the best
first contribution — each is small, self-contained, and either passes
opa test or does not. See
CONTRIBUTING.md.