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

Managed Identity - Added file-based detection for Azure Arc #7225

Merged
merged 8 commits into from
Aug 9, 2024

Conversation

Robbie-Microsoft
Copy link
Collaborator

@Robbie-Microsoft Robbie-Microsoft commented Jul 29, 2024

If an Azure Arc Managed Identity's "IDENTITY_ENDPOINT" and "IMDS_ENDPOINT" environment variables are undefined, the Managed Identity can still be determined to be an instance of Azure Arc if it has a "himds" executable in the specified path for Windows or Linux.

Manual tests were successful on both Windows and Linux.

@bgavrilMS
Copy link
Member

@trwalke - pls review this.

// get the expected Windows or Linux file path of the himds executable
const fileDetectionPath: string =
AZURE_ARC_FILE_DETECTION[process.platform as keyof FilePathMap];
try {
Copy link
Member

Choose a reason for hiding this comment

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

add logging statements for these logic branches

Copy link
Collaborator Author

@Robbie-Microsoft Robbie-Microsoft Aug 8, 2024

Choose a reason for hiding this comment

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

The logging for this logic exists already on line 142

@Robbie-Microsoft Robbie-Microsoft merged commit 630605c into dev Aug 9, 2024
8 of 9 checks passed
@Robbie-Microsoft Robbie-Microsoft deleted the arc_file_detection branch August 9, 2024 17:31
@Robbie-Microsoft Robbie-Microsoft restored the arc_file_detection branch August 9, 2024 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
msal-node Related to msal-node package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Managed Identity - Add file based detection for azure arc
3 participants