snow flurry
40532c9e36
events: use JSON instead of Bincode
...
Bincode doesn't support serde's deserialize_any, so it's easier to use
JSON for de/serializing events. Since they'll likely be pretty sparse,
the size difference shouldn't be a big deal.
2024-08-19 14:04:34 -07:00
snow flurry
ece1f9a089
mock: clean up todos
2024-08-19 12:08:39 -07:00
snow flurry
ba86368591
nzr-api, et al: implement a serializable ApiError
...
This replaces all the API functions that returned Result<T, String>.
Additionally, ToApiResult<T> and Simplify<T> make converting errors to
ApiError easier than with String.
2024-08-19 12:00:02 -07:00
snow flurry
42fad4920a
events: try to wait for available connection slots
2024-08-19 11:58:04 -07:00
snow flurry
1d97134839
nzrdhcp: don't worry about whether there's a relay
2024-08-18 21:05:53 -07:00
snow flurry
459682d182
nzrdns: remove some todo!()s
2024-08-18 21:05:29 -07:00
snow flurry
f0772b10e2
nzrd: actually serve the events
2024-08-18 20:33:33 -07:00
snow flurry
f1dd375e2f
nzr-api: https://xkcd.com/927/
2024-08-18 20:33:19 -07:00
snow flurry
6fe1ed02aa
nzrd: finally use tracing
2024-08-18 19:56:52 -07:00
snow flurry
f63626489d
nzr-api: always depend on futures
2024-08-18 19:44:54 -07:00
snow flurry
d6eca32bc0
nzrdns: the DNS part of nzrd, now not part of nzrd
2024-08-18 19:42:21 -07:00
snow flurry
19a08abb52
omyacid: properly detect unregistered IPs
2024-08-18 19:41:51 -07:00
snow flurry
0cb3aea62e
client: provide admin user in connect string
2024-08-15 21:29:27 -07:00
snow flurry
811c3d1c72
update versions
2024-08-15 21:22:40 -07:00
snow flurry
61c47d735a
omyacid: default username in /vendor-data
2024-08-15 21:19:59 -07:00
snow flurry
926997c1d1
omyacid: try another tactic for default username
2024-08-15 21:10:12 -07:00
snow flurry
8cca433f91
omyacid: s/public_keys/public-keys/
2024-08-15 21:03:19 -07:00
snow flurry
66289b7c5b
DEBIAN!!!
2024-08-15 20:35:55 -07:00
snow flurry
f0d37da26d
omyacid: define /vendor-data and /network-config
...
They do nothing for now.
2024-08-15 20:24:51 -07:00
snow flurry
a4c38c7d82
nzr-virt: make BiosData optional
...
Hopefully this fixes an issue with some VMs created outside of nzr.
2024-08-15 20:24:29 -07:00
snow flurry
8448a93b21
client: remove unused code
2024-08-15 20:23:57 -07:00
snow flurry
4edbe1a46d
nzrd: stop the virt domain when deleting
2024-08-15 20:17:41 -07:00
snow flurry
deaaaa3d10
nzr-api: ensure / is at the end of the ci url
...
Without it, cloud-init tries accessing `http://1.1.1.1:80meta-data `.
2024-08-15 19:25:24 -07:00
snow flurry
c35d9ccbed
nzrdhcp: also define lease in offer
2024-08-15 19:15:25 -07:00
snow flurry
693156dc3e
nzrdhcp: define lease in request ack
2024-08-15 19:13:38 -07:00
snow flurry
37a1b0f3a0
pseudo mtu awareness
2024-08-15 18:55:10 -07:00
snow flurry
b0646410b9
nzrdhcp: broadcast if needed
2024-08-15 01:01:43 -07:00
snow flurry
24a0c1cc68
nzr-virt: stay below hardcoded libvirt packet max
2024-08-15 00:42:57 -07:00
snow flurry
5040bc7b87
nzr-virt: sprinkle more debug
2024-08-15 00:35:31 -07:00
snow flurry
7a9659eb9e
nzr-virt: use log when needed
2024-08-15 00:15:41 -07:00
snow flurry
ec8528abb5
fix migration typo
2024-08-15 00:15:29 -07:00
snow flurry
60b39a5045
db fixes
2024-08-14 23:54:23 -07:00
snow flurry
93655b9c42
typo/nitpick
2024-08-14 23:49:43 -07:00
snow flurry
3d58c6c671
nzr-api/config: try to guess cloud-init http addr
2024-08-14 23:44:48 -07:00
snow flurry
267b924d7f
fix error formatting
2024-08-14 23:44:27 -07:00
snow flurry
48bff395ca
nzrd: declare cloud-init metadata via smbios
2024-08-14 23:04:41 -07:00
snow flurry
b350e73b8a
nzr-virt: smbios strings support
2024-08-14 23:00:36 -07:00
snow flurry
d10d98de96
properly init tracing-subscriber
2024-08-14 22:18:13 -07:00
snow flurry
8e9478ebc6
trim newlines in ssh key
2024-08-14 22:09:31 -07:00
snow flurry
f5bf777b2e
fiddling with templates pt1
2024-08-14 21:55:39 -07:00
snow flurry
29fc84e949
omyacid: ssh pubkeys
2024-08-14 21:52:25 -07:00
snow flurry
04f4d625a6
omyacid: Use into_make_service_with_connect_info
...
See https://docs.rs/axum/latest/axum/struct.Router.html#method.into_make_service_with_connect_info
2024-08-14 21:22:57 -07:00
snow flurry
a54204a1ee
nzrd/model: output ssh-key api_model correct-like
2024-08-14 21:17:12 -07:00
snow flurry
f9adaddbb5
nzr-api: remove unused sqlx dependency
...
s i g h .
2024-08-14 21:12:28 -07:00
snow flurry
c74cc70986
use libsqlite3-sys 0.29.0
...
SIGH.
2024-08-14 21:11:01 -07:00
snow flurry
660cf2e90d
Use bundled sqlite3
...
Apparently the version of sqlite3 my distro has is 3.34. Sigh.
2024-08-14 21:08:40 -07:00
snow flurry
c5b4292f6a
try to fix drop error
2024-08-14 21:02:44 -07:00
snow flurry
fff1ba672b
Revert "fix migrations"
...
This reverts commit aae15f34f8
.
2024-08-14 21:01:30 -07:00
snow flurry
aae15f34f8
fix migrations
2024-08-14 21:00:25 -07:00
snow flurry
e684b81660
support global ssh keys
2024-08-14 20:20:37 -07:00