Implement createRecord endpoint #6

Merged
antman merged 137 commits from create-record-endpoint into main 2026-09-03 03:33:22 +00:00
Owner

Motivation

We need to focus on the endpoints required to implement the DNS record resource in the server manager. A good starting point is an endpoint to create a new record.

We're not going to worry about authentication and authorization at this point. We just want the bare minimum to implement the DNS record resource.

Solution

Well that escalated quickly 😅 creating a DNS record also meant:

  • Implementing a persistence layer. Decided on drizzle ORM
  • implementing an authentication layer. Using better auth, it provides a lot of features, doesn't require a separate server, and should support API keys when we get to needing them.
  • Domains are going to be purchased as part of a order for a server, so also wound up implementing the order schema 🤦

Also had to implement a mock server for porkbun to support the simulation tests.

Also wound up re implementing Postgres-migrate to support Postgres.js rather than pg-node 🤦

### Motivation We need to focus on the endpoints required to implement the DNS record resource in the server manager. A good starting point is an endpoint to create a new record. We're not going to worry about authentication and authorization at this point. We just want the bare minimum to implement the DNS record resource. ### Solution Well that escalated quickly 😅 creating a DNS record also meant: - Implementing a persistence layer. Decided on drizzle ORM - implementing an authentication layer. Using better auth, it provides a lot of features, doesn't require a separate server, and should support API keys when we get to needing them. - Domains are going to be purchased as part of a order for a server, so also wound up implementing the order schema 🤦 Also had to implement a mock server for porkbun to support the simulation tests. Also wound up re implementing Postgres-migrate to support Postgres.js rather than pg-node 🤦
sketch
All checks were successful
/ test-and-lint (push) Successful in 9s
6895c3727b
implement more create record
All checks were successful
/ test-and-lint (push) Successful in 10s
e22793caaf
aaaaaaaa
All checks were successful
/ test-and-lint (push) Successful in 10s
a88af11829
setup test case
Some checks failed
/ test-and-lint (push) Failing after 10s
926075b83a
update test case
All checks were successful
/ test-and-lint (push) Successful in 9s
1641c06d97
log
All checks were successful
/ test-and-lint (push) Successful in 9s
553c00fd97
huh
Some checks failed
/ test-and-lint (push) Failing after 9s
9603089dc3
?
All checks were successful
/ test-and-lint (push) Successful in 9s
b804cc5fa4
re-implement pg-migrations
All checks were successful
/ test-and-lint (push) Successful in 10s
33fe9e392b
lol
Some checks failed
/ test-and-lint (push) Failing after 11s
63c84b635c
ffs vscode
Some checks failed
/ test-and-lint (push) Failing after 9s
79451ab17b
Add allow-read
Some checks failed
/ test-and-lint (push) Failing after 9s
e154f16b11
hmm
Some checks failed
/ test-and-lint (push) Failing after 10s
4e1ce36ceb
eh
Some checks failed
/ test-and-lint (push) Failing after 9s
059352fc13
try to create an actual record
Some checks failed
/ test-and-lint (push) Failing after 9s
7b6b3011a9
add logging
Some checks failed
/ test-and-lint (push) Failing after 9s
910c6f47a2
lol
Some checks failed
/ test-and-lint (push) Failing after 9s
47d3324781
eh
Some checks failed
/ test-and-lint (push) Failing after 9s
9c688a775d
hmm
Some checks failed
/ test-and-lint (push) Failing after 9s
ecb02c5e2d
nnnnnn
Some checks failed
/ test-and-lint (push) Failing after 9s
043aa05799
?
Some checks failed
/ test-and-lint (push) Failing after 9s
c3327a8b8e
nnnnnnnn
Some checks failed
/ test-and-lint (push) Failing after 9s
718d698cb6
que
Some checks failed
/ test-and-lint (push) Failing after 9s
deac96f238
huzzah
Some checks failed
/ test-and-lint (push) Failing after 9s
692315d488
fix validateMigrationHashes
All checks were successful
/ test-and-lint (push) Successful in 9s
ee7489031d
mm
Some checks failed
/ test-and-lint (push) Failing after 9s
e7adcd166a
start implementing dnsRecordRepo
Some checks failed
/ test-and-lint (push) Failing after 9s
23b26d11d8
debug migrations
Some checks failed
/ test-and-lint (push) Failing after 11s
5e76b1ce34
eeeeee
Some checks failed
/ test-and-lint (push) Failing after 9s
833272a638
SSSSSSS
All checks were successful
/ test-and-lint (push) Successful in 9s
1befcb86de
meep
All checks were successful
/ test-and-lint (push) Successful in 9s
3da09a2159
slight cleanup
Some checks failed
/ test-and-lint (push) Failing after 9s
2061d7c34e
oops
Some checks failed
/ test-and-lint (push) Failing after 9s
f3874692b3
fixed
All checks were successful
/ test-and-lint (push) Successful in 9s
4f5fc6ddc9
improve sim tests
Some checks failed
/ test-and-lint (push) Failing after 9s
3661299984
ssssssssclap
Some checks failed
/ test-and-lint (push) Failing after 9s
d7e8af7901
try connecting
All checks were successful
/ test-and-lint (push) Successful in 10s
944a0f1b31
hmm
All checks were successful
/ test-and-lint (push) Successful in 9s
a432bf562d
meh
All checks were successful
/ test-and-lint (push) Successful in 9s
5201b83a95
make mockbun stateful
Some checks failed
/ test-and-lint (push) Failing after 9s
a9b4a65ff6
make test pass
All checks were successful
/ test-and-lint (push) Successful in 9s
9d1607f4c1
hmm
Some checks failed
/ test-and-lint (push) Failing after 10s
5ab792aa94
fixed test
All checks were successful
/ test-and-lint (push) Successful in 9s
bd63eec332
stateful record
Some checks failed
/ test-and-lint (push) Failing after 9s
af0590ccd3
nnnnnn
Some checks failed
/ test-and-lint (push) Failing after 9s
f964bd6482
implement more register domain endpoint
Some checks failed
/ test-and-lint (push) Failing after 9s
74d26ee4fd
register domain
Some checks failed
/ test-and-lint (push) Failing after 9s
e4700a45a9
huh
All checks were successful
/ test-and-lint (push) Successful in 8s
1b9b6f2e3d
hmm
Some checks failed
/ test-and-lint (push) Failing after 8s
deedc520e7
add mock endpoint
Some checks failed
/ test-and-lint (push) Failing after 10s
66978da6ae
cool
Some checks failed
/ test-and-lint (push) Failing after 9s
d803a19e48
reeeeeeee
Some checks failed
/ test-and-lint (push) Failing after 9s
de04c3026e
derp
Some checks failed
/ test-and-lint (push) Failing after 10s
4a168c2835
aaaahhhhhhhh
Some checks failed
/ test-and-lint (push) Failing after 9s
3ce0feb9f6
ppppppp
Some checks failed
/ test-and-lint (push) Failing after 9s
f5a5d0a648
shrug
Some checks failed
/ test-and-lint (push) Failing after 9s
c5e532f382
diagram
Some checks failed
/ test-and-lint (push) Failing after 9s
476da51578
use drizzle
Some checks failed
/ test-and-lint (push) Failing after 11s
8c89507ce9
nnnnnnnnnnnn
Some checks failed
/ test-and-lint (push) Failing after 10s
2f5c796977
derp
Some checks failed
/ test-and-lint (push) Failing after 9s
a8cd66a6e1
mmmmmmmm
Some checks failed
/ test-and-lint (push) Failing after 9s
c068435162
ffs
Some checks failed
/ test-and-lint (push) Failing after 9s
55cc87fd7f
hmm
Some checks failed
/ test-and-lint (push) Failing after 12s
ac814df8f5
derp
Some checks failed
/ test-and-lint (push) Failing after 9s
8f61c125f9
jjj
Some checks failed
/ test-and-lint (push) Failing after 9s
5e91a6a02e
hmm
Some checks failed
/ test-and-lint (push) Failing after 9s
3d8e1ec787
ccool
Some checks failed
/ test-and-lint (push) Failing after 9s
82a7ca9bae
separate test step
Some checks failed
/ test-and-lint (push) Failing after 9s
ba05b75f79
faster?
Some checks failed
/ test-and-lint (push) Failing after 7s
426ddfc0de
doh
Some checks failed
/ test-and-lint (push) Failing after 8s
9c3f2ce361
meh
Some checks failed
/ test-and-lint (push) Has been cancelled
f9d4c459ba
oops
Some checks failed
/ test-and-lint (push) Failing after 9s
5799bdd574
bleh
Some checks failed
/ test-and-lint (push) Failing after 9s
8150666058
hmm
Some checks failed
/ test-and-lint (push) Has been cancelled
225bff2bcc
que?
Some checks failed
/ test-and-lint (push) Has been cancelled
609fcc0578
facepalm
Some checks failed
/ test-and-lint (push) Has been cancelled
b31c3fec23
try again
Some checks failed
/ test-and-lint (push) Has been cancelled
1ca5fe1e3d
yee
Some checks failed
/ test-and-lint (push) Failing after 9s
2eb721cde6
pluralize
Some checks failed
/ test-and-lint (push) Failing after 9s
a2080adb2f
hmm
Some checks failed
/ test-and-lint (push) Failing after 7s
74f60cc0e6
meh
Some checks failed
/ test-and-lint (push) Failing after 9s
c245ecd01e
;;;;;;
Some checks failed
/ test-and-lint (push) Failing after 10s
9ec6c3a626
????????
Some checks failed
/ test-and-lint (push) Failing after 9s
91f1bba214
wtf
Some checks failed
/ test-and-lint (push) Failing after 10s
0bce491132
que?!
Some checks failed
/ test-and-lint (push) Failing after 10s
4aebd11891
mmmmm
Some checks failed
/ test-and-lint (push) Failing after 9s
80dce4cc34
zzzzzzzzzz
Some checks failed
/ test-and-lint (push) Failing after 10s
8363a2ac78
hmm
Some checks failed
/ test-and-lint (push) Failing after 11s
ae61c626c5
hmm;;
Some checks failed
/ test-and-lint (push) Failing after 10s
734daf2472
aaaaaaaaaaaa
Some checks failed
/ test-and-lint (push) Failing after 9s
05a52afb0d
coo
Some checks failed
/ test-and-lint (push) Failing after 9s
8c123bf7aa
ccccccc
Some checks failed
/ test-and-lint (push) Failing after 9s
6100d4224e
aaaaaaaa
Some checks failed
/ test-and-lint (push) Failing after 9s
85b9f77fdd
regenerate schema
Some checks failed
/ test-and-lint (push) Failing after 9s
c871f8fee2
try with joins
Some checks failed
/ test-and-lint (push) Failing after 9s
eb7a5a0dd5
add session middleware
Some checks failed
/ test-and-lint (push) Has been cancelled
3faa7732de
ffs
Some checks failed
/ test-and-lint (push) Failing after 9s
01813c062d
ok
Some checks failed
/ test-and-lint (push) Failing after 11s
7be92810b7
cool
Some checks failed
/ test-and-lint (push) Failing after 9s
ce88968b7f
fix registration test
Some checks failed
/ test-and-lint (push) Failing after 9s
fea722e560
??
Some checks failed
/ test-and-lint (push) Failing after 9s
c2ecfbb41a
yay
Some checks failed
/ test-and-lint (push) Failing after 9s
8b40c87b21
add test case
Some checks failed
/ test-and-lint (push) Failing after 10s
f679002a65
cool
Some checks failed
/ test-and-lint (push) Failing after 9s
c28e731d35
raa
Some checks failed
/ test-and-lint (push) Failing after 9s
536987f6a5
hmm
Some checks failed
/ test-and-lint (push) Failing after 9s
c2260b3080
hmm?
Some checks failed
/ test-and-lint (push) Failing after 9s
5f24dd2219
??
Some checks failed
/ test-and-lint (push) Failing after 9s
07aafbc47a
????????
Some checks failed
/ test-and-lint (push) Failing after 10s
76f31ba967
ffs
Some checks failed
/ test-and-lint (push) Failing after 10s
2eb317c576
hmm
Some checks failed
/ test-and-lint (push) Failing after 9s
2143325fdf
try barra token
Some checks failed
/ test-and-lint (push) Failing after 10s
aa7c48bfdc
derp
Some checks failed
/ test-and-lint (push) Failing after 10s
0760dd44d1
fixed tests
Some checks failed
/ test-and-lint (push) Failing after 10s
d77523b5dc
oops
Some checks failed
/ test-and-lint (push) Failing after 9s
6e89304514
try a thing
Some checks failed
/ test-and-lint (push) Failing after 10s
24effeef76
meh
Some checks failed
/ test-and-lint (push) Failing after 9s
e92fd02171
????????
Some checks failed
/ test-and-lint (push) Failing after 9s
79a22646df
add a test for domain ownership
Some checks failed
/ test-and-lint (push) Failing after 10s
c5dfd8059e
??
Some checks failed
/ test-and-lint (push) Failing after 9s
4f96be304b
fixed session middleware
Some checks failed
/ test-and-lint (push) Failing after 9s
ab67e7a8b4
yee
Some checks failed
/ test-and-lint (push) Failing after 9s
1cc41beadd
add middleware
Some checks failed
/ test-and-lint (push) Failing after 9s
44016b454a
m8
Some checks failed
/ test-and-lint (push) Failing after 10s
738ddfbf33
fixed types
Some checks failed
/ test-and-lint (push) Failing after 9s
438daa6c11
registerDomain
Some checks failed
/ test-and-lint (push) Failing after 9s
e249bc71d5
hmm
Some checks failed
/ test-and-lint (push) Failing after 10s
30d8b1e4e9
update migrations
Some checks failed
/ test-and-lint (push) Failing after 9s
60d4958037
fixed test
Some checks failed
/ test-and-lint (push) Failing after 9s
4bcbc415dd
wire up create record controller
Some checks failed
/ test-and-lint (push) Failing after 10s
fb743c2515
make createRecord work
Some checks failed
/ test-and-lint (push) Failing after 10s
a491c07dc2
return new record
Some checks failed
/ test-and-lint (push) Failing after 10s
523a031387
lol no
Some checks failed
/ test-and-lint (push) Failing after 9s
85c50c1b7d
number should be fine
Some checks failed
/ test-and-lint (push) Failing after 9s
5573106f82
uuid ids
Some checks failed
/ test-and-lint (push) Failing after 11s
cb9de50434
cool
All checks were successful
/ test-and-lint (push) Successful in 9s
63525d63ca
antman changed title from WIP: Implement createRecord endpoint to Implement createRecord endpoint 2026-09-03 03:33:15 +00:00
antman merged commit a1d0d28521 into main 2026-09-03 03:33:22 +00:00
antman deleted branch create-record-endpoint 2026-09-03 03:33:22 +00:00
antman referenced this pull request from a commit 2026-09-03 03:33:24 +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/api-server!6
No description provided.