12 open-source Rego policies encoding Data residency, encryption and sovereignty controls. Apache 2.0, Rego v1, ready to load into OPA or Enterprise OPA.
12 Rego policy files encoding Data residency, encryption and sovereignty controls, 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/sovereignty/digital_sovereignty -f pretty 'data'
Or load into a running OPA:
for f in rego_policy_libraries/frameworks/sovereignty/digital_sovereignty/*.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.
ai_sovereignty.rego digital_sovereignty.ai_sovereigntybreach_notification_sovereignty.rego digital_sovereignty.breach_notification_sovereigntycryptographic_sovereignty.rego digital_sovereignty.cryptographic_sovereigntycyber_resilience_sovereignty.rego digital_sovereignty.cyber_resilience_sovereigntydata_residency.rego digital_sovereignty.data_residencydigital_sovereignty_main.rego digital_sovereignty.maindora_sovereignty.rego digital_sovereignty.dora_sovereigntygeopolitical_sovereignty.rego digital_sovereignty.geopolitical_sovereigntyinfrastructure_sovereignty.rego digital_sovereignty.infrastructure_sovereigntynetwork_sovereignty.rego digital_sovereignty.network_sovereigntyoperational_sovereignty.rego digital_sovereignty.operational_sovereigntysoftware_sovereignty.rego digital_sovereignty.software_sovereigntyTest 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.