Add an early helpful error message if a username is provided during abra server add #930

Open
opened 2026-09-13 22:14:26 +00:00 by 3wordchant · 0 comments
Owner

If you do abra server add user@example.com, abra will happily oblige, just giving a warning about DNS:

$ abra server add user@example.com
INFO user@example.com successfully added
WARN unable to resolve IPv4 for user@example.com

But, in fact this is a broken situation where abra will try to connect to the hostname user@example.com for commands against that server.

For an operator following the new operator tutorial, the first sign of a problem is likely to be:

FATA traefik.user@example.com: unable to resolve IPv4 address: lookup traefik.user@example.com: no such host

I think it might be nice if abra warns about this situation as early as possible — maybe erroring out of abra server add if there's a @ character (and adding like an --allow-weird-hostnames or something if we think someone will ever truly have a hostname with an @ in it).

If you do `abra server add user@example.com`, abra will happily oblige, just giving a warning about DNS: ``` $ abra server add user@example.com INFO user@example.com successfully added WARN unable to resolve IPv4 for user@example.com ``` But, in fact this is a broken situation where abra will try to connect to the _hostname_ `user@example.com` for commands against that server. For an operator following the new operator tutorial, the first sign of a problem is likely to be: ``` FATA traefik.user@example.com: unable to resolve IPv4 address: lookup traefik.user@example.com: no such host ``` I think it might be nice if abra warns about this situation as early as possible — maybe erroring out of `abra server add` if there's a `@` character (and adding like an `--allow-weird-hostnames` or something if we think someone will ever truly have a hostname with an `@` in it).
3wordchant added the enhancement label 2026-09-13 22:14:26 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: toolshed/abra#930