-
Notifications
You must be signed in to change notification settings - Fork 292
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
Support Managed Identity login for self-hosted runner #336
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MoChilia
had a problem deploying
to
Automation test
June 8, 2023 06:16
— with
GitHub Actions
Failure
YanaXu
reviewed
Jun 9, 2023
MoChilia
had a problem deploying
to
Automation test
August 15, 2023 07:17
— with
GitHub Actions
Failure
MoChilia
had a problem deploying
to
Automation test
August 15, 2023 07:17
— with
GitHub Actions
Failure
MoChilia
had a problem deploying
to
Automation test
August 15, 2023 07:17
— with
GitHub Actions
Failure
MoChilia
temporarily deployed
to
Automation test
August 15, 2023 07:17
— with
GitHub Actions
Inactive
MoChilia
temporarily deployed
to
Automation test
August 15, 2023 07:17
— with
GitHub Actions
Inactive
MoChilia
temporarily deployed
to
Automation test
August 15, 2023 07:17
— with
GitHub Actions
Inactive
MoChilia
temporarily deployed
to
Automation test
August 15, 2023 07:17
— with
GitHub Actions
Inactive
MoChilia
had a problem deploying
to
Automation test
August 15, 2023 07:17
— with
GitHub Actions
Failure
MoChilia
temporarily deployed
to
Automation test
August 15, 2023 07:18
— with
GitHub Actions
Inactive
MoChilia
temporarily deployed
to
Automation test
August 15, 2023 07:18
— with
GitHub Actions
Inactive
MoChilia
temporarily deployed
to
Automation test
August 15, 2023 07:18
— with
GitHub Actions
Inactive
MoChilia
temporarily deployed
to
Automation test
August 15, 2023 07:18
— with
GitHub Actions
Inactive
MoChilia
temporarily deployed
to
Automation test
August 15, 2023 07:18
— with
GitHub Actions
Inactive
MoChilia
temporarily deployed
to
Automation test
August 15, 2023 07:18
— with
GitHub Actions
Inactive
MoChilia
temporarily deployed
to
Automation test
August 15, 2023 07:18
— with
GitHub Actions
Inactive
MoChilia
temporarily deployed
to
Automation test
August 15, 2023 07:18
— with
GitHub Actions
Inactive
MoChilia
temporarily deployed
to
Automation test
August 15, 2023 07:18
— with
GitHub Actions
Inactive
MoChilia
temporarily deployed
to
Automation test
August 15, 2023 07:18
— with
GitHub Actions
Inactive
MoChilia
temporarily deployed
to
Automation test
August 15, 2023 07:18
— with
GitHub Actions
Inactive
MoChilia
temporarily deployed
to
Automation test
August 15, 2023 08:06
— with
GitHub Actions
Inactive
MoChilia
temporarily deployed
to
Automation test
August 15, 2023 08:06
— with
GitHub Actions
Inactive
MoChilia
temporarily deployed
to
Automation test
August 15, 2023 08:06
— with
GitHub Actions
Inactive
MoChilia
temporarily deployed
to
Automation test
August 15, 2023 08:06
— with
GitHub Actions
Inactive
MoChilia
temporarily deployed
to
Automation test
August 15, 2023 08:06
— with
GitHub Actions
Inactive
MoChilia
temporarily deployed
to
Automation test
August 15, 2023 08:06
— with
GitHub Actions
Inactive
MoChilia
temporarily deployed
to
Automation test
August 15, 2023 08:06
— with
GitHub Actions
Inactive
MoChilia
temporarily deployed
to
Automation test
August 15, 2023 08:06
— with
GitHub Actions
Inactive
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR is going to support both system- and user- assigned managed identity login for self-hosted runners on Azure VM.
What's new
auth-type
with value list[SERVICE_PRINCIPAL, IDENTITY]
to identify the type of authentication.auth-type: SERVICE_PRINCIPAL
withclientId
,tenantId
andclientSecret
detected in your input, we will attempt to login by using service principal with the secret.auth-type: SERVICE_PRINCIPAL
withclientId
andtenantId
detected in your input, we will attempt to login by using OIDC.auth-type: IDENTITY
withclientId
detected in your input, we will attempt to login by using user-assigned managed identity.auth-type: IDENTITY
withoutclientId
detected in your input, we will attempt to login by using system-assigned managed identity.In order not to introduce breaking change, we set the default value of
auth-type
to beSERVICE_PRINCIPAL
.About the parameter
subscription-id
This parameter used to be mandatory if
allow-no-subscriptions
is not enabled in previous version:login/src/common/LoginConfig.ts
Lines 79 to 81 in bed9773
However, the two parameters are not relevant.
allow-no-subscriptions
is used to login tenant-level account andsubscription-id
is used to specify which subscription to work. Not specifying a subscription should be allowed, then the Action will use the current, active subscription. Hence the limitation is removed in this version with only warning being reported:login/src/Cli/AzureCliLogin.ts
Lines 178 to 184 in 19aba32
About reading
creds
from JsonThe items in
creds
will not overwrite the individual parametersclient-id
,tenant-id
andsubscription-id
, but as supplementary.In the previous code,
creds
is not compatible with individual parameters. We usecreds
for login using service principal with secret and individual parameters forOIDC
login:login/src/main.ts
Lines 78 to 93 in 990b22f
In the new version, we aim to fetch the user's input credentials as much as possible:
login/src/common/LoginConfig.ts
Lines 35 to 42 in b3bc91b
The changes for README.md is in Update README.md for Managed identity #344.