Add an app identifier if there is no domain when listing apps #636
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
Some recipes like
backup-bot-two
don't have a domain because they won't be accessible by the internet.We need abra to be able to list what domain to use when managing this app though. When running
abra app ls
the app shows without a domainIf I don't remember what domain I used to create the app I will have to figure it out by running
ls .abra/server/<server>
and finding the folder name.It would be nice to have
abra ls
show that instead of having to run ls.(sorry for the poor table formating)
I would propose to use the appname (.env file name) as identifier instead of the domain. Or maybe only as fallback if the domain is not available. In the current implementation the appnames equals the domain per default, but it's still possible to rename the .env file to change the appname.
I like this idea
This but also consider them "internal" apps? Like in the third column of the proposed table, but as a secondary table could work too, so they're very distinctly separated.
@moritz @ammaratef45 @fauno Slightly off-topic but also not. I was thinking of even deprecating the
<domain>
in the CLI usage docs and using instead<app>
? WDYT? Related coop-cloud/abra#452I like the idea of replacing domain with app
I think you convinced me out of this. Gotta try to be less presuasive 😁
What I remember / what I now think: "app name" is an extra concept, and it's not worth introducing it for the sake of the 1% (unscientific) of recipes which don't have a domain.
My suggestion for the issue at hand is to say "every recipe has to have a domain even if in some cases it's just an identifier".
Oh yes, I remember that 😂 That seems like a reasonable take. I was also experimenting with just putting "N/A" in the cell for domain when not present 🤷 Unless I hear otherwise, I'll add this one to the pile to fix up.
decentral1se referenced this issue2024-12-30 00:27:34 +00:00
app name is not that of an extra concept, a bunch of recipe use that word either instead of domain or exchangeable with domain in their documentation and comments
I agree using app name may be less confusing if you mean:
But I'd still like to have a clear separation of which apps are publicly accesible (pass a domain check, have an URL I can open on a browser) and which are not. AFAIK only backup-bot-two is an internal app? I'd be happy if it shows a status page when I open https://backup-bot-two.server.org :B
@ammaratef45 fair point, there's probably some dangling inconsistency from when this conversation was had before. I think we should change all the references to
app_name
todomain
.As far as I know the only recipes which do not have a domain (that is, fully-qualified domain name) are:
HEADLESS=1
What I mean by "extra concept" is that currently
abra
just asks for "domain" duringapp new
.If we asked for "app name" as well (like we used to), that's two decisions everyone now has to make for about naming, for all apps they deploy.
And it seems to me that's question would mostly be a confusing waste of users' time, given that the other ~155 recipes don't need it.
It seems much more reasonable – if possibly a little silly – to say that all apps need a domain, even if it's an identifier, so
backup.example.com
doesn't resolve to anything.Alternatively, as a more-correct, more-work second option I would suggest saying every Co-op Cloud app has to have a domain because it has to have at least one webpage. Then we add a basic "it works" HTML page to the above 4 recipes.
From a security perspective I don't like the idea that the backup bot is reachable from the outside. It should not expose anything to the internet. But maybe this can be solve directly inside of traefik? So traefik will expose a "it works" status HTML page for apps that are running but not exposing any ports?