-
Notifications
You must be signed in to change notification settings - Fork 316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update(query): update App Service Not Using Latest TLS Encryption Version query to the latest version #7302
Conversation
Latest TLS Encryption Version is 1.3
Hey @anterosilva1985, To make the test cases more comprehensive and complete, I would suggest the following changes: 1 - Add a positive expected result ( Negative1.tf update suggestionresource "azurerm_app_service" "negative1" {
name = "example-app-service"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
app_service_plan_id = azurerm_app_service_plan.example.id
site_config {
dotnet_framework_version = "v4.0"
scm_type = "LocalGit"
min_tls_version = 1.3
}
} Additional Positive2.tf result && Updated Positive_expected_result.json suggestionWe could modify the current resource "azurerm_app_service" "positive2" {
name = "example-app-service"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
app_service_plan_id = azurerm_app_service_plan.example.id
site_config {
dotnet_framework_version = "v4.0"
scm_type = "LocalGit"
min_tls_version = 1.2
}
} Regarding the [
{
"queryName": "App Service Not Using Latest TLS Encryption Version",
"severity": "MEDIUM",
"line": 10,
"fileName": "positive1.tf"
},
{
"queryName": "App Service Not Using Latest TLS Encryption Version",
"severity": "MEDIUM",
"line": 10,
"fileName": "positive2.tf"
}
] These are just community suggestions, but they would fix the failing unit tests and, I believe, complete your query update while enhancing the test cases a little bit. 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Reason for Proposed Changes
Proposed Changes
I submit this contribution under the Apache-2.0 license.