-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Built-in Policy Release e225bba6 (#1343)
Co-authored-by: Azure Policy Bot <[email protected]>
- Loading branch information
1 parent
809ed61
commit 851ae3a
Showing
59 changed files
with
1,355 additions
and
698 deletions.
There are no files selected for viewing
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
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
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
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
62 changes: 62 additions & 0 deletions
62
...olicies/policyDefinitions/Azure Government/Kubernetes/MutateSeccompProfileContainers.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,62 @@ | ||
{ | ||
"properties": { | ||
"displayName": "[Preview]: Sets Kubernetes cluster containers' secure computing mode profile type to RuntimeDefault if not present.", | ||
"policyType": "BuiltIn", | ||
"mode": "Microsoft.Kubernetes.Data", | ||
"description": "Setting secure computing mode profile type for containers to prevent unauthorized and potentially harmful system calls to the kernel from user space.", | ||
"metadata": { | ||
"version": "1.0.0-preview", | ||
"category": "Kubernetes", | ||
"preview": true | ||
}, | ||
"version": "1.0.0-preview", | ||
"parameters": { | ||
"effect": { | ||
"type": "String", | ||
"metadata": { | ||
"displayName": "Effect", | ||
"description": "'Mutate' modifies a non-compliant resource to be compliant when creating or updating. 'Disabled' turns off the policy.", | ||
"portalReview": true | ||
}, | ||
"allowedValues": [ | ||
"Mutate", | ||
"Disabled" | ||
], | ||
"defaultValue": "Mutate" | ||
}, | ||
"excludedNamespaces": { | ||
"type": "Array", | ||
"metadata": { | ||
"displayName": "Namespace exclusions", | ||
"description": "List of Kubernetes namespaces to exclude from policy evaluation." | ||
}, | ||
"defaultValue": [ | ||
"kube-system", | ||
"gatekeeper-system", | ||
"azure-arc" | ||
] | ||
} | ||
}, | ||
"policyRule": { | ||
"if": { | ||
"field": "type", | ||
"equals": "Microsoft.ContainerService/managedClusters" | ||
}, | ||
"then": { | ||
"effect": "[parameters('effect')]", | ||
"details": { | ||
"mutationInfo": { | ||
"sourceType": "PublicURL", | ||
"url": "https://store.policy.azure.us/kubernetes/mutate-seccomp-profile-containers/v1/mutation.yaml" | ||
}, | ||
"excludedNamespaces": "[parameters('excludedNamespaces')]" | ||
} | ||
} | ||
}, | ||
"versions": [ | ||
"1.0.0-PREVIEW" | ||
] | ||
}, | ||
"id": "/providers/Microsoft.Authorization/policyDefinitions/6f87d474-38a9-46c9-bdfe-d7fa3b9836bf", | ||
"name": "6f87d474-38a9-46c9-bdfe-d7fa3b9836bf" | ||
} |
62 changes: 62 additions & 0 deletions
62
...ies/policyDefinitions/Azure Government/Kubernetes/MutateSeccompProfileInitContainers.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,62 @@ | ||
{ | ||
"properties": { | ||
"displayName": "[Preview]: Sets Kubernetes cluster init containers' secure computing mode profile type to RuntimeDefault if not present.", | ||
"policyType": "BuiltIn", | ||
"mode": "Microsoft.Kubernetes.Data", | ||
"description": "Setting secure computing mode profile type for init containers to prevent unauthorized and potentially harmful system calls to the kernel from user space.", | ||
"metadata": { | ||
"version": "1.0.0-preview", | ||
"category": "Kubernetes", | ||
"preview": true | ||
}, | ||
"version": "1.0.0-preview", | ||
"parameters": { | ||
"effect": { | ||
"type": "String", | ||
"metadata": { | ||
"displayName": "Effect", | ||
"description": "'Mutate' modifies a non-compliant resource to be compliant when creating or updating. 'Disabled' turns off the policy.", | ||
"portalReview": true | ||
}, | ||
"allowedValues": [ | ||
"Mutate", | ||
"Disabled" | ||
], | ||
"defaultValue": "Mutate" | ||
}, | ||
"excludedNamespaces": { | ||
"type": "Array", | ||
"metadata": { | ||
"displayName": "Namespace exclusions", | ||
"description": "List of Kubernetes namespaces to exclude from policy evaluation." | ||
}, | ||
"defaultValue": [ | ||
"kube-system", | ||
"gatekeeper-system", | ||
"azure-arc" | ||
] | ||
} | ||
}, | ||
"policyRule": { | ||
"if": { | ||
"field": "type", | ||
"equals": "Microsoft.ContainerService/managedClusters" | ||
}, | ||
"then": { | ||
"effect": "[parameters('effect')]", | ||
"details": { | ||
"mutationInfo": { | ||
"sourceType": "PublicURL", | ||
"url": "https://store.policy.azure.us/kubernetes/mutate-seccomp-profile-initcontainers/v1/mutation.yaml" | ||
}, | ||
"excludedNamespaces": "[parameters('excludedNamespaces')]" | ||
} | ||
} | ||
}, | ||
"versions": [ | ||
"1.0.0-PREVIEW" | ||
] | ||
}, | ||
"id": "/providers/Microsoft.Authorization/policyDefinitions/6bcd4321-fb89-4e3e-bf6c-999c13d47f43", | ||
"name": "6bcd4321-fb89-4e3e-bf6c-999c13d47f43" | ||
} |
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
Oops, something went wrong.