Skip to content

Commit

Permalink
Merge branch 'main' into fix/issue-439
Browse files Browse the repository at this point in the history
  • Loading branch information
ejhenry authored Oct 7, 2024
2 parents 692ad12 + 4f74227 commit 8fd4d5a
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-recommendation-object.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v4.2.0
with:
ref: main

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v4.2.0
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hugo-build-pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
run: sudo snap install dart-sass-embedded

- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v4.2.0
with:
submodules: recursive
fetch-depth: 0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hugo-site-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
run: sudo snap install dart-sass-embedded

- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v4.2.0
with:
submodules: recursive
fetch-depth: 0
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

steps:
- name: "Checkout code"
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
uses: actions/checkout@6b42224f41ee5dfe5395e27c8b2746f1f9955030 # v2.7.0
with:
persist-credentials: false

Expand Down Expand Up @@ -68,6 +68,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard (optional).
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@461ef6c76dfe95d5c364de2f431ddbd31a417628 # v3.26.9
uses: github/codeql-action/upload-sarif@6db8d6351fd0be61f9ed8ebd12ccd35dcec51fea # v3.26.11
with:
sarif_file: results.sarif
2 changes: 1 addition & 1 deletion .github/workflows/validate-queries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v4.2.0

- name: Azure login (OIDC)
uses: azure/login@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate-recommendations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v4.2.0

- name: Set up Python 3.x
uses: actions/setup-python@v5
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Azure Resource Graph Query
// Provides a list of Service Bus Namespace resources that have the lower minimum TLS version.
resources
| where type =~ "Microsoft.ServiceBus/namespaces"
| where properties.minimumTlsVersion in ("1.0", "1.1")
| project
recommendationId = "f075a1bd-de9e-4819-9a1d-1ac41037a74f",
name,
id,
tags,
param1 = strcat("minimumTlsVersion: ", properties.minimumTlsVersion)
20 changes: 20 additions & 0 deletions azure-resources/ServiceBus/namespaces/recommendations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,23 @@
learnMoreLink:
- name: Service Bus auto-scaling
url: "https://learn.microsoft.com/azure/service-bus-messaging/automate-update-messaging-units"

- description: Configure the minimum TLS version for Service Bus namespaces to TLS v1.2 or higher
aprlGuid: f075a1bd-de9e-4819-9a1d-1ac41037a74f
recommendationTypeId: null
recommendationControl: Service Upgrade and Retirement
recommendationImpact: High
recommendationResourceType: Microsoft.ServiceBus/namespaces
recommendationMetadataState: Active
longDescription: |
As of 31 October 2024, TLS 1.0 and TLS 1.1 will no longer be supported on Azure including Service Bus to enhance security and provide best-in-class encryption for your data. Change the minimum TLS version for your Service Bus namespace to TLS v1.2 or higher.
potentialBenefits: Avoids service disruption
pgVerified: false
publishedToLearn: false
automationAvailable: true
tags: null
learnMoreLink:
- name: Azure support for TLS 1.0 and TLS 1.1 will end by 31 October 2024
url: "https://azure.microsoft.com/updates/azure-support-tls-will-end-by-31-october-2024-2/"
- name: Configure the minimum TLS version for a Service Bus namespace
url: "https://learn.microsoft.com/azure/service-bus-messaging/transport-layer-security-configure-minimum-version"
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
resources
| where type =~ "Microsoft.Storage/StorageAccounts"
| where isnull(properties.privateEndpointConnections) or properties.privateEndpointConnections[0].properties.provisioningState != ("Succeeded") or (isnull(properties.networkAcls) and properties.publicNetworkAccess == 'Enabled')
| extend param1 = strcat('Private Endpoint: ', iif(isnotnull(properties.privateEndpointConnections),split(properties.privateEndpointConnections[0].properties.privateEndpoint.id,'/')[8],'No Private Endpoint'))
| extend param1 = strcat('Private Endpoint: ', iif(array_length(properties.privateEndpointConnections) != 0,split(properties.privateEndpointConnections[0].properties.privateEndpoint.id,'/')[8],'No Private Endpoint'))
| extend param2 = strcat('Access: ', iif(properties.publicNetworkAccess == 'Disabled', 'Public Access Disabled', iif(isnotnull(properties.networkAcls), 'NetworkACLs in place','Public Access Enabled')))
| project recommendationId = "dc55be60-6f8c-461e-a9d5-a3c7686ed94e", name, id, tags, param1, param2
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ The YAML structure for adding new recommendations consists of several key-value
| recommendationTypeId | 3464854d-6f75-4922-95e4-a2a308b53ce6 | String | `null` until updated by the Azure Advisor team | The unique identifier for the recommendation in the context of Advisor. |
| recommendationControl | Monitoring and Alerting | String | [High Availability, Business Continuity, Disaster Recovery, Scalability, Monitoring and Alerting, Service Upgrade and Retirement, Other Best Practices, Personalized, Governance, Security](#recommendation-categories) | Resiliency category associated with the recommendation |
| recommendationImpact | Medium | String | Low, Medium, High | Importance of adopting the recommendation and/or the risk of choosing not to adopt |
| recommendationResourceType | Storage Account | String | Align with the resource type | Friendly name to identity resource type |
| recommendationResourceType | Microsoft.Storage/storageAccounts | String | Align with the resource type | Friendly name to identity resource type |
| recommendationMetadataState | Active | String | Active, Disabled | Indicates whether the recommendation is visible |
| longDescription | To enable Cross-region disaster recovery and business continuity, ensure that the appropriate quotas are set for all user subscription Batch accounts. | String | The length should be less than 300 characters | Detailed description of the recommendation and its implications |
| potentialBenefits | Enhanced data redundancy and boosts availability | String | The length should be less than 60 characters | The potential benefits of implementing the recommendation |
Expand Down

0 comments on commit 8fd4d5a

Please sign in to comment.