Skip to content
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

add support for Azure Data Factory SHIR Key #1327

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

RachidAZ
Copy link

Description:

This PR will detect the Azure Data Factory Self-Hosted Integration Runtime Key, that is used to configure the desktop client that will receive the commands and the data from the ADF control plane to be processed.
details about this service can be found here: https://learn.microsoft.com/en-us/azure/data-factory/create-self-hosted-integration-runtime?tabs=data-factory#install-and-register-a-self-hosted-ir-from-microsoft-download-center

SHIR Key format: IR@{GUID}@{string_azure _resource_name}@{string_azure_resource_location}@{string_base64}

Checklist:

  • Does your PR pass tests?
  • Have you written new tests for your changes?
  • Have you lint your code locally prior to submission?

@RachidAZ
Copy link
Author

Hello @zricethezav , did you have the chance to check this PR

RuleID: "datafactory-shir-token",
// SHIR Key format: IR@{GUID}@{string_azure _resource_name}@{string_azure_resource_location}@{string_base64}
Regex: generateUniqueTokenRegex(`IR@[0-9a-zA-Z-]{36}@(.*?)@[0-9a-zA-Z\-=]*@[A-Za-z0-9+\/=]{44}`, false),
Keywords: []string{"IR"},
Copy link
Collaborator

Choose a reason for hiding this comment

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

@RachidAZ Could IR become IR@ or is the @ not guaranteed?

Copy link
Author

Choose a reason for hiding this comment

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

@zricethezav I am not sure whether @ is guaranteed, "IR" should do the job :)

Copy link
Collaborator

Choose a reason for hiding this comment

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

More specificity ensures better performance. Please replace IR with IR@ otherwise we could see a significant performance hit since IR is going to trigger lots of regex checks

Copy link
Author

Choose a reason for hiding this comment

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

@zricethezav makes sense, updated. Thanks.

@RachidAZ
Copy link
Author

RachidAZ commented Mar 6, 2024

Hello @zricethezav , any chance to merge this? Thanks

@RachidAZ
Copy link
Author

@zricethezav 2 months since the latest changes, could you please help to merge this? Appreciate your time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants