-
Notifications
You must be signed in to change notification settings - Fork 99
Azure OIDC accounts #2004
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
Azure OIDC accounts #2004
Conversation
|
This pull request has been linked to Shortcut Story #58116: Docs. |
| # This script will create a new service principal for you to use in Octopus Deploy using the Az PowerShell modules. This will work with both PowerShell and PowerShell Core. | ||
| # this script will create a new Azure AD App Registration | ||
| $AzureTenantId = "2a681dca-3230-4e01-abcb-b1fd225c0982" # Replace with your Tenant Id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Is there a reason this has the tenant specified? This is a pre-existing part of the docs so I'm happy for it to be left as is, the inconsistency is just a bit odd.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the Azure Active Directory tenant , not an Octopus one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤦♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a couple of questions/suggestions
-
Should we mention the
Octopus.OpenIdConnect.Jwtvariable that gets set and used for token exchange? This could be useful for customers looking to handle their own token exchanges in scripts. -
Can we mention supported tool versions somewhere? In particular for terraform the
azurermterraform provider we require a minimum version of3.22. Azure cli added support for MSAL in 2.30 which is required for the az login ... --federated-token command
|
|
||
| ## Authenticating using OpenID Connect with third party services and tools | ||
|
|
||
| If you have a third-party service or tool that supports OpenID Connect, you can add any OIDC account variable into your projects variable set and use the `Octopus.OpenIDConnect.Jwt` variable to get access to the request token that can be used for authenticating. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I was mistaken before, when using the variables it should be <AccountName>.OpenIDConnect.Jwt
IsaacCalligeros95
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's just the variable name to update when using project variables, other than that LGTM
hnrkndrssn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nit but looks good otherwise.
Co-authored-by: Henrik Andersson <[email protected]>
[sc-58116]
PR adds descriptions of main Azure OIDC functionality and refactors the supplied scripts to pull the common bits (create service principal) and specific bits (create password for service principal, create federated creds for service principal)
Adds overview of configuration for OIDC
Adds brief overview of signing keys