Closed cmckeen closed 1 month ago
Hi @cmckeen , the federated credencial page looks fine. Could you also share the screenshot of managed identity metadata? I want to check if you're using the right subscritpion id, tenant id and user managed identity client id.
Sure, I believe this is what you're looking for below. One thing you'll notice is that the subscription ID is different from what is being passed into the login action. The reason for this is that the managed identity has an Azure role assignment of Owner on the subscription_id that we're specifying (the one we're desiring to interact with), but the identity itself does not belong to that subscription. I'm wondering now if that's correct and we should instead be specifying the subscription_id of the identity itself.
Hi @cmckeen,
I can't tell where is wrong in the configuration. What I can see from above:
Could you double confirm if
tenant-id: 4ecd6548-e33b-4b9d-9986-bd3c229846c6 matches configuration (I did have a copy/paste error that I found in my originally posted output - I've corrected this in my edit and confirmed in the original workflow that this does indeed match the tenant-id).
Confirmed that the managed identity has the Contributor permission on that subscription-id.
I am closing this issue out though - the user that I'm working with found an alternative pipeline that is working that I don't know the details of and does not wish to continue troubleshooting here. Thanks for your help!
I'm havving a lot of issues deploying my test Api to azurre using continuos deployment it can not login to azurre correctly even anyone could help me? thanks
Hi @CodePhys , Please search the similar issues in this repo (including the closed issues). I think it's because the federated credential configuration or GitHub environment is not correct or does not match. If you can't find the reason, please create a new issue with all screenshots like this issue. Please note: this issue is closed and we may miss the new comments in closed issues.
Hello,
I'm attempting to run the login action like the following:
This results in the following workflow output:
I've confirmed that the
client-id
,tenant-id
, andsubscription-id
are all correct. Theclient-id
corresponds with this managed identity's federated credential:From what I can tell, the requested assertion subject
repo:meltwater/meltwater-chatbot:environment:dev
is present in the federated credential, so I'm not sure why it is not being recognized. Any assistance would be greatly appreciated!