-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a034653
commit bf1a7f7
Showing
94 changed files
with
213 additions
and
2,080 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
119 changes: 119 additions & 0 deletions
119
policy/checkov/ACRAnonymousPullDisabled.azapi.mock.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
{ | ||
"mock": { | ||
"basic": { | ||
"resource_changes": [{ | ||
"address": "azurerm_container_registry.example", | ||
"mode": "managed", | ||
"type": "azapi_resource", | ||
"change": { | ||
"actions": [ | ||
"create" | ||
], | ||
"after": { | ||
"type": "Microsoft.ContainerRegistry/registries@2023-11-01-preview", | ||
"body": { | ||
"properties": { | ||
"anonymousPullEnabled": false | ||
}, | ||
"sku": { | ||
"name": "Basic" | ||
} | ||
} | ||
} | ||
} | ||
}] | ||
}, | ||
"standard_without_anonymous_pull_enabled": { | ||
"resource_changes": [{ | ||
"address": "azurerm_container_registry.example", | ||
"mode": "managed", | ||
"type": "azapi_resource", | ||
"change": { | ||
"actions": [ | ||
"create" | ||
], | ||
"after": { | ||
"type": "Microsoft.ContainerRegistry/registries@2023-11-01-preview", | ||
"body": { | ||
"properties": { | ||
"anonymousPullEnabled": false | ||
}, | ||
"sku": { | ||
"name": "Standard" | ||
} | ||
} | ||
} | ||
} | ||
}] | ||
}, | ||
"premium_without_anonymous_pull_enabled_false": { | ||
"resource_changes": [{ | ||
"address": "azurerm_container_registry.example", | ||
"mode": "managed", | ||
"type": "azapi_resource", | ||
"change": { | ||
"actions": [ | ||
"create" | ||
], | ||
"after": { | ||
"type": "Microsoft.ContainerRegistry/registries@2023-11-01-preview", | ||
"body": { | ||
"properties": { | ||
"anonymousPullEnabled": false | ||
}, | ||
"sku": { | ||
"name": "Premium" | ||
} | ||
} | ||
} | ||
} | ||
}] | ||
}, | ||
"invalid_standard": { | ||
"resource_changes": [{ | ||
"address": "azurerm_container_registry.example", | ||
"mode": "managed", | ||
"type": "azapi_resource", | ||
"change": { | ||
"actions": [ | ||
"create" | ||
], | ||
"after": { | ||
"type": "Microsoft.ContainerRegistry/registries@2023-11-01-preview", | ||
"body": { | ||
"properties": { | ||
"anonymousPullEnabled": true | ||
}, | ||
"sku": { | ||
"name": "Standard" | ||
} | ||
} | ||
} | ||
} | ||
}] | ||
}, | ||
"invalid_premium": { | ||
"resource_changes": [{ | ||
"address": "azurerm_container_registry.example", | ||
"mode": "managed", | ||
"type": "azapi_resource", | ||
"change": { | ||
"actions": [ | ||
"create" | ||
], | ||
"after": { | ||
"type": "Microsoft.ContainerRegistry/registries@2023-11-01-preview", | ||
"body": { | ||
"properties": { | ||
"anonymousPullEnabled": true | ||
}, | ||
"sku": { | ||
"name": "Premium" | ||
} | ||
} | ||
} | ||
} | ||
}] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
{ | ||
"mock" : { | ||
"basic": { | ||
"resource_changes": [ | ||
{ | ||
"address": "azurerm_container_registry.example", | ||
"mode": "managed", | ||
"type": "azurerm_container_registry", | ||
"change": { | ||
"actions": [ | ||
"create" | ||
], | ||
"after": { | ||
"sku": "Basic" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"standard_without_anonymous_pull_enabled": { | ||
"resource_changes": [ | ||
{ | ||
"address": "azurerm_container_registry.example", | ||
"mode": "managed", | ||
"type": "azurerm_container_registry", | ||
"change": { | ||
"actions": [ | ||
"create" | ||
], | ||
"after": { | ||
"sku": "Standard" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"premium_without_anonymous_pull_enabled_false": { | ||
"resource_changes": [ | ||
{ | ||
"address": "azurerm_container_registry.example", | ||
"mode": "managed", | ||
"type": "azurerm_container_registry", | ||
"change": { | ||
"actions": [ | ||
"create" | ||
], | ||
"after": { | ||
"anonymous_pull_enabled": false, | ||
"sku": "Premium" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"invalid_standard": { | ||
"resource_changes": [ | ||
{ | ||
"address": "azurerm_container_registry.example", | ||
"mode": "managed", | ||
"type": "azurerm_container_registry", | ||
"change": { | ||
"actions": [ | ||
"create" | ||
], | ||
"after": { | ||
"anonymous_pull_enabled": true, | ||
"sku": "Standard" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"invalid_premium": { | ||
"resource_changes": [ | ||
{ | ||
"address": "azurerm_container_registry.example", | ||
"mode": "managed", | ||
"type": "azurerm_container_registry", | ||
"change": { | ||
"actions": [ | ||
"create" | ||
], | ||
"after": { | ||
"anonymous_pull_enabled": true, | ||
"sku": "Premium" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
27 changes: 0 additions & 27 deletions
27
policy/checkov/azurerm/ACRAnonymousPullDisabled.azapi.mock.json.bak
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
policy/checkov/azurerm/ACRAnonymousPullDisabled.mock.json.bak
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
policy/checkov/azurerm/ACRPublicNetworkAccessDisabled.azapi.mock.json.bak
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
policy/checkov/azurerm/AKSApiServerAuthorizedIpRanges.azapi.mock.json.bak
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
policy/checkov/azurerm/AKSDashboardDisabled.azapi.mock.json.bak
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
policy/checkov/azurerm/AKSEnablesPrivateClusters.azapi.mock.json.bak
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.