-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GHA Pipeline: Add OIDC support #408
Comments
Related: Azure/azure-cli#20582 |
Just wondering - long term would we want to actually expose the I wonder if we could do something similar long term - maybe start with having folks author their own |
Yes, fics.json should be dynamic based on what they want to do. |
I would propose splitting this issue into:
What do you think? |
I updated the command name, that was old. We'll need to support both types of login until they deprecate non-oidc approach. OIDC adds a lot more concept counts and potential things to go wrong, so we have to be cautious about going full in on it right now. |
Draft supports OIDC, which we can learn from their impl: https://github.com/Azure/draft#commands The Azure CLI will have better OIDC support in their next release. Please ping me whomever picks this up. |
This probably impacts the work we want to do for |
I investigated the azure/draft OIDC setup-gh command and it is doing the same thing that my oidc.sh script does. It heavily uses To implement OIDC in azd we'll need to: Implement the flow found in my oidc.sh script but using the Azure AD REST APIs directly or Go SDK. We may also add these features to the Azure ID libs: |
The command will be something like:
azd pipeline config --auth-type oidc
Please see this implementation to see everything we need to script to get OIDC setup:
https://github.com/jongio/github-azure-oidc/blob/main/oidc.sh
We'll want to include a
fics.json
file to help the devs understand what they are doing and is a good way to visualize what the FICs look like in JSON format.https://github.com/jongio/github-azure-oidc/blob/main/fics.json
Here's a video that walks through all the concepts involved with OIDC: https://youtu.be/r5QdsjjdRDs
We have a dependency on the Related: Azure/azure-cli#20582
But we can call the graph REST API directly as I do in the above script until that is implemented.
We will use the
azure/login
action to support this, so the workflow included with the template will need to be updated to support OIDC or AZURE_CREDENTIALS. We might need to have different workflow files based on the authtype.The text was updated successfully, but these errors were encountered: