How to resolve "Error resolving address" with a proxy in MIP SDK for Linux

Sumit Kumar 0 Reputation points
2024-06-28T10:44:28.02+00:00

We are using MIP SDK 1.12.61 version with a C++ application on CentOS 7 to decrypt RMS-protected files and labels, but we are encountering "Error resolving address" messages in the logs. We have already addressed the firewall rules and port requirements, and added proxy support to the application using the http_proxy environment variable.

However, we noticed that the MIP application is performing DNS requests to the configured DNS server instead of resolving *.protection.outlook.com with the proxy, which is needed as our DNS server can only resolve internal URLs for security purposes. We would like to know if there is an option or configuration in the MIP SDK APIs to resolve the Microsoft URL *.protection.outlook.com with the configured proxy.

Error message from 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.
4,205 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,024 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sumit Kumar 0 Reputation points
    2024-07-01T11:10:48.8066667+00:00

    Thanks for the reply @PRADEEPCHEEKATLA-MSFT .

    I noticed that the header files for MIP SDK 1.12.61 version do not reference the 'proxy_configuration.h' file.

    I believe this version only supports setting the 'http_proxy' environment variable.

    Can you please tell me which version of MIP SDK added support for 'mip::ProxyConfiguration'?

    0 comments No comments