Skip to content

v2: Backport websocket client functions#239

Merged
masnax merged 5 commits into
canonical:v2from
roosterfish:backport_websocket
Aug 21, 2024
Merged

v2: Backport websocket client functions#239
masnax merged 5 commits into
canonical:v2from
roosterfish:backport_websocket

Conversation

@roosterfish
Copy link
Copy Markdown
Contributor

Backports #237 into v2.

@roosterfish roosterfish requested a review from masnax August 20, 2024 15:23
Copy link
Copy Markdown
Contributor

@masnax masnax left a comment

Choose a reason for hiding this comment

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

Can you please use git cherry-pick -x for the commits so we can use the commit message to track that they were backported?

This allows opening up mTLS connections to remotes for which the server certificate
isn't yet known to the local instance of microcluster.

This is useful during the pre-init phase or to reach potential remote microcluster members that
haven't yet joined the cluster.

Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
(cherry picked from commit 2e0b2ba)
This allows reusing the URL merging techniques.

Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
(cherry picked from commit 5816e40)
This allows opening up a websocket connection to the microcluster API using
either the local or remote client.

Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
(cherry picked from commit 31082c3)
Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
(cherry picked from commit 8959957)
Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
(cherry picked from commit 5719bea)
@roosterfish
Copy link
Copy Markdown
Contributor Author

Can you please use git cherry-pick -x for the commits so we can use the commit message to track that they were backported?

Ah yes, fixed.

@masnax masnax merged commit fe576ed into canonical:v2 Aug 21, 2024
@roosterfish roosterfish deleted the backport_websocket branch August 21, 2024 16:30
masnax added a commit to canonical/microcloud that referenced this pull request Oct 8, 2024
This PR adds the explicit trust establishment to MicroCloud according to
the spec in
https://discourse.ubuntu.com/t/explicit-trust-establishment-mechanism-for-microcloud/44261.

The PR adds the EFF wordlist with over 1300 lines so please consider
this for the review.
The license information is based on https://www.eff.org/copyright.

It has the following dependencies which have to be met before it can be
marked as ready:
* LXD: canonical/lxd#13969
* MicroCluster: canonical/microcluster#239

In addition we are currently waiting on MicroCeph to merge the `v2` of
MicroCluster which is also are requirement for this PR.

Open TODO's:

- [x] Align test suite to work with updated questions
- [x] Release minor version of MicroCluster to allow pulling the new
websocket client functions in (we will track the commit for now)
- [x] Update this PR's `go.mod` file if the dependencies are met
- [x] Check for additional unit testing capabilities for the changes in
this PR
- [x] Remove the TODO (regarding
https://github.com/canonical/microcluster/blob/a4c5273899ac294750d63089f81f78fd1894df67/internal/rest/resources/api_1.0.go#L21-L25)
after importing MicroCluster `v2`
- [x] Update the docs (e.g. preseed)
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