Is there any option or configuration in MIP SDK APIs to resolve the microsoft URL *.protection.outlook.com with configured proxy ?

Sumit Kumar 0 Reputation points
2024-06-28T10:31:12.78+00:00

Hi,

We built the application using mip sdk 1.12.61 version to decrypt the RMS protect files and labels.

Firewall rules and port requirements are addressed.

Azure Information Protection Firewalls and network infrastructure requirements: https://learn.microsoft.com/en-us/azure/information-protection/requirements#firewalls-and-network-infrastructure.

Azure Information Protection Network Connectivity (ports) requirements: https://learn.microsoft.com/en-us/microsoft-365/enterprise/urls-and-ip-address-ranges?view=o365-worldwide#microsoft-365-common-and-office-online.

Proxy Support is added in application as mentioned in proxy concept https://learn.microsoft.com/en-us/information-protection/develop/concept-mip-proxies

our application is linux (centos-7) based and is using http_proxy environment variable for mip sdk.

export http_proxy=http://192.168.1.1:8080

export https_proxy=https://192.168.1.1:8080

But we are seeing below errors in mip sdk logs.

Error 2024-03-26 13:55:04.152 policy_profile_impl.cpp:504 test_app (12226) "Failed API call: profile_add_engine_async Failed with: [NetworkError: 'Failed to send HTTP request with error code 'generic:1' Inner exception: [http_exception: 'Error resolving address'], NetworkError.Category=Unknown, HttpRequest.SanitizedUrl=https://dataservice.protection.outlook.com/PsorWebService/v1/ClientSyncFile/MipPolicies, HttpRequest.Id={4DF422BE-821F-41C6-9C97-436CDDCFEF2F}, CorrelationId=069867da-61fb-4c50-aa60-0369a9bc2531, CorrelationId.Description=PolicyProfile']" virtual std::shared_ptr

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
5,085 questions
Microsoft Purview
Microsoft Purview
A Microsoft data governance service that helps manage and govern on-premises, multicloud, and software-as-a-service data. Previously known as Azure Purview.
1,219 questions
{count} votes

1 answer

Sort by: Most helpful
  1. PRADEEPCHEEKATLA-MSFT 90,146 Reputation points Microsoft Employee
    2024-07-01T05:50:59.6566667+00:00

    @Sumit Kumar - Thanks for the question and using MS Q&A platform.

    Based on the provided information, it seems that you have already configured the proxy settings in your application using the http_proxy environment variable. However, you are still seeing errors in the MIP SDK logs when trying to resolve the Microsoft URL *.protection.outlook.com.

    One thing to check is whether the proxy server you are using supports resolving domain names. Some proxy servers may not have this capability, which could cause issues when trying to resolve Microsoft URLs.

    Another thing to try is to add the Microsoft URLs to the no_proxy environment variable. This variable specifies a comma-separated list of domain names that should not be proxied. You can try adding *.protection.outlook.com to this variable and see if it resolves the issue.

    export no_proxy=*.protection.outlook.com

    If neither of these solutions work, it is possible that there may be an issue with the MIP SDK itself. In this case, you may open a support ticket for further assistance.

    Hope this helps. Do let us know if you any further queries.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.