-
Notifications
You must be signed in to change notification settings - Fork 44
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
Add helper for setting up MicroCloud proxy #287
Conversation
5e35c6b
to
e5c9ac1
Compare
@roosterfish @markylaing This one is now ready for review, thanks. |
Ah crap, the microcluster changes clash with MicroCeph. I guess this is blocked on MicroCeph updating to the latest microcluster. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I think it'd be worth splitting this into two PRs though. One for the dependency update and another for the auth proxy helpers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good!
This applies a proxy to a microcluster client for a different service, which instead sends the request to be handled by the MicroCloud daemon, which then forwards it to the unix socket of the corresponding service. If a secret is given, it sets `InsecureSkipVerify` so that we can skip TLS in favour of the pre-cluster-formation auth secret in the request header. Signed-off-by: Max Asnaashari <[email protected]>
Signed-off-by: Max Asnaashari <[email protected]>
Signed-off-by: Max Asnaashari <[email protected]>
Should be merged after #259
In response to reviews from #259, I've added some additional commits to update the microcluster dependency, fix contexts, and add 2 new helpers:
UseAuthProxy
which applies the auth proxy used to manage the API of other services to a microclusterClient
. This is now used in place of manually applying the proxy all over the place.AuthProxy
which returns the actual proxy implementation, so we can also reduce the duplication for LXD's client which is not the same structure asmicrocluster
's.