Skip to content

Commit

Permalink
Bump preview rules to GA #2448 #2455 (#2456)
Browse files Browse the repository at this point in the history
  • Loading branch information
BernieWhite authored Oct 1, 2023
1 parent 1adc0ab commit 8ae48f5
Show file tree
Hide file tree
Showing 38 changed files with 431 additions and 281 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"Concat",
"CONTAINERAPPS",
"Contoso",
"Dapr",
"deallocated",
"DEFAULTVALUE",
"DEPLOYIFNOTEXISTS",
Expand Down
9 changes: 8 additions & 1 deletion data/policy-ignore.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,12 @@
// Azure.KeyVault.SoftDelete
"/providers/Microsoft.Authorization/policyDefinitions/0b60c0b2-2dc2-4e1c-b5c9-abbed971de53",
// Checking for Network Watcher in a resource group is not enforcable by code.
"/providers/Microsoft.Authorization/policyDefinitions/b6e2945c-0b7b-40f5-9233-7a5323b5cdc6"
"/providers/Microsoft.Authorization/policyDefinitions/b6e2945c-0b7b-40f5-9233-7a5323b5cdc6",
// Azure.AKS.LocalAccounts
"/providers/Microsoft.Authorization/policyDefinitions/993c2fcd-2b29-49d2-9eb0-df2c3a730c32",
// Azure.Cognitive.DisableLocalAuth
"/providers/Microsoft.Authorization/policyDefinitions/71ef260a-8f18-47b7-abcb-62d0673d94dc",
"/providers/Microsoft.Authorization/policyDefinitions/14de9e63-1b31-492e-a5a3-c3f7fd57f555",
// Azure.Cognitive.ManagedIdentity
"/providers/Microsoft.Authorization/policyDefinitions/fe3fd216-4f83-4fc1-8984-2bbec80a3418"
]
5 changes: 5 additions & 0 deletions docs/CHANGELOG-v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ What's changed since pre-release v1.30.0-B0080:
- Updated `Azure.AKS.Version` to use latest stable version `1.26.6` by @BernieWhite.
[#2404](https://github.com/Azure/PSRule.Rules.Azure/issues/2404)
- Use `AZURE_AKS_CLUSTER_MINIMUM_VERSION` to configure the minimum version of the cluster.
- Promoted `Azure.AKS.LocalAccounts` to GA rule set by @BernieWhite.
[#2448](https://github.com/Azure/PSRule.Rules.Azure/issues/2448)
- Container App:
- Promoted `Azure.ContainerApp.DisableAffinity` to GA rule set by @BernieWhite.
[#2455](https://github.com/Azure/PSRule.Rules.Azure/issues/2455)
- General improvements:
- Add source link for rule in docs by @BernieWhite.
[#2115](https://github.com/Azure/PSRule.Rules.Azure/issues/2115)
Expand Down
4 changes: 3 additions & 1 deletion docs/en/baselines/Azure.Default.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Default baseline for Azure rules.

## Rules

The following rules are included within `Azure.Default`. This baseline includes a total of 385 rules.
The following rules are included within `Azure.Default`. This baseline includes a total of 387 rules.

Name | Synopsis | Severity
---- | -------- | --------
Expand Down Expand Up @@ -34,6 +34,7 @@ Name | Synopsis | Severity
[Azure.AKS.DNSPrefix](../rules/Azure.AKS.DNSPrefix.md) | Azure Kubernetes Service (AKS) cluster DNS prefix should meet naming requirements. | Awareness
[Azure.AKS.EphemeralOSDisk](../rules/Azure.AKS.EphemeralOSDisk.md) | AKS clusters should use ephemeral OS disks which can provide lower read/write latency, along with faster node scaling and cluster upgrades. | Important
[Azure.AKS.HttpAppRouting](../rules/Azure.AKS.HttpAppRouting.md) | Disable HTTP application routing add-on in AKS clusters. | Important
[Azure.AKS.LocalAccounts](../rules/Azure.AKS.LocalAccounts.md) | Enforce named user accounts with RBAC assigned permissions. | Important
[Azure.AKS.ManagedAAD](../rules/Azure.AKS.ManagedAAD.md) | Use AKS-managed Azure AD to simplify authorization and improve security. | Important
[Azure.AKS.ManagedIdentity](../rules/Azure.AKS.ManagedIdentity.md) | Configure AKS clusters to use managed identities for managing cluster infrastructure. | Important
[Azure.AKS.MinNodeCount](../rules/Azure.AKS.MinNodeCount.md) | AKS clusters should have minimum number of nodes for failover and updates. | Important
Expand Down Expand Up @@ -124,6 +125,7 @@ Name | Synopsis | Severity
[Azure.Cognitive.PrivateEndpoints](../rules/Azure.Cognitive.PrivateEndpoints.md) | Use Private Endpoints to access Cognitive Services accounts. | Important
[Azure.Cognitive.PublicAccess](../rules/Azure.Cognitive.PublicAccess.md) | Restrict access of Cognitive Services accounts to authorized virtual networks. | Important
[Azure.ContainerApp.APIVersion](../rules/Azure.ContainerApp.APIVersion.md) | Migrate from retired API version to a supported version. | Important
[Azure.ContainerApp.DisableAffinity](../rules/Azure.ContainerApp.DisableAffinity.md) | Disable session affinity to prevent unbalanced distribution. | Important
[Azure.ContainerApp.ExternalIngress](../rules/Azure.ContainerApp.ExternalIngress.md) | Limit inbound communication for Container Apps is limited to callers within the Container Apps Environment. | Important
[Azure.ContainerApp.Insecure](../rules/Azure.ContainerApp.Insecure.md) | Ensure insecure inbound traffic is not permitted to the container app. | Important
[Azure.ContainerApp.ManagedIdentity](../rules/Azure.ContainerApp.ManagedIdentity.md) | Ensure managed identity is used for authentication. | Important
Expand Down
4 changes: 3 additions & 1 deletion docs/en/baselines/Azure.GA_2023_09.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Include rules released September 2023 or prior for Azure GA features.

## Rules

The following rules are included within `Azure.GA_2023_09`. This baseline includes a total of 385 rules.
The following rules are included within `Azure.GA_2023_09`. This baseline includes a total of 387 rules.

Name | Synopsis | Severity
---- | -------- | --------
Expand Down Expand Up @@ -34,6 +34,7 @@ Name | Synopsis | Severity
[Azure.AKS.DNSPrefix](../rules/Azure.AKS.DNSPrefix.md) | Azure Kubernetes Service (AKS) cluster DNS prefix should meet naming requirements. | Awareness
[Azure.AKS.EphemeralOSDisk](../rules/Azure.AKS.EphemeralOSDisk.md) | AKS clusters should use ephemeral OS disks which can provide lower read/write latency, along with faster node scaling and cluster upgrades. | Important
[Azure.AKS.HttpAppRouting](../rules/Azure.AKS.HttpAppRouting.md) | Disable HTTP application routing add-on in AKS clusters. | Important
[Azure.AKS.LocalAccounts](../rules/Azure.AKS.LocalAccounts.md) | Enforce named user accounts with RBAC assigned permissions. | Important
[Azure.AKS.ManagedAAD](../rules/Azure.AKS.ManagedAAD.md) | Use AKS-managed Azure AD to simplify authorization and improve security. | Important
[Azure.AKS.ManagedIdentity](../rules/Azure.AKS.ManagedIdentity.md) | Configure AKS clusters to use managed identities for managing cluster infrastructure. | Important
[Azure.AKS.MinNodeCount](../rules/Azure.AKS.MinNodeCount.md) | AKS clusters should have minimum number of nodes for failover and updates. | Important
Expand Down Expand Up @@ -124,6 +125,7 @@ Name | Synopsis | Severity
[Azure.Cognitive.PrivateEndpoints](../rules/Azure.Cognitive.PrivateEndpoints.md) | Use Private Endpoints to access Cognitive Services accounts. | Important
[Azure.Cognitive.PublicAccess](../rules/Azure.Cognitive.PublicAccess.md) | Restrict access of Cognitive Services accounts to authorized virtual networks. | Important
[Azure.ContainerApp.APIVersion](../rules/Azure.ContainerApp.APIVersion.md) | Migrate from retired API version to a supported version. | Important
[Azure.ContainerApp.DisableAffinity](../rules/Azure.ContainerApp.DisableAffinity.md) | Disable session affinity to prevent unbalanced distribution. | Important
[Azure.ContainerApp.ExternalIngress](../rules/Azure.ContainerApp.ExternalIngress.md) | Limit inbound communication for Container Apps is limited to callers within the Container Apps Environment. | Important
[Azure.ContainerApp.Insecure](../rules/Azure.ContainerApp.Insecure.md) | Ensure insecure inbound traffic is not permitted to the container app. | Important
[Azure.ContainerApp.ManagedIdentity](../rules/Azure.ContainerApp.ManagedIdentity.md) | Ensure managed identity is used for authentication. | Important
Expand Down
3 changes: 2 additions & 1 deletion docs/en/baselines/Azure.MCSB.v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Microsoft Cloud Security Benchmark v1.

## Controls

The following rules are included within `Azure.MCSB.v1`. This baseline includes a total of 118 rules.
The following rules are included within `Azure.MCSB.v1`. This baseline includes a total of 119 rules.

Name | Synopsis | Severity
---- | -------- | --------
Expand All @@ -23,6 +23,7 @@ Name | Synopsis | Severity
[Azure.AKS.AzureRBAC](../rules/Azure.AKS.AzureRBAC.md) | Use Azure RBAC for Kubernetes Authorization with AKS clusters. | Important
[Azure.AKS.ContainerInsights](../rules/Azure.AKS.ContainerInsights.md) | Enable Container insights to monitor AKS cluster workloads. | Important
[Azure.AKS.HttpAppRouting](../rules/Azure.AKS.HttpAppRouting.md) | Disable HTTP application routing add-on in AKS clusters. | Important
[Azure.AKS.LocalAccounts](../rules/Azure.AKS.LocalAccounts.md) | Enforce named user accounts with RBAC assigned permissions. | Important
[Azure.AKS.ManagedAAD](../rules/Azure.AKS.ManagedAAD.md) | Use AKS-managed Azure AD to simplify authorization and improve security. | Important
[Azure.AKS.ManagedIdentity](../rules/Azure.AKS.ManagedIdentity.md) | Configure AKS clusters to use managed identities for managing cluster infrastructure. | Important
[Azure.AKS.NetworkPolicy](../rules/Azure.AKS.NetworkPolicy.md) | Deploy AKS clusters with Network Policies enabled. | Important
Expand Down
3 changes: 1 addition & 2 deletions docs/en/baselines/Azure.Preview_2021_09.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ Include rules released September 2021 or prior for Azure preview only features.

## Rules

The following rules are included within `Azure.Preview_2021_09`. This baseline includes a total of 3 rules.
The following rules are included within `Azure.Preview_2021_09`. This baseline includes a total of 2 rules.

Name | Synopsis | Severity
---- | -------- | --------
[Azure.ACR.Quarantine](../rules/Azure.ACR.Quarantine.md) | Enable container image quarantine, scan, and mark images as verified. | Important
[Azure.ACR.Retention](../rules/Azure.ACR.Retention.md) | Use a retention policy to cleanup untagged manifests. | Important
[Azure.AKS.LocalAccounts](../rules/Azure.AKS.LocalAccounts.md) | Enforce named user accounts with RBAC assigned permissions. | Important
3 changes: 1 addition & 2 deletions docs/en/baselines/Azure.Preview_2021_12.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ Include rules released December 2021 or prior for Azure preview only features.

## Rules

The following rules are included within `Azure.Preview_2021_12`. This baseline includes a total of 3 rules.
The following rules are included within `Azure.Preview_2021_12`. This baseline includes a total of 2 rules.

Name | Synopsis | Severity
---- | -------- | --------
[Azure.ACR.Quarantine](../rules/Azure.ACR.Quarantine.md) | Enable container image quarantine, scan, and mark images as verified. | Important
[Azure.ACR.Retention](../rules/Azure.ACR.Retention.md) | Use a retention policy to cleanup untagged manifests. | Important
[Azure.AKS.LocalAccounts](../rules/Azure.AKS.LocalAccounts.md) | Enforce named user accounts with RBAC assigned permissions. | Important
3 changes: 1 addition & 2 deletions docs/en/baselines/Azure.Preview_2022_03.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ Include rules released March 2022 or prior for Azure preview only features.

## Rules

The following rules are included within `Azure.Preview_2022_03`. This baseline includes a total of 3 rules.
The following rules are included within `Azure.Preview_2022_03`. This baseline includes a total of 2 rules.

Name | Synopsis | Severity
---- | -------- | --------
[Azure.ACR.Quarantine](../rules/Azure.ACR.Quarantine.md) | Enable container image quarantine, scan, and mark images as verified. | Important
[Azure.ACR.Retention](../rules/Azure.ACR.Retention.md) | Use a retention policy to cleanup untagged manifests. | Important
[Azure.AKS.LocalAccounts](../rules/Azure.AKS.LocalAccounts.md) | Enforce named user accounts with RBAC assigned permissions. | Important
3 changes: 1 addition & 2 deletions docs/en/baselines/Azure.Preview_2022_06.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ Include rules released June 2022 or prior for Azure preview only features.

## Rules

The following rules are included within `Azure.Preview_2022_06`. This baseline includes a total of 3 rules.
The following rules are included within `Azure.Preview_2022_06`. This baseline includes a total of 2 rules.

Name | Synopsis | Severity
---- | -------- | --------
[Azure.ACR.Quarantine](../rules/Azure.ACR.Quarantine.md) | Enable container image quarantine, scan, and mark images as verified. | Important
[Azure.ACR.Retention](../rules/Azure.ACR.Retention.md) | Use a retention policy to cleanup untagged manifests. | Important
[Azure.AKS.LocalAccounts](../rules/Azure.AKS.LocalAccounts.md) | Enforce named user accounts with RBAC assigned permissions. | Important
3 changes: 1 addition & 2 deletions docs/en/baselines/Azure.Preview_2022_09.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ Include rules released September 2022 or prior for Azure preview only features.

## Rules

The following rules are included within `Azure.Preview_2022_09`. This baseline includes a total of 5 rules.
The following rules are included within `Azure.Preview_2022_09`. This baseline includes a total of 4 rules.

Name | Synopsis | Severity
---- | -------- | --------
[Azure.ACR.Quarantine](../rules/Azure.ACR.Quarantine.md) | Enable container image quarantine, scan, and mark images as verified. | Important
[Azure.ACR.Retention](../rules/Azure.ACR.Retention.md) | Use a retention policy to cleanup untagged manifests. | Important
[Azure.ACR.SoftDelete](../rules/Azure.ACR.SoftDelete.md) | Azure Container Registries should have soft delete policy enabled. | Important
[Azure.AKS.LocalAccounts](../rules/Azure.AKS.LocalAccounts.md) | Enforce named user accounts with RBAC assigned permissions. | Important
[Azure.AppConfig.GeoReplica](../rules/Azure.AppConfig.GeoReplica.md) | Consider replication for app configuration store to ensure resiliency to region outages. | Important
3 changes: 1 addition & 2 deletions docs/en/baselines/Azure.Preview_2022_12.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ Include rules released December 2022 or prior for Azure preview only features.

## Rules

The following rules are included within `Azure.Preview_2022_12`. This baseline includes a total of 5 rules.
The following rules are included within `Azure.Preview_2022_12`. This baseline includes a total of 4 rules.

Name | Synopsis | Severity
---- | -------- | --------
[Azure.ACR.Quarantine](../rules/Azure.ACR.Quarantine.md) | Enable container image quarantine, scan, and mark images as verified. | Important
[Azure.ACR.Retention](../rules/Azure.ACR.Retention.md) | Use a retention policy to cleanup untagged manifests. | Important
[Azure.ACR.SoftDelete](../rules/Azure.ACR.SoftDelete.md) | Azure Container Registries should have soft delete policy enabled. | Important
[Azure.AKS.LocalAccounts](../rules/Azure.AKS.LocalAccounts.md) | Enforce named user accounts with RBAC assigned permissions. | Important
[Azure.AppConfig.GeoReplica](../rules/Azure.AppConfig.GeoReplica.md) | Consider replication for app configuration store to ensure resiliency to region outages. | Important
3 changes: 1 addition & 2 deletions docs/en/baselines/Azure.Preview_2023_03.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ Include rules released March 2023 or prior for Azure preview only features.

## Rules

The following rules are included within `Azure.Preview_2023_03`. This baseline includes a total of 5 rules.
The following rules are included within `Azure.Preview_2023_03`. This baseline includes a total of 4 rules.

Name | Synopsis | Severity
---- | -------- | --------
[Azure.ACR.Quarantine](../rules/Azure.ACR.Quarantine.md) | Enable container image quarantine, scan, and mark images as verified. | Important
[Azure.ACR.Retention](../rules/Azure.ACR.Retention.md) | Use a retention policy to cleanup untagged manifests. | Important
[Azure.ACR.SoftDelete](../rules/Azure.ACR.SoftDelete.md) | Azure Container Registries should have soft delete policy enabled. | Important
[Azure.AKS.LocalAccounts](../rules/Azure.AKS.LocalAccounts.md) | Enforce named user accounts with RBAC assigned permissions. | Important
[Azure.AppConfig.GeoReplica](../rules/Azure.AppConfig.GeoReplica.md) | Consider replication for app configuration store to ensure resiliency to region outages. | Important
4 changes: 1 addition & 3 deletions docs/en/baselines/Azure.Preview_2023_06.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,17 @@ Include rules released June 2023 or prior for Azure preview only features.

## Rules

The following rules are included within `Azure.Preview_2023_06`. This baseline includes a total of 15 rules.
The following rules are included within `Azure.Preview_2023_06`. This baseline includes a total of 13 rules.

Name | Synopsis | Severity
---- | -------- | --------
[Azure.ACR.Quarantine](../rules/Azure.ACR.Quarantine.md) | Enable container image quarantine, scan, and mark images as verified. | Important
[Azure.ACR.Retention](../rules/Azure.ACR.Retention.md) | Use a retention policy to cleanup untagged manifests. | Important
[Azure.ACR.SoftDelete](../rules/Azure.ACR.SoftDelete.md) | Azure Container Registries should have soft delete policy enabled. | Important
[Azure.AKS.LocalAccounts](../rules/Azure.AKS.LocalAccounts.md) | Enforce named user accounts with RBAC assigned permissions. | Important
[Azure.APIM.DefenderCloud](../rules/Azure.APIM.DefenderCloud.md) | APIs published in Azure API Management should be onboarded to Microsoft Defender for APIs. | Critical
[Azure.AppConfig.GeoReplica](../rules/Azure.AppConfig.GeoReplica.md) | Consider replication for app configuration store to ensure resiliency to region outages. | Important
[Azure.Arc.Kubernetes.Defender](../rules/Azure.Arc.Kubernetes.Defender.md) | Deploy Microsoft Defender for Containers extension for Arc-enabled Kubernetes clusters. | Important
[Azure.Arc.Server.MaintenanceConfig](../rules/Azure.Arc.Server.MaintenanceConfig.md) | Use a maintenance configuration for Arc-enabled servers. | Important
[Azure.ContainerApp.DisableAffinity](../rules/Azure.ContainerApp.DisableAffinity.md) | Disable session affinity to prevent unbalanced distribution. | Important
[Azure.Defender.Api](../rules/Azure.Defender.Api.md) | Enable Microsoft Defender for APIs. | Critical
[Azure.Defender.Storage.MalwareScan](../rules/Azure.Defender.Storage.MalwareScan.md) | Enable Malware Scanning in Microsoft Defender for Storage. | Critical
[Azure.Defender.Storage.SensitiveData](../rules/Azure.Defender.Storage.SensitiveData.md) | Enable sensitive data threat detection in Microsoft Defender for Storage. | Critical
Expand Down
4 changes: 1 addition & 3 deletions docs/en/baselines/Azure.Preview_2023_09.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,18 @@ Include rules released September 2023 or prior for Azure preview only features.

## Rules

The following rules are included within `Azure.Preview_2023_09`. This baseline includes a total of 16 rules.
The following rules are included within `Azure.Preview_2023_09`. This baseline includes a total of 14 rules.

Name | Synopsis | Severity
---- | -------- | --------
[Azure.ACR.AnonymousAccess](../rules/Azure.ACR.AnonymousAccess.md) | Disable anonymous pull access. | Important
[Azure.ACR.Quarantine](../rules/Azure.ACR.Quarantine.md) | Enable container image quarantine, scan, and mark images as verified. | Important
[Azure.ACR.Retention](../rules/Azure.ACR.Retention.md) | Use a retention policy to cleanup untagged manifests. | Important
[Azure.ACR.SoftDelete](../rules/Azure.ACR.SoftDelete.md) | Azure Container Registries should have soft delete policy enabled. | Important
[Azure.AKS.LocalAccounts](../rules/Azure.AKS.LocalAccounts.md) | Enforce named user accounts with RBAC assigned permissions. | Important
[Azure.APIM.DefenderCloud](../rules/Azure.APIM.DefenderCloud.md) | APIs published in Azure API Management should be onboarded to Microsoft Defender for APIs. | Critical
[Azure.AppConfig.GeoReplica](../rules/Azure.AppConfig.GeoReplica.md) | Consider replication for app configuration store to ensure resiliency to region outages. | Important
[Azure.Arc.Kubernetes.Defender](../rules/Azure.Arc.Kubernetes.Defender.md) | Deploy Microsoft Defender for Containers extension for Arc-enabled Kubernetes clusters. | Important
[Azure.Arc.Server.MaintenanceConfig](../rules/Azure.Arc.Server.MaintenanceConfig.md) | Use a maintenance configuration for Arc-enabled servers. | Important
[Azure.ContainerApp.DisableAffinity](../rules/Azure.ContainerApp.DisableAffinity.md) | Disable session affinity to prevent unbalanced distribution. | Important
[Azure.Defender.Api](../rules/Azure.Defender.Api.md) | Enable Microsoft Defender for APIs. | Critical
[Azure.Defender.Storage.MalwareScan](../rules/Azure.Defender.Storage.MalwareScan.md) | Enable Malware Scanning in Microsoft Defender for Storage. | Critical
[Azure.Defender.Storage.SensitiveData](../rules/Azure.Defender.Storage.SensitiveData.md) | Enable sensitive data threat detection in Microsoft Defender for Storage. | Critical
Expand Down
Loading

0 comments on commit 8ae48f5

Please sign in to comment.