Skip to content

Conversation

TingluoHuang
Copy link
Member

@TingluoHuang TingluoHuang commented Apr 3, 2025

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
@@ -88,7 +90,8 @@ public async Task<CreateSessionResult> CreateSessionAsync(CancellationToken toke
try
{
Trace.Info("Connecting to the Broker Server...");
await _brokerServer.ConnectAsync(new Uri(serverUrlV2), _creds);
_credsV2 = _credMgr.LoadCredentials(allowAuthUrlV2: true);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
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
9 checks passed
@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