-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6980 from Checkmarx/bicep-kics-1313
feat(bicep): adding bicep support
- Loading branch information
Showing
424 changed files
with
23,579 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -137,3 +137,4 @@ run: | |
- docs | ||
- vendor | ||
- pkg/parser/jsonfilter/parser | ||
- pkg/parser/bicep/antlr |
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
9 changes: 9 additions & 0 deletions
9
...ts/queries/azureResourceManager/account_admins_not_notified_by_email/test/negative1.bicep
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,9 @@ | ||
resource sample_server_default 'Microsoft.Sql/servers/databases/securityAlertPolicies@2021-02-01-preview' = { | ||
name: 'sample/server/default' | ||
properties: { | ||
emailAccountAdmins: true | ||
emailAddresses: ['[email protected]'] | ||
retentionDays: 4 | ||
state: 'Enabled' | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...ts/queries/azureResourceManager/account_admins_not_notified_by_email/test/negative2.bicep
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,9 @@ | ||
resource sample_server_default 'Microsoft.Sql/servers/databases/securityAlertPolicies@2021-02-01-preview' = { | ||
name: 'sample/server/default' | ||
properties: { | ||
emailAccountAdmins: true | ||
emailAddresses: ['[email protected]'] | ||
retentionDays: 4 | ||
state: 'Enabled' | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...ts/queries/azureResourceManager/account_admins_not_notified_by_email/test/positive1.bicep
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,9 @@ | ||
resource sample_server_default 'Microsoft.Sql/servers/databases/securityAlertPolicies@2021-02-01-preview' = { | ||
name: 'sample/server/default' | ||
properties: { | ||
emailAccountAdmins: false | ||
emailAddresses: ['[email protected]'] | ||
retentionDays: 4 | ||
state: 'Enabled' | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...ts/queries/azureResourceManager/account_admins_not_notified_by_email/test/positive2.bicep
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,8 @@ | ||
resource sample_server_default 'Microsoft.Sql/servers/databases/securityAlertPolicies@2021-02-01-preview' = { | ||
name: 'sample/server/default' | ||
properties: { | ||
emailAddresses: ['[email protected]'] | ||
retentionDays: 4 | ||
state: 'Enabled' | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...ts/queries/azureResourceManager/account_admins_not_notified_by_email/test/positive3.bicep
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,9 @@ | ||
resource sample_server_default 'Microsoft.Sql/servers/databases/securityAlertPolicies@2021-02-01-preview' = { | ||
name: 'sample/server/default' | ||
properties: { | ||
emailAccountAdmins: false | ||
emailAddresses: ['[email protected]'] | ||
retentionDays: 4 | ||
state: 'Enabled' | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...ts/queries/azureResourceManager/account_admins_not_notified_by_email/test/positive4.bicep
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,8 @@ | ||
resource sample_server_default 'Microsoft.Sql/servers/databases/securityAlertPolicies@2021-02-01-preview' = { | ||
name: 'sample/server/default' | ||
properties: { | ||
emailAddresses: ['[email protected]'] | ||
retentionDays: 4 | ||
state: 'Enabled' | ||
} | ||
} |
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
34 changes: 34 additions & 0 deletions
34
...eries/azureResourceManager/aks_cluster_network_policy_not_configured/test/negative1.bicep
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,34 @@ | ||
resource aksCluster1 'Microsoft.ContainerService/managedClusters@2020-02-01' = { | ||
name: 'aksCluster1' | ||
location: resourceGroup().location | ||
properties: { | ||
kubernetesVersion: '1.15.7' | ||
dnsPrefix: 'dnsprefix' | ||
agentPoolProfiles: [ | ||
{ | ||
name: 'agentpool' | ||
count: 2 | ||
vmSize: 'Standard_A1' | ||
osType: 'Linux' | ||
storageProfile: 'ManagedDisks' | ||
} | ||
] | ||
linuxProfile: { | ||
adminUsername: 'adminUserName' | ||
ssh: { | ||
publicKeys: [ | ||
{ | ||
keyData: 'keyData' | ||
} | ||
] | ||
} | ||
} | ||
servicePrincipalProfile: { | ||
clientId: 'servicePrincipalAppId' | ||
secret: 'servicePrincipalAppPassword' | ||
} | ||
networkProfile: { | ||
networkPolicy: 'azure' | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...eries/azureResourceManager/aks_cluster_network_policy_not_configured/test/negative2.bicep
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,34 @@ | ||
resource aksCluster1 'Microsoft.ContainerService/managedClusters@2020-02-01' = { | ||
name: 'aksCluster1' | ||
location: resourceGroup().location | ||
properties: { | ||
kubernetesVersion: '1.15.7' | ||
dnsPrefix: 'dnsprefix' | ||
agentPoolProfiles: [ | ||
{ | ||
name: 'agentpool' | ||
count: 2 | ||
vmSize: 'Standard_A1' | ||
osType: 'Linux' | ||
storageProfile: 'ManagedDisks' | ||
} | ||
] | ||
linuxProfile: { | ||
adminUsername: 'adminUserName' | ||
ssh: { | ||
publicKeys: [ | ||
{ | ||
keyData: 'keyData' | ||
} | ||
] | ||
} | ||
} | ||
servicePrincipalProfile: { | ||
clientId: 'servicePrincipalAppId' | ||
secret: 'servicePrincipalAppPassword' | ||
} | ||
networkProfile: { | ||
networkPolicy: 'azure' | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
...eries/azureResourceManager/aks_cluster_network_policy_not_configured/test/positive1.bicep
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,31 @@ | ||
resource aksCluster1 'Microsoft.ContainerService/managedClusters@2020-02-01' = { | ||
name: 'aksCluster1' | ||
location: resourceGroup().location | ||
properties: { | ||
kubernetesVersion: '1.15.7' | ||
dnsPrefix: 'dnsprefix' | ||
agentPoolProfiles: [ | ||
{ | ||
name: 'agentpool' | ||
count: 2 | ||
vmSize: 'Standard_A1' | ||
osType: 'Linux' | ||
storageProfile: 'ManagedDisks' | ||
} | ||
] | ||
linuxProfile: { | ||
adminUsername: 'adminUserName' | ||
ssh: { | ||
publicKeys: [ | ||
{ | ||
keyData: 'keyData' | ||
} | ||
] | ||
} | ||
} | ||
servicePrincipalProfile: { | ||
clientId: 'servicePrincipalAppId' | ||
secret: 'servicePrincipalAppPassword' | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...eries/azureResourceManager/aks_cluster_network_policy_not_configured/test/positive2.bicep
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,34 @@ | ||
resource aksCluster1 'Microsoft.ContainerService/managedClusters@2020-02-01' = { | ||
name: 'aksCluster1' | ||
location: resourceGroup().location | ||
properties: { | ||
kubernetesVersion: '1.15.7' | ||
dnsPrefix: 'dnsprefix' | ||
agentPoolProfiles: [ | ||
{ | ||
name: 'agentpool' | ||
count: 2 | ||
vmSize: 'Standard_A1' | ||
osType: 'Linux' | ||
storageProfile: 'ManagedDisks' | ||
} | ||
] | ||
linuxProfile: { | ||
adminUsername: 'adminUserName' | ||
ssh: { | ||
publicKeys: [ | ||
{ | ||
keyData: 'keyData' | ||
} | ||
] | ||
} | ||
} | ||
servicePrincipalProfile: { | ||
clientId: 'servicePrincipalAppId' | ||
secret: 'servicePrincipalAppPassword' | ||
} | ||
networkProfile: { | ||
networkPolicy: '' | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
...eries/azureResourceManager/aks_cluster_network_policy_not_configured/test/positive3.bicep
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,31 @@ | ||
resource aksCluster1 'Microsoft.ContainerService/managedClusters@2020-02-01' = { | ||
name: 'aksCluster1' | ||
location: resourceGroup().location | ||
properties: { | ||
kubernetesVersion: '1.15.7' | ||
dnsPrefix: 'dnsprefix' | ||
agentPoolProfiles: [ | ||
{ | ||
name: 'agentpool' | ||
count: 2 | ||
vmSize: 'Standard_A1' | ||
osType: 'Linux' | ||
storageProfile: 'ManagedDisks' | ||
} | ||
] | ||
linuxProfile: { | ||
adminUsername: 'adminUserName' | ||
ssh: { | ||
publicKeys: [ | ||
{ | ||
keyData: 'keyData' | ||
} | ||
] | ||
} | ||
} | ||
servicePrincipalProfile: { | ||
clientId: 'servicePrincipalAppId' | ||
secret: 'servicePrincipalAppPassword' | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...eries/azureResourceManager/aks_cluster_network_policy_not_configured/test/positive4.bicep
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,34 @@ | ||
resource aksCluster1 'Microsoft.ContainerService/managedClusters@2020-02-01' = { | ||
name: 'aksCluster1' | ||
location: resourceGroup().location | ||
properties: { | ||
kubernetesVersion: '1.15.7' | ||
dnsPrefix: 'dnsprefix' | ||
agentPoolProfiles: [ | ||
{ | ||
name: 'agentpool' | ||
count: 2 | ||
vmSize: 'Standard_A1' | ||
osType: 'Linux' | ||
storageProfile: 'ManagedDisks' | ||
} | ||
] | ||
linuxProfile: { | ||
adminUsername: 'adminUserName' | ||
ssh: { | ||
publicKeys: [ | ||
{ | ||
keyData: 'keyData' | ||
} | ||
] | ||
} | ||
} | ||
servicePrincipalProfile: { | ||
clientId: 'servicePrincipalAppId' | ||
secret: 'servicePrincipalAppPassword' | ||
} | ||
networkProfile: { | ||
networkPolicy: '' | ||
} | ||
} | ||
} |
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
32 changes: 32 additions & 0 deletions
32
assets/queries/azureResourceManager/aks_cluster_rbac_disabled/test/negative1.bicep
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,32 @@ | ||
resource aksCluster1 'Microsoft.ContainerService/managedClusters@2020-02-01' = { | ||
name: 'aksCluster1' | ||
location: resourceGroup().location | ||
properties: { | ||
enableRBAC: true | ||
kubernetesVersion: '1.15.7' | ||
dnsPrefix: 'dnsprefix' | ||
agentPoolProfiles: [ | ||
{ | ||
name: 'agentpool' | ||
count: 2 | ||
vmSize: 'Standard_A1' | ||
osType: 'Linux' | ||
storageProfile: 'ManagedDisks' | ||
} | ||
] | ||
linuxProfile: { | ||
adminUsername: 'adminUserName' | ||
ssh: { | ||
publicKeys: [ | ||
{ | ||
keyData: 'keyData' | ||
} | ||
] | ||
} | ||
} | ||
servicePrincipalProfile: { | ||
clientId: 'servicePrincipalAppId' | ||
secret: 'servicePrincipalAppPassword' | ||
} | ||
} | ||
} |
Oops, something went wrong.