Conversation
| { | ||
| private Dictionary<string, string> _users = new Dictionary<string, string>(); | ||
| private const string SqlConnectionString = "Server=localhost;Database=SecurityDb;User Id=sa;Password=MyP@ssw0rd!;"; | ||
| private const string SqlConnectionString = "Server=localhost;Database=SecurityDb;User Id=sa;Password=MyP@ssw0rd!2;"; |
Check failure
Code scanning / CodeQL
Hard-coded connection string with credentials
terraform/main.tf
Outdated
Check failure
Code scanning / defsec
Ensure the Function App can only be accessed via HTTPS. The default is false.
| resource "azurerm_function_app" "bad_example" { | ||
| name = "example-function-app" | ||
| location = azurerm_resource_group.example.location | ||
| resource_group_name = azurerm_resource_group.example.name | ||
| app_service_plan_id = azurerm_app_service_plan.example.id | ||
| } |
Check warning
Code scanning / defsec
App Service authentication is activated
| resource "azurerm_function_app" "bad_example" { | ||
| name = "example-function-app" | ||
| location = azurerm_resource_group.example.location | ||
| resource_group_name = azurerm_resource_group.example.name | ||
| app_service_plan_id = azurerm_app_service_plan.example.id | ||
| } |
Check notice
Code scanning / defsec
Web App has registration with AD enabled
| resource "azurerm_function_app" "bad_example" { | ||
| name = "example-function-app" | ||
| location = azurerm_resource_group.example.location | ||
| resource_group_name = azurerm_resource_group.example.name | ||
| app_service_plan_id = azurerm_app_service_plan.example.id | ||
| } |
Check notice
Code scanning / defsec
Web App uses the latest HTTP version
| resource "azurerm_function_app" "bad_example" { | ||
| name = "example-function-app" | ||
| location = azurerm_resource_group.example.location | ||
| resource_group_name = azurerm_resource_group.example.name | ||
| app_service_plan_id = azurerm_app_service_plan.example.id | ||
| } |
Check notice
Code scanning / defsec
Web App accepts incoming client certificate
| @@ -87,3 +96,23 @@ resource "azurerm_network_security_group" "example" { | |||
| destination_address_prefix = "*" | |||
| } | |||
Check notice
Code scanning / defsec
Key vault Secret should have a content type set
| @@ -87,3 +96,23 @@ resource "azurerm_network_security_group" "example" { | |||
| destination_address_prefix = "*" | |||
| } | |||
Check notice
Code scanning / defsec
Key Vault Secret should have an expiration date set
No description provided.