#631: remove -D on server add #448

Manually merged
coop-cloud merged 2 commits from ammaratef45/abra:removeDomainCheck into main 2024-11-27 19:48:32 +00:00
Member
https://git.coopcloud.tech/toolshed/organising/issues/631
ammaratef45 added 1 commit 2024-11-26 01:25:51 +00:00
remove -D on server add
Some checks failed
continuous-integration/drone/pr Build is failing
8ee1947fe9
decentral1se reviewed 2024-11-26 10:59:32 +00:00
decentral1se left a comment
Owner

Nice one @ammaratef45! That's a great start.

There are however still some places where domain checks are carried out. See EnsureDomainsResolveSameIPv4 also under abra app deploy ... which relates to toolshed/organising#631 (comment).

I think taking a scan of pkg/dns/..., seeing what is in there in terms of functions and where those get called will give you an overview of the logic. I think the idea is that domain checking happens once on the abra server add and from then on in, it's "up to you".

/cc @p4u1 @fauno

Nice one @ammaratef45! That's a great start. There are however still some places where domain checks are carried out. See `EnsureDomainsResolveSameIPv4` also under `abra app deploy ...` which relates to https://git.coopcloud.tech/toolshed/organising/issues/631#issuecomment-21662. I think taking a scan of `pkg/dns/...`, seeing what is in there in terms of functions and where those get called will give you an overview of the logic. I think the idea is that domain checking happens once on the `abra server add` and from then on in, it's "up to you". /cc @p4u1 @fauno
@ -122,3 +119,1 @@
of your ~/.ssh/config. Checks for a valid online domain will be skipped:
abra server add -D example`,
`,
Owner

Might seem like a nitpick but this "`" needs to be on the same line as the "default" or else a newline is created in the help output of abra which is inconsistent with the rest of the commands as far as I remember 🙃

Might seem like a nitpick but this "\`" needs to be on the same line as the `"default"` or else a newline is created in the help output of `abra` which is inconsistent with the rest of the commands as far as I remember 🙃
Author
Member

Ah, mia culpa

Ah, mia culpa
ammaratef45 marked this conversation as resolved
Author
Member

I think taking a scan of pkg/dns/..., seeing what is in there in terms of functions and where those get called will give you an overview of the logic. I think the idea is that domain checking happens once on the abra server add and from then on in, it's "up to you".

I thought the idea is that domain checking results only in a warning for server add but since apps can have domains that are not subdomains of the server then we need to keep domain checking for them?

Or do we want to have this as a warning in all of the cases? I could just remove the -D parameter internal/cli and go chase everywhere where an error shows up if that's the goal

> I think taking a scan of pkg/dns/..., seeing what is in there in terms of functions and where those get called will give you an overview of the logic. I think the idea is that domain checking happens once on the abra server add and from then on in, it's "up to you". I thought the idea is that domain checking results only in a warning for `server add` but since apps can have domains that are not subdomains of the server then we need to keep domain checking for them? Or do we want to have this as a warning in all of the cases? I could just remove the `-D` parameter `internal/cli` and go chase everywhere where an error shows up if that's the goal
p4u1 approved these changes 2024-11-26 19:48:34 +00:00
Owner

@ammaratef45 I understood from toolshed/organising#631 (comment) that perhaps the additional domain checks on deploy were also a hindrance? @fauno will hopefully weigh in on this shortly.

We can also just merge as-is as @p4u1 is suggesting (this change stands on its own and is good anyway pending coop-cloud/abra#448 (comment))! Feel free to click the big green button!

@ammaratef45 I understood from https://git.coopcloud.tech/toolshed/organising/issues/631#issuecomment-21662 that perhaps the additional domain checks on deploy were also a hindrance? @fauno will hopefully weigh in on this shortly. We can also just merge as-is as @p4u1 is suggesting (this change stands on its own and is good anyway pending https://git.coopcloud.tech/coop-cloud/abra/pulls/448#issuecomment-21729)! Feel free to click the big green button!
ammaratef45 added 1 commit 2024-11-27 19:38:56 +00:00
remove whitespace
Some checks failed
continuous-integration/drone/pr Build is failing
7b54c2b5b9
Author
Member

Feel free to click the big green button!

Screenshot 2024-11-27 at 11.40.03 AM.png

😢

> Feel free to click the big green button! ![Screenshot 2024-11-27 at 11.40.03 AM.png](/attachments/fbe38716-cc2b-4a95-b9a6-a44815273b10) 😢
coop-cloud manually merged commit bba1640913 into main 2024-11-27 19:48:32 +00:00
Sign in to join this conversation.
No description provided.