[Vectra XDR] Python version updated from 3.9 to 3.12#12637
Conversation
|
@fenil-savani, In file Data%20Connectors/VectraDataConnector/SharedCode/keyvault_secrets_management.py, DefaultAzureCredential has been used for authentication. DefaultAzureCredential should only be used in dev setup. For production environments, Use deterministic credential. Common examples of such credentials include ManagedIdentityCredential, WorkloadIdentityCredential, and ClientAssertionCredential. |
|
Hi @rahul0216 From the deterministic credentials can we use any for Azure Gov Cloud support? I'm trying to determine whether ManagedIdentityCredential, WorkloadIdentityCredential, and ClientAssertionCredential can be configured to support Azure Government Cloud. So far, I haven’t found any parameters in these credential types that explicitly allow targeting Azure Gov Cloud endpoints. As we know how to to use Azure Gov Support in DefaultAzureCredential, Could you guide us how to give support on above Credentials? |
|
@rahul0216 @v-atulyadav |
|
@niralishah-crest @jayeshprajapaticrest DefaultAzureCredential is not recommended for Prod env. It might put the user data at risk. Ask is simple avoid using DefaultAzureCredential. You can use any other credential type. And yes, those are supported in Azure Gov. For example, using ClientSecretCredential , @jayeshprajapaticrest Please get the Tenable App Data Connector updated. DefaultAzureCredential is being used there as well. |
|
@rahul0216 @v-atulyadav |
@jayeshprajapaticrest There is another review comment. Please look into that. |
|
@rahul0216 We are currently working on Tenable, but since this is a separate project and already includes the changes mentioned above, could you please proceed with the review and merge of this PR? Our customer has requested that these changes be merged at the earliest. |
Hi @jayeshprajapaticrest, I'm not talking about Tenable change. You have updated "WEBSITE_RUN_FROM_PACKAGE" parameter. That change will cause function app run to fail. This parameter points to the location of zip file. So, I'm suggesting to correct it. Update it to https://github.com/Azure/Azure-Sentinel/raw/master/Solutions/Vectra%20XDR/Data%20Connectors/VectraDataConnector/VectraXDR321.zip |
|
@rahul0216 As per the standard approach, we need to provide the shorthand URL to WEBSITE_RUN_FROM_PACKAGE rather than hardcoding the direct ZIP file URL. We have followed the same process for all other integrations, and I have already raised PRs for those, which have been merged. As I understand it, the reviewer is responsible for mapping the actual ZIP file URL to the provided shorthand URL in the Microsoft side. @v-atulyadav |
|
@v-atulyadav @rahul0216 |
|
Hi @jayeshprajapaticrest, @fenil-savani, The point here is not about mapping the URL to the ZIP file, the concern is that when a ZIP file already exists, a new one should not be created unnecessarily. Ideally, all required changes should be incorporated into the existing ZIP to avoid redundant files.
|
|
@v-atulyadav @rahul0216 As per the comment, we've removed the new zip file and updated the code in existing zip only. Can you please review it and merge it if no other changes are required? |
| "Azure_Resource_Group_Name": "[resourceGroup().name]", | ||
| "Azure_Subscription_Id": "[subscription().subscriptionId]", | ||
| "WEBSITE_RUN_FROM_PACKAGE": "https://aka.ms/sentinel-VectraXDR320-functionapp" | ||
| "WEBSITE_RUN_FROM_PACKAGE": "https://aka.ms/sentinel-VectraXDR321-functionapp" |
There was a problem hiding this comment.
This will fail. Add the absolute path of updated zip file.
|
@rahul0216 In this case, since the existing ZIP was updated, we later encountered escalation cases where customers experienced failures after the PR was merged and made available in the repository. To address the situation, we supported the customer immediately, even at late hours, and resolved the issue. In previous cases, we have added a new ZIP file for other integrations when significant changes were introduced, and this approach was reviewed and accepted. Going forward, it would be great if we can align on the most suitable approach for such scenarios to minimize risks and ensure a smoother experience for both customers and the team. |

Reason for Change(s):
Version Updated:
Testing Completed: