Skip to content

Support auth migration using authUrlV2 in Runner/MessageListener. - #3787

Merged
TingluoHuang merged 1 commit into
mainfrom
users/tihuang/authmigration
Apr 10, 2025
Merged

TingluoHuang merged 1 commit into
mainfrom
users/tihuang/authmigration

Conversation

@TingluoHuang

@TingluoHuang TingluoHuang commented Apr 3, 2025 •

Copy link
Copy Markdown
Member

We use var cred=LoadCredentials(false) for any connection to RunnerServer and ActionsRunServer.
We use var cred=LoadCredentials(true) for any connection to BrokerServer and RunServer.

In case any request to BrokerServer and RunServer hit exception, invoke HostContext.DeferAuthMigration() as needed.

https://github.com/github/actions-runner-admin/issues/1656

@TingluoHuang
TingluoHuang requested a review from a team as a code owner April 3, 2025 04:30
@TingluoHuang
TingluoHuang force-pushed the users/tihuang/authmigration branch from b61db0c to e21c2ee Compare April 3, 2025 04:42
{
Trace.Info("Connecting to the Broker Server...");
await _brokerServer.ConnectAsync(new Uri(serverUrlV2), _creds);
_credsV2 = _credMgr.LoadCredentials(allowAuthUrlV2: true);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TingluoHuang
TingluoHuang force-pushed the users/tihuang/authmigration branch from e21c2ee to ec9e8d8 Compare April 7, 2025 17:14
@TingluoHuang
TingluoHuang merged commit d5ccbd1 into main Apr 10, 2025
@TingluoHuang
TingluoHuang deleted the users/tihuang/authmigration branch April 10, 2025 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants