【发布时间】:2020-10-21 00:48:27
【问题描述】:
为此苦苦挣扎了一天,终于寻求帮助。我正在尝试使用 Azure Key Vault 在 Typescript 应用程序中存储一些配置。我在 Azure Active Directory 和 Key Vault 中创建了服务原则。在 Key Vault 中,我进入了角色分配,并为应用赋予了 Key Vault Secrets User 角色(应该提供列表和读取权限)。据我所知,我的应用程序已成功通过身份验证,但是当它请求密钥时,它会收到 403。我可能会遗漏哪一步?
表明身份验证成功的日志
azure:identity:info IdentityClient: [https://login.microsoftonline.com/38e3589f-a40f-4fe6-beee-f4028442450e/oauth2/v2.0/token] token acquired, expires on 1593536920022
记录失败
The user, group or application 'appid=355ca45f-a94f-43e6-9234-65c713965c9b;oid=524f25bb-ee3f-4216-8474-1f01fd79f1f8;iss=https://sts.windows.net/38e3589f-a40f-4fe6-beee-f4028442450e/' does not have secrets get permission on key vault '<MyVault>;location=westus2'. For help resolving this issue, please see https://go.microsoft.com/fwlink/?linkid=2125287
【问题讨论】:
标签: azure-keyvault service-principal