Skip to content

Commit

Permalink
bump data localization for russia policy for 15.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchelbaker-cisa committed Oct 29, 2024
1 parent ef2decc commit 716d496
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
18 changes: 12 additions & 6 deletions Testing/RegoTests/commoncontrols/commoncontrols15_test.rego
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,15 @@ test_AccessControl_Correct_V1 if {
#
# GWS.COMMONCONTROLS.15.2v0.3
#--

#--

#
# GWS.COMMONCONTROLS.15.3v0.3
#--
test_Logs_Correct_V1 if {
# Test 1 event
PolicyId := "GWS.COMMONCONTROLS.15.2v0.3"
PolicyId := "GWS.COMMONCONTROLS.15.3v0.3"
Output := tests with input as {
"commoncontrols_logs": {"items": [
{
Expand Down Expand Up @@ -58,7 +64,7 @@ test_Logs_Correct_V1 if {

test_Logs_Correct_V2 if {
# Test multiple events
PolicyId := "GWS.COMMONCONTROLS.15.2v0.3"
PolicyId := "GWS.COMMONCONTROLS.15.3v0.3"
Output := tests with input as {
"commoncontrols_logs": {"items": [
{
Expand Down Expand Up @@ -96,7 +102,7 @@ test_Logs_Correct_V2 if {

test_Logs_Incorrect_V1 if {
# Test 1 event
PolicyId := "GWS.COMMONCONTROLS.15.2v0.3"
PolicyId := "GWS.COMMONCONTROLS.15.3v0.3"
Output := tests with input as {
"commoncontrols_logs": {"items": [
{
Expand Down Expand Up @@ -128,7 +134,7 @@ test_Logs_Incorrect_V1 if {

test_Logs_Incorrect_V2 if {
# Test multiple events
PolicyId := "GWS.COMMONCONTROLS.15.2v0.3"
PolicyId := "GWS.COMMONCONTROLS.15.3v0.3"
Output := tests with input as {
"commoncontrols_logs": {"items": [
{
Expand Down Expand Up @@ -170,7 +176,7 @@ test_Logs_Incorrect_V2 if {

test_Logs_Incorrect_V3 if {
# Test no relevent events
PolicyId := "GWS.COMMONCONTROLS.15.2v0.3"
PolicyId := "GWS.COMMONCONTROLS.15.3v0.3"
Output := tests with input as {
"commoncontrols_logs": {"items": [

Expand All @@ -194,7 +200,7 @@ test_Logs_Incorrect_V3 if {

test_Logs_Incorrect_V4 if {
# Test multiple ous
PolicyId := "GWS.COMMONCONTROLS.15.2v0.3"
PolicyId := "GWS.COMMONCONTROLS.15.3v0.3"
Output := tests with input as {
"commoncontrols_logs": {"items": [
{
Expand Down
8 changes: 6 additions & 2 deletions rego/Commoncontrols.rego
Original file line number Diff line number Diff line change
Expand Up @@ -1791,6 +1791,10 @@ tests contains {
# Baseline GWS.COMMONCONTROLS.15.2v0.3
#--

#
# Baseline GWS.COMMONCONTROLS.15.3v0.3
#--

# NOTE: This setting cannot be controlled at the group level

NonCompliantOUs15_2 contains {
Expand All @@ -1808,7 +1812,7 @@ NonCompliantOUs15_2 contains {
}

tests contains {
"PolicyId": "GWS.COMMONCONTROLS.15.2v0.3",
"PolicyId": "GWS.COMMONCONTROLS.15.3v0.3",
"Criticality": "Shall",
"ReportDetails": utils.NoSuchEventDetails(DefaultSafe, utils.TopLevelOU),
"ActualValue": "No relevant event for the top-level OU in the current logs",
Expand All @@ -1822,7 +1826,7 @@ if {
}

tests contains {
"PolicyId": "GWS.COMMONCONTROLS.15.2v0.3",
"PolicyId": "GWS.COMMONCONTROLS.15.3v0.3",
"Criticality": "Shall",
"ReportDetails": utils.ReportDetails(NonCompliantOUs15_2, []),
"ActualValue": {"NonCompliantOUs": NonCompliantOUs15_2},
Expand Down

0 comments on commit 716d496

Please sign in to comment.