Consolidate SSH handling #255
Reference in New Issue
Block a user
No description provided.
Delete Branch "conslidate-ssh"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is a breaking change. Docs PR is coop-cloud/docs.coopcloud.tech#124
Change log:
abracan no longer install docker, initialise swarm and the proxy network. It will check if docker exists and is in swarm mode or not and error out accordingly. We leave the provisioning to tools that are designed for that.abra server add <host>is the only interface now. The<host>should correspond to aHost <host>entry in your~/.ssh/configor in anInclude <file>statement (hosts are retrieved viassh -G <host>). This means "how doesabrainteract with SSH is 1) do you have an~/.ssh/configentry for<host>2) can youssh <host>successfully? 3) there is no 3. It's an easier mental model and also the wayabra-bashworks, hence, less weird obscure errors. Public<host>names are still required.abrano longer tries to do the TOFU host key verification prompt. We follow the praxis of the Docker cli itself and just give up when host keys are not validated. We leave it to folks to ssh and verify themselves.Refactored internal docker client creation & validation to only happen at command initialisation and be threaded down into the internals. It's easier to reason about where things might be going wrong for SSH connections in the code now.
Basically all of the custom SSH handling code is gone now! SSH connection building is done in one place and validated in one place.
--localonserver addstill works, error messages are arguably better now.Concerns?
cef9eddb1dtobdfe6ad1f7bdfe6ad1f7to9b2510108b9b2510108bto59d23d420659d23d4206to2f59b185722f59b18572to99757a2ae699757a2ae6tod9eb0d9cbfWIP: consolidate SSH handlingto Consolidate SSH handlingd9eb0d9cbftoa0d3a0abcfa0d3a0abcfto4bcdb4e3cf4bcdb4e3cftoa0ba70352ba0ba70352bto05d5f2700105d5f27001toc1007adb7e