refactor: adjust behaviour for bootstrap on public clouds#1829
Merged
kian99 merged 2 commits intocanonical:v3from Jan 29, 2026
Merged
refactor: adjust behaviour for bootstrap on public clouds#1829kian99 merged 2 commits intocanonical:v3from
kian99 merged 2 commits intocanonical:v3from
Conversation
kian99
commented
Jan 23, 2026
b909511 to
7682b8a
Compare
SimoneDutto
approved these changes
Jan 27, 2026
7682b8a to
0ddcc90
Compare
0ddcc90 to
955500a
Compare
This file contains hidden or 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
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 resolves some TODOs in the bootstrap and upgrade logic. Specifically the one that was targetted mentioned,
I checked whether our bootstrap logic supports bootstrapping onto public clouds. I was mostly able to successfully bootstrap to AWS with
./jaas bootstrap aws/us-east-1 my-test-controller 3.6.12. I say mostly because the machine was provisioned but the bootstrap failed near the end when the controller couldn't reachhttps://jimm.localhost/.well-known/jwks.jsonwhich was obviously only running locally. I'm not keen on deploying everything to AWS just to test this further as I was able to prove to myself this works and the code indicates the same.Essentially the problem described in the TODO is that we shoudn't pass the cloud information to the StartBootstrap method if the cloud is a public cloud (i.e. AWS, Azure, etc). While it's not necessary to send the cloud info in these cases, it also doesn't do any harm, the bootstrap logic only writes these details to the filesystem if the cloud is not a public one. I did some renaming of the
PersonalCloudfield to justCloudwith some docstrings to hopefully make it clear (we pass these params around a lot so only some of the fields have docstrings).In the end, the only substantial change I made was to the CLI, where we now skip sending the cloud information if it's a public cloud. This change is not required, since again, the server will decide whether it needs to use the cloud information. But I decided it was better to omit it if we know it's not needed.
I've also done some minor refactoring of the bootstrap command tests to accompany the above change.
Fixes JUJU-8932
Engineering checklist