Skip to content
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

feat: Added a known issue when using an SPN for OIDC #1850

Merged
merged 4 commits into from
Feb 11, 2025
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,14 @@ It is highly recommended to start leveraging Option 1 below to adopt OpenID Conn

{{% expand title="➕ Option 1 [Recommended]: OIDC - Configure a federated identity credential" %}}

{{% notice style="warning" title="Using a Managed Identity for OIDC" %}}

Make sure to use a Managed Identity for OIDC as instructed below, **not** a Service Principal. The OIDC token created for a Managed Identity can be refreshed for up to 24 hours, while the maximum lifetime for a Service Principal-based OIDC token is only about 1 hour - which is not sufficient for many deployment pipelines.
AlexanderSehr marked this conversation as resolved.
Show resolved Hide resolved

For more information, please refer to the official [GitHub documentation](https://github.com/marketplace/actions/azure-login#login-with-openid-connect-oidc-recommended).

{{% /notice %}}

1. Create a new or leverage an existing user-assigned managed identity with at least `Contributor` & `User Access Administrator` permissions on the Management-Group/Subscription you want to test the modules in. You might find the following links useful:
- [Create a user-assigned managed identity](https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/how-manage-user-assigned-managed-identities#create-a-user-assigned-managed-identity)
- [Assign an appropriate role to your user-assigned managed identity](https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/how-manage-user-assigned-managed-identities#manage-access-to-user-assigned-managed-identities)
Expand Down