简体   繁体   English

Azure Key Vault 访问上的间歇性 401

[英]Intermittent 401 on Azure Key Vault access

This evening, we started noticing intermittent 401 UnAuthorized responses in Application Insights regarding Key Vault access ("/secrets").今天晚上,我们开始注意到 Application Insights 中有关 Key Vault 访问(“/secrets”)的间歇性 401 UnAuthorized 响应。 Some requests succeed, about half of them (or more) are failing.一些请求成功,其中大约一半(或更多)失败。

Is anyone else seeing the same behavior?有没有其他人看到同样的行为?

For random infrequent errors, please give some time and refresh to see the difference, it may be server or cache errors.对于随机的不常见错误,请给一些时间并刷新以查看差异,可能是服务器或缓存错误。

In other cases: Please check:在其他情况下:请检查:

  1. If the keyvaults from which the secrets is received has expired tokens/keys.如果从中接收秘密的密钥库具有过期的令牌/密钥。
  2. If their activation date is varied.如果它们的激活日期不同。 Sometimes it may be due to subscription issue,有时可能是由于订阅问题,
  3. In that case make subscription that has to be as default for current account that you are working on,在这种情况下,订阅必须作为您正在处理的当前帐户的默认值,

Please login into Azure CLI and list the accounts:请登录 Azure CLI 并列出帐户:

az account list --output table

Make the actual subscription which has the azure KeyVault as the default subscription:将具有 azure KeyVault 的实际订阅设为默认订阅:

az account set --subscription "<your subscription name>"
  1. Also please make sure if the following are given correct: key vault tenant ID, Client ID,Client secret (if used) And also Resource value to be corrrect: https%3A%2F%2Fvault.azure.net (URL encoded)另请确保以下内容是否正确:密钥库租户 ID、客户端 ID、客户端密码(如果使用)以及要正确的资源值: https%3A%2F%2Fvault.azure.net (URL 编码)

Reference : troubleshooting-401 - Azure Key Vault |参考疑难解答-401 - Azure Key Vault | Microsoft Docs 微软文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM