Implement Dns record resource #26

Merged
antman merged 52 commits from dns-record-resource into main 2026-09-09 02:34:26 +00:00
Owner

Motivation

We need the server manager to create a DNS record for every application that has a subdomain.

Solution

Added a DNS record resource that communicates with the KtC API server to add DNS records to a domain owned by the customer.

After trying to get the actual KtC API server running in the simulation tests, I figured out it wasn't worth the effort — getting the API server running would also mean running mocks of all of the services it depends on, such as porkbun. It turned out to be much easier to implement a mock running in the simulation test itself.

Currently, calling the KtC API is authenticated using email & password, but it should be easy enough to update the ktcClient code once that changes.

### Motivation We need the server manager to create a DNS record for every application that has a subdomain. ### Solution Added a DNS record resource that communicates with the KtC API server to add DNS records to a domain owned by the customer. After trying to get the actual KtC API server running in the simulation tests, I figured out it wasn't worth the effort — getting the API server running would also mean running mocks of all of the services it depends on, such as porkbun. It turned out to be much easier to implement a mock running in the simulation test itself. Currently, calling the KtC API is authenticated using email & password, but it should be easy enough to update the ktcClient code once that changes.
huh?
Some checks failed
/ test-and-lint (push) Failing after 7s
0f7085e907
cleanup file resource
All checks were successful
/ test-and-lint (push) Successful in 3m2s
6bc2115c28
try removing applyConfig at startup
All checks were successful
/ test-and-lint (push) Successful in 3m3s
5badcbaab8
Implement DNS record
Some checks failed
/ test-and-lint (push) Failing after 1m30s
800df53835
fix some comments and documentation
Some checks failed
/ test-and-lint (push) Failing after 1m32s
273d0128ab
Setup a bit of the dns manager
Some checks failed
/ test-and-lint (push) Failing after 5s
e6466bc609
hmm
Some checks failed
/ test-and-lint (push) Failing after 1m32s
7351fc257e
app should start up now
All checks were successful
/ test-and-lint (push) Successful in 3m11s
11c10592c8
check test does not pass
All checks were successful
/ test-and-lint (push) Successful in 3m1s
e0877e333f
now test should fail
All checks were successful
/ test-and-lint (push) Successful in 3m15s
7c5860d921
derp
All checks were successful
/ test-and-lint (push) Successful in 3m0s
58d376797c
logging
All checks were successful
/ test-and-lint (push) Successful in 3m9s
11cb5583c9
Bubble defaultCommitter exceptions
Some checks failed
/ test-and-lint (push) Failing after 3m45s
6bb14ec726
set credentials
Some checks failed
/ test-and-lint (push) Failing after 3m45s
1984a691f2
configurable ktcBaseUrl
Some checks failed
/ test-and-lint (push) Failing after 3m48s
64e61d7f81
hmm
Some checks failed
/ test-and-lint (push) Failing after 3m47s
b6abad4357
hmm
Some checks failed
/ test-and-lint (push) Failing after 2m12s
46e832f254
ok
Some checks failed
/ test-and-lint (push) Failing after 3m54s
46762d613e
spin up mock api service
Some checks failed
/ test-and-lint (push) Has been cancelled
f04b5d49b0
doh
Some checks failed
/ test-and-lint (push) Has been cancelled
e79ec1e10d
que?
Some checks failed
/ test-and-lint (push) Has been cancelled
2b6d8764b9
hmm
Some checks failed
/ test-and-lint (push) Has been cancelled
1fecd126ec
derp
Some checks failed
/ test-and-lint (push) Has been cancelled
a54d91dc98
wtf
Some checks failed
/ test-and-lint (push) Has been cancelled
9e91dbbc54
????????
Some checks failed
/ test-and-lint (push) Failing after 3m55s
0a59404fba
reeeeeeeeeeeeeeeeee
Some checks failed
/ test-and-lint (push) Has been cancelled
c6fee70384
🤦
Some checks failed
/ test-and-lint (push) Failing after 3m56s
81d23eee19
jjjjjjjjj
Some checks failed
/ test-and-lint (push) Has been cancelled
0843270004
????????
Some checks failed
/ test-and-lint (push) Failing after 3m58s
f33fe70eb0
???
Some checks failed
/ test-and-lint (push) Failing after 3m47s
2e9c2b7cea
ppppppppppppppp
Some checks failed
/ test-and-lint (push) Failing after 9s
5fd60d203d
derp
Some checks failed
/ test-and-lint (push) Failing after 3m55s
2c2b599cc9
try using pseudo terminal
Some checks failed
/ test-and-lint (push) Failing after 25s
06f9f30489
nnnnnn
Some checks failed
/ test-and-lint (push) Failing after 24s
6aac616689
??
Some checks failed
/ test-and-lint (push) Failing after 26s
b2f24a12c4
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Some checks failed
/ test-and-lint (push) Failing after 24s
e925d628f7
nice
Some checks failed
/ test-and-lint (push) Failing after 3m44s
344dd00ff0
hmm
All checks were successful
/ test-and-lint (push) Successful in 3m6s
9bc08c389c
create test user
All checks were successful
/ test-and-lint (push) Successful in 3m3s
9ea4ff084c
try setup domain
Some checks failed
/ test-and-lint (push) Failing after 17s
86050826e7
undo previous commit
All checks were successful
/ test-and-lint (push) Successful in 3m6s
936cac1478
...much simpler solution
All checks were successful
/ test-and-lint (push) Successful in 3m3s
21393f0783
cleanup a little bit
All checks were successful
/ test-and-lint (push) Successful in 2m56s
a18047f14c
debug error
All checks were successful
/ test-and-lint (push) Successful in 3m5s
01e192a2ae
hmm
All checks were successful
/ test-and-lint (push) Successful in 3m2s
19bfee47e8
Add /api/auth/sign-in/email mock endpoint
All checks were successful
/ test-and-lint (push) Successful in 3m8s
f51633cb39
cleanup tests
Some checks failed
/ test-and-lint (push) Has been cancelled
f21e74180d
log domains
All checks were successful
/ test-and-lint (push) Successful in 3m7s
0eed247fea
Add assertion
Some checks failed
/ test-and-lint (push) Has been cancelled
03702bdf06
remove unnecessary file
Some checks failed
/ test-and-lint (push) Has been cancelled
91014a7769
remove unnecessary export
All checks were successful
/ test-and-lint (push) Successful in 3m8s
8b7019afab
antman changed title from WIP: Implement Dns record resource to Implement Dns record resource 2026-09-09 02:34:17 +00:00
antman merged commit 2f9a07e20e into main 2026-09-09 02:34:26 +00:00
antman deleted branch dns-record-resource 2026-09-09 02:34:26 +00:00
antman referenced this pull request from a commit 2026-09-09 02:34:28 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kill-the-cloud/server-manager!26
No description provided.