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 2 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="Known issue: Service Principal vs User-Assigned / Managed Identity" %}}

While it is possible to set federated credentials up for both a Service Principal and a Managed Identity, it is highly recommended to use the later.
eriqua marked this conversation as resolved.
Show resolved Hide resolved

Amongst other advantages, 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 at about 1 hour.

{{% /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