简体   繁体   English

Azure Service Fabric和托管服务身份

[英]Azure Service Fabric and Managed Service Identities

I'm about the explore the use of MSI inside Service Fabric. 我打算探讨在Service Fabric中使用MSI的方法。 I can enable MSI on the Scale Set through ARM - no problem there. 我可以通过ARM在Scale Set上启用MSI-那里没有问题。

My Service Fabric Cluster runs many applications and many of them has its own App Registration. 我的Service Fabric群集运行许多应用程序,其中许多都有自己的应用程序注册。 At the moment we have stored the clientId/secret in appmanifest for these apps. 目前,我们已经在这些应用的appmanifest中存储了clientId / secret。

With MSI I can store the credentials in keyvault and fetch the clientId/secret used for the each app, but that seem kind of wrong. 使用MSI,我可以将凭据存储在keyvault中,并获取每个应用程序使用的clientId / secret,但这似乎是错误的。

Now my question: Would it be possible to set up some kind of delegation between the MSI app registration and the apps running on the Service Fabric? 现在我的问题是:是否可以在MSI应用程序注册和Service Fabric上运行的应用程序之间建立某种委派? Just to avoid having Client Secrets stored at all 只是为了避免完全存储客户机密

If you are using the clientid/client secret to acquire an access token, instead maybe you allow the MSI app registration to access the other apps and then acquire tokens using the MSI principal by means of the ' on behalf of ' approach? 如果您正在使用clientid / client secret获取访问令牌,则可以允许MSI应用程序注册访问其他应用程序,然后使用MSI主体通过“ 代表 ”方法获取令牌?

Relevant code here . 相关代码在这里

This way you only need to know the resourceID of the service you want to call, which is not a secret. 这样,您只需要知道要调用的服务的resourceID,这不是秘密。

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

相关问题 使用 Azure 托管标识进行服务到服务调用 - Use Azure Managed Identities for service to service calls Azure 中服务主体和托管标识之间的区别 - Difference between Service Principal and Managed Identities in Azure 使用用户分配的托管标识进行 Azure 服务总线身份验证 - Azure Service Bus authentication with User Assigned Managed Identities Azure AD在租户/订阅中共享托管服务身份 - Azure AD share Managed Service Identities across tenants/subscriptions 是否应将托管服务标识用于从Console App进行Azure App Service访问 - Should Managed Service Identities be used for Azure App Service access from Console App 使用Azure托管服务身份扩展App Service计划,但未列出 - Using Azure Managed Service Identities to scale App Service Plan, but none listed 支持托管服务标识的On-Behalf-of流 - Supporting the On-Behalf-of flow with managed service identities 如何使用托管身份从 Azure Kubernetes 服务 (AKS) 访问 Azure Key Vault (AKV) - How to access Azure Key Vault (AKV) from Azure Kubernetes Service (AKS) using Managed Identities 使用托管标识从 JAVA Azure 应用服务访问 Azure Key Vault - Accessing Azure Key Vault from JAVA Azure App Service using managed identities 将托管身份添加到 Azure 服务结构的正确方法 - Right way to add Managed Identity to Azure service fabric
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM