Skip to content

feat(query): new query "Beta - Databricks Workspace Using Default Virtual Network" - Terraform/azure#7767

Merged
cx-andre-pereira merged 23 commits into
masterfrom
AST-106783_3_1_1_ensure_azure_databricks_is_deployed_in_customer_managed_VNet
Nov 24, 2025
Merged

feat(query): new query "Beta - Databricks Workspace Using Default Virtual Network" - Terraform/azure#7767
cx-andre-pereira merged 23 commits into
masterfrom
AST-106783_3_1_1_ensure_azure_databricks_is_deployed_in_customer_managed_VNet

Conversation

@cx-andre-pereira

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

Copy link
Copy Markdown
Contributor

Reason for Proposed Changes

  • Currently there is no query checking that a azurerm_databricks_workspace is associated with a azurerm_virtual_network through the "virtual_network_id" field.
  • Associating a custom virtual network to the Databricks Workspace allows users to:
    • "Connect Azure Databricks to other Azure services (such as Azure Storage) more securely using service endpoints or Azure private endpoints."
    • "Connect to on-premises data sources using user-defined routes."
    • "Connect Azure Databricks to a network virtual appliance to inspect all outbound traffic and take actions according to allow and deny rules. "
    • "Configure Azure Databricks to use custom DNS."
    • "Configure network security group (NSG) rules to specify egress traffic restrictions."

(Explicitly stated within the official documentation)

All this to say that by not associating a custom VN, you default to Databricks-managed networking — losing visibility and control.

Extra documentation: "OOTB" rules, "customize networking from users to Azure Databricks"(Azure docs)

Proposed Changes

I submit this contribution under the Apache-2.0 license.

@github-actions github-actions Bot added feature New feature query New query feature terraform Terraform query azure PR related with Azure Cloud labels Oct 13, 2025
@github-actions

Copy link
Copy Markdown
Contributor

kics-logo

KICS version: v2.1.13

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 marked this pull request as ready for review October 14, 2025 11:09
@cx-andre-pereira cx-andre-pereira requested a review from a team as a code owner October 14, 2025 11:09
@cx-andre-pereira cx-andre-pereira changed the title feat(query): new query - Databricks Workspace Using Default Virtual Network - Terraform/azure feat(query): new query "Beta - Databricks Workspace Using Default Virtual Network" - Terraform/azure Oct 15, 2025
@gitguardian

gitguardian Bot commented Nov 20, 2025

Copy link
Copy Markdown

⚠️ 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 e8b1d27 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.

@cx-andre-pereira cx-andre-pereira merged commit c436388 into master Nov 24, 2025
32 of 34 checks passed
@cx-andre-pereira cx-andre-pereira deleted the AST-106783_3_1_1_ensure_azure_databricks_is_deployed_in_customer_managed_VNet branch November 24, 2025 15:21
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