-
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 #6862 from Checkmarx/joaom/kics-1293
fix(query): improve query Key Vault Not Recoverable
- Loading branch information
Showing
5 changed files
with
191 additions
and
5 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
172 changes: 172 additions & 0 deletions
172
assets/queries/azureResourceManager/key_vault_not_recoverable/test/positive5.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,172 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"variables": {}, | ||
"resources": [ | ||
{ | ||
"type": "Microsoft.KeyVault/vaults", | ||
"apiVersion": "2016-10-01", | ||
"name": "[parameters('vaults_pgs_bot_prod_name')]", | ||
"location": "westeurope", | ||
"tags": { | ||
"ProjectCodeBU": "UKMUMD", | ||
"ApplicationName": "PGS HR Chatbot", | ||
"ProjectCodePGDS": "PRJ0024896", | ||
"CostCentreBU": "UKMUMD", | ||
"DataClassification": "General", | ||
"BusinessUnit": "PGS", | ||
"Owner": "Pru UK Andover Innovation Team", | ||
"Contact": "[email protected]", | ||
"CostCentrePGDS": "ITBUEXP", | ||
"Criticality": "Low" | ||
}, | ||
"properties": { | ||
"sku": { | ||
"family": "A", | ||
"name": "standard" | ||
}, | ||
"tenantId": "aa42167d-6f8d-45ce-b655-d245ef97da66", | ||
"accessPolicies": [ | ||
{ | ||
"tenantId": "aa42167d-6f8d-45ce-b655-d245ef97da66", | ||
"objectId": "f3e7baf5-8d66-4fb2-b7aa-7b7484309df6", | ||
"permissions": { | ||
"keys": [ | ||
"Get", | ||
"Create", | ||
"Delete", | ||
"List", | ||
"Update", | ||
"Import", | ||
"Backup", | ||
"Restore", | ||
"Recover" | ||
], | ||
"secrets": [ | ||
"Get", | ||
"List", | ||
"Set", | ||
"Delete", | ||
"Backup", | ||
"Restore", | ||
"Recover" | ||
], | ||
"certificates": [ | ||
"Get", | ||
"Delete", | ||
"List", | ||
"Create", | ||
"Import", | ||
"Update", | ||
"DeleteIssuers", | ||
"GetIssuers", | ||
"ListIssuers", | ||
"ManageContacts", | ||
"ManageIssuers", | ||
"SetIssuers" | ||
], | ||
"storage": [ | ||
"delete", | ||
"deletesas", | ||
"get", | ||
"getsas", | ||
"list", | ||
"listsas", | ||
"regeneratekey", | ||
"set", | ||
"setsas", | ||
"update" | ||
] | ||
} | ||
}, | ||
{ | ||
"tenantId": "aa42167d-6f8d-45ce-b655-d245ef97da66", | ||
"objectId": "1033a977-ffdc-4359-869a-b673d075f128", | ||
"permissions": { | ||
"keys": [], | ||
"secrets": [ | ||
"Get" | ||
], | ||
"certificates": [], | ||
"storage": [] | ||
} | ||
}, | ||
{ | ||
"tenantId": "aa42167d-6f8d-45ce-b655-d245ef97da66", | ||
"objectId": "13be5d2d-6e1f-4667-add4-02d2d1142ac5", | ||
"permissions": { | ||
"keys": [], | ||
"secrets": [ | ||
"Get", | ||
"List", | ||
"Set", | ||
"Delete", | ||
"Backup", | ||
"Restore", | ||
"Recover", | ||
"Purge" | ||
], | ||
"certificates": [], | ||
"storage": [] | ||
} | ||
}, | ||
{ | ||
"tenantId": "aa42167d-6f8d-45ce-b655-d245ef97da66", | ||
"objectId": "e56a2de8-a788-415f-b10f-14bfd3000e1d", | ||
"permissions": { | ||
"keys": [ | ||
"Get", | ||
"List", | ||
"Update", | ||
"Create", | ||
"Import", | ||
"Delete", | ||
"Recover", | ||
"Backup", | ||
"Restore", | ||
"Decrypt", | ||
"Encrypt", | ||
"UnwrapKey", | ||
"WrapKey", | ||
"Verify", | ||
"Sign", | ||
"Purge" | ||
], | ||
"secrets": [ | ||
"Get", | ||
"List", | ||
"Set", | ||
"Delete", | ||
"Recover", | ||
"Backup", | ||
"Restore", | ||
"Purge" | ||
], | ||
"certificates": [ | ||
"Get", | ||
"List", | ||
"Update", | ||
"Create", | ||
"Import", | ||
"Delete", | ||
"Recover", | ||
"Backup", | ||
"Restore", | ||
"ManageContacts", | ||
"ManageIssuers", | ||
"GetIssuers", | ||
"ListIssuers", | ||
"SetIssuers", | ||
"DeleteIssuers", | ||
"Purge" | ||
] | ||
} | ||
} | ||
], | ||
"enabledForDeployment": false, | ||
"enabledForDiskEncryption": false, | ||
"enabledForTemplateDeployment": false | ||
} | ||
} | ||
] | ||
} |
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