使用 Azure Privatelink 配置雪花

时间:2021-02-16 14:13:47

标签: azure snowflake-cloud-data-platform azure-private-link azure-private-dns

我们配置了与 Snowflake 帐户的 Azure 专用链接连接。直接私有链接 URL <accountname>.<region>.privatelink.snowflakecomputing.com 按预期工作。 然而,我们的目标是在任何地方使用公共 URL <accountname>.<region>.azure.snowflakecomputing.com。它应该通过外部 VPN 中的私有端点解决。 我们在私有 DNS 区域 azure.snowflakecomputing.com 中设置了 A 记录。此 A 记录指向私有端点,nslookup <accountname>.<region>.azure.snowflakecomputing.com 确认:

enter image description here

然而它不起作用。在 TLS 握手期间返回了错误的证书。 使用 openssl 检查:

openssl s_client -showcerts -connect <accountname>.<region>.azure.snowflakecomputing.com:443

返回带有 CN = *.west-europe.privatelink.snowflakecomputing.com 的证书。看起来snowflake是根据源IP地址而不是源站点名称返回证书的。

enter image description here

问题:我做错了什么才能获得理想的行为? 这是否意味着雪花不希望使用具有私有端点的公共 URL?

1 个答案:

答案 0 :(得分:0)

截至今天,这是不可能的。 Snowflake 不支持此类 Azure 专用链接的使用。我们的想法是在任何地方使用相同的 URL,并通过 DNS 解析通过私有端点路由我们 VNET 内的流量。到今天为止是不可能的。仅使用直接私有链接 URL。相同的方法适用于存储帐户:https://docs.microsoft.com/en-us/azure/storage/common/storage-private-endpoints#dns-changes-for-private-endpoints