Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@cx-andre-pereira
Copy link
Contributor

@cx-andre-pereira cx-andre-pereira commented Oct 14, 2025

Reason for Proposed Changes

  • Currently there is no query to ensure a "azurerm_databricks_workspace" resource has CMK encryption enabled for managed disks.

  • Quoting CIS_Microsoft_Azure_Foundations_Benchmark_v5.0.0 page 49: "By default in Azure, data at rest tends to be encrypted using Microsoft-managed keys. If your organization wants to control and manage encryption keys for compliance and defense-in-depth, customer-managed keys can be established."

  • For the relevant resource to enable CMK 2 fields must be validated:

Proposed Changes

  • Implemented the missing query with a cwe value of 522, "MEDIUM" severity and the "Encryption" category; these were mainly based on the "Encryption On Managed Disk Disabled" query that checks that a managed disk has encryption enabled.

  • The query will flag a given"azurerm_databricks_workspace" resource if:

    • The "customer_managed_key_enabled" field is undefined or null
    • The "customer_managed_key_enabled" field is set to a value that is not true
    • The "customer_managed_key_enabled" is true but "managed_disk_cmk_key_vault_key_id" is undefined or null.
  • Reference

I submit this contribution under the Apache-2.0 license.

@github-actions github-actions bot added feature New feature query New query feature labels Oct 14, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Oct 14, 2025

kics-logo

KICS version: v2.1.17

Category Results
CRITICAL CRITICAL 0
HIGH HIGH 0
MEDIUM MEDIUM 0
LOW LOW 0
INFO INFO 0
TRACE TRACE 0
TOTAL TOTAL 0
Metric Values
Files scanned placeholder 1
Files parsed placeholder 1
Files failed to scan placeholder 0
Total executed queries placeholder 47
Queries failed to execute placeholder 0
Execution time placeholder 0

@cx-andre-pereira cx-andre-pereira changed the title feat(query) : new query "Beta - Databricks Workspace Without CMK" feat(query): new query "Beta - Databricks Workspace Without CMK" Oct 14, 2025
@github-actions github-actions bot added terraform Terraform query azure PR related with Azure Cloud labels Oct 15, 2025
@cx-andre-pereira cx-andre-pereira marked this pull request as ready for review October 15, 2025 11:39
@cx-andre-pereira cx-andre-pereira requested a review from a team as a code owner October 15, 2025 11:39
@cx-andre-pereira cx-andre-pereira changed the title feat(query): new query "Beta - Databricks Workspace Without CMK" feat(query): new query "Beta - Databricks Workspace Without CMK" - Terraform/azure Oct 15, 2025
@gitguardian
Copy link

gitguardian bot commented Nov 8, 2025

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secret in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
21271469 Triggered Generic Password 47a98eb assets/queries/terraform/azure/unrestricted_sql_server_access/test/negative4.tf View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

…06783_3_1_8_ensure_data_at_rest_and_in_transit_is_encrypted_in_azure_databricks_using_CMK
…n_transit_is_encrypted_in_azure_databricks_using_CMK
…encrypted_in_azure_databricks_using_CMK' of https://github.com/Checkmarx/kics into AST-106783_3_1_8_ensure_data_at_rest_and_in_transit_is_encrypted_in_azure_databricks_using_CMK
…n_transit_is_encrypted_in_azure_databricks_using_CMK
Copy link
Contributor

@cx-eduardo-semanas cx-eduardo-semanas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

…n_transit_is_encrypted_in_azure_databricks_using_CMK
Copy link
Contributor

@cx-eduardo-semanas cx-eduardo-semanas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cx-andre-pereira cx-andre-pereira merged commit 42fc240 into master Dec 9, 2025
29 checks passed
@cx-andre-pereira cx-andre-pereira deleted the AST-106783_3_1_8_ensure_data_at_rest_and_in_transit_is_encrypted_in_azure_databricks_using_CMK branch December 9, 2025 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

azure PR related with Azure Cloud feature New feature query New query feature terraform Terraform query

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants