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

Recreate REST client after starting a workspace #431

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

aaronlehmann
Copy link
Contributor

maybeWaitForRunning can take indefinitely long because it prompts for confirmation, and in that time, client certificates can expire. Start setup fresh after this call to make sure the REST client uses the latest certificates.

@bcpeinhardt
Copy link
Collaborator

Hello! Sorry my morning got stacked with meetings.
Would you mind adding a short description to the Unreleased section of the changelog?

maybeWaitForRunning can take indefinitely long because it prompts for
confirmation, and in that time, client certificates can expire. Start
setup fresh after this call to make sure the REST client uses the latest
certificates.
@aaronlehmann
Copy link
Contributor Author

Done

@bcpeinhardt bcpeinhardt merged commit 242a517 into coder:main Feb 4, 2025
2 checks passed
@aaronlehmann aaronlehmann deleted the recreate-rest-client branch February 4, 2025 21:39
aaronlehmann added a commit to aaronlehmann/vscode-coder that referenced this pull request Feb 19, 2025
This is a followup to coder#431. It addresses the need to also recreate the
REST client used inside `maybeWaitForRunning`, since it makes API calls
before returning to `setup`.
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