Skip to content

Commit

Permalink
commoncontrols: check "takeout_service_status" in 12.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rlxdev committed Dec 11, 2024
1 parent eda7444 commit 7994a57
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import data.utils.PassTestResult
GoodCaseInputApi12 := {
"policies": {
"topOU": {
"takeout_service_status": {"serviceState": "ENABLED"},
"blogger_user_takeout": {"takeoutStatus": "DISABLED"},
"books_user_takeout": {"takeoutStatus": "DISABLED"},
"location_history_user_takeout": {"takeoutStatus": "DISABLED"},
Expand All @@ -16,6 +17,10 @@ GoodCaseInputApi12 := {
"play_console_user_takeout": {"takeoutStatus": "DISABLED"},
"play_user_takeout": {"takeoutStatus": "DISABLED"},
"youtube_user_takeout": {"takeoutStatus": "DISABLED"}
},
"nextOU": {
"takeout_service_status": {"serviceState": "DISABLED"},
"blogger_user_takeout": {"takeoutStatus": "ENABLED"}
}
},
"tenant_info": {
Expand All @@ -26,6 +31,7 @@ GoodCaseInputApi12 := {
BadCaseInputApi12 := {
"policies": {
"topOU": {
"takeout_service_status": {"serviceState": "ENABLED"},
"blogger_user_takeout": {"takeoutStatus": "ENABLED"},
"books_user_takeout": {"takeoutStatus": "ENABLED"},
"location_history_user_takeout": {"takeoutStatus": "ENABLED"},
Expand All @@ -45,6 +51,7 @@ BadCaseInputApi12 := {
BadCaseInputApi12a := {
"policies": {
"topOU": {
"takeout_service_status": {"serviceState": "ENABLED"},
"blogger_user_takeout": {"takeoutStatus": "DISABLED"},
"books_user_takeout": {"takeoutStatus": "DISABLED"},
"location_history_user_takeout": {"takeoutStatus": "DISABLED"},
Expand Down
1 change: 1 addition & 0 deletions scubagoggles/rego/Commoncontrols.rego
Original file line number Diff line number Diff line change
Expand Up @@ -2100,6 +2100,7 @@ NonCompliantOUs12_1 contains {
}
if {
some OU, settings in input.policies
utils.AppEnabled(input.policies, "takeout", OU)
EnabledApps :=[value
| some key, value in Takeout
section := sprintf("%s_user_takeout", [key])
Expand Down

0 comments on commit 7994a57

Please sign in to comment.