Support non-TLD resolving / IP HostNames #566
Labels
No Label
abra
abra-gandi
awaiting-feedback
backups
bug
build
ci/cd
community organising
contributing
coopcloud.tech
democracy
design
documentation
duplicate
enhancement
finance
funding
good first issue
help wanted
installer
kadabra
performance
proposal
question
recipes.coopcloud.tech
security
test
wontfix
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/organising#566
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
Using an SSH config block where the
Host
is a local / non-TLD resolving nameProduces the following error
When I add the following entry to my
/etc/hosts
fileThis allows
abra
to succeed in connecting to my serverI assume this is because
abra
is doing (or not) something other CLI tools likessh
orgit
which can handle such non-resolvingHost
values and just using the IP address.I think it would be nice for abra to handle such user configurations and not require users to add to their
/etc/hosts
file. The SSH documentation should reflect this constraint.abra
runsssh -G <hostname>
under the hood and parses the output to grab the SSH details. It should have resolved this succesfully,--debug
should tell you more. I think it's an issue in theserver add
implementation, it demands that the domain it is passed be publicly reachable:0643df6d73/cli/server/add.go (L125-L179)
It's trying to resolveeotl-sandbox
. Shouldserver add
also perform assh -G ...
trick to resolve the underlying SSH configHostname <...>
entry foreotl-sandbox
?Upon running
abra --debug
on another server with the same SSH config block, it produces a bit more verbose feedback for debugging.Note: the stacktrace printed numerous
\n
which failed to properly render as line breaks, but i'll open a separate issue for that.I'm not sure what you mean here!
abra server add
receiveseotl-sites
and checks, doeseotl-sites
correspond to an ipv4 address? Then it fails. i'm proposing we adjust this functionality to check ifeotl-sites
matches a SSH configHost
entry and pull theHostname
field to get the thing that does have a ipv4 address.I think this should work seamlessly and fix this issue.
An issue with allowing
Host
values like i'm using is when setting up apps liketraefik
the non-TLD hostname is shown, which is not ideal from DX (developer experience) perspective.Looking at the data added to
~/.abra/servers/eotl-sandbox/traefik.eotl-sandbox
I see this:Which i'm assuming that will cause other problems once deployed. But maybe not? So we should probably make abra save the
Hostname
field, which then MUST be a resolvable domain name, if I understand your comment above @decentral1seYes, Traefik would try to generate a certificate for
traefik.eotl-sandbox
, will fail, so routing won't work.Is
49.12.102.35
internet-accessible? If so then either using that as the server name, or adding a DNS record for it, would work.If not, we're in slightly uncharted territory with LAN/VPN-only apps; supporting them (e.g. using self-signed or manually-provided certs) is possible, but I think that a lot of Co-op Cloud implementation bakes in the assumption that apps are deployed on an internet-facing server, the changing of which might be a bit of an involved project.
Ah looks like this might be coming already in coop-cloud/abra#398?
Abra: support non-TLD resolving / IP HostNamesto Support non-TLD resolving / IP HostNames