Pavel Sviderski
|
2f6c988125
|
do not rotate endpoints on daemon restart, handle endpoint changes on established reverse peer connections
|
2024-10-13 01:15:32 -04:00 |
|
Pavel Sviderski
|
3a644771ca
|
watch for peer endpoint changes and preserve in machine state
|
2024-10-08 16:51:40 +10:00 |
|
Pavel Sviderski
|
2eff7d1e22
|
format
|
2024-10-07 20:06:56 +10:00 |
|
Pavel Sviderski
|
f06dd865fa
|
update existing WG peers instead of replacing to not interrupt and lose track of handshakes
|
2024-10-07 20:06:15 +10:00 |
|
Pavel Sviderski
|
ee580df6af
|
automatically rotate WG peer endpoints if can't establish a connection
|
2024-10-07 17:24:18 +10:00 |
|
Pavel Sviderski
|
2c0cf28509
|
fix peer status persistence, update status every second
|
2024-10-07 15:35:15 +10:00 |
|
Pavel Sviderski
|
7b98ed34df
|
calculate WG peer connection status
|
2024-10-07 14:58:21 +10:00 |
|
Pavel Sviderski
|
5094149406
|
improve error message for adding machine that already exists in the cluster
|
2024-10-04 20:45:54 +10:00 |
|
Pavel Sviderski
|
336bdf9f4b
|
add minor log
|
2024-10-04 18:46:52 +10:00 |
|
Pavel Sviderski
|
e5bda92ec6
|
add opptimistic sleep on corrosion service start to wait for schema initialisation
|
2024-10-04 16:19:07 +10:00 |
|
Pavel Sviderski
|
fd3ad91136
|
update network controller to reconfigure network peers on machine changes
|
2024-10-04 16:18:08 +10:00 |
|
Pavel Sviderski
|
94186b2ae7
|
allow to subscribe to machine changes in the cluster store
|
2024-10-04 16:14:59 +10:00 |
|
Pavel Sviderski
|
c3ba43a8fa
|
delete old non-distributed cluster state, fix storing endpoints in store
|
2024-10-02 13:03:17 +10:00 |
|
Pavel Sviderski
|
b688742e5a
|
remove the concept of cluster user (at least the current implementation)
|
2024-10-02 11:50:40 +10:00 |
|
Pavel Sviderski
|
4ec87db8e8
|
add init machine to store when initialising a cluster
|
2024-10-02 11:34:54 +10:00 |
|
Pavel Sviderski
|
c6358474ac
|
add comments
|
2024-10-02 09:25:12 +10:00 |
|
Pavel Sviderski
|
8fbf406007
|
relax relationship between corrosion service, init cluster with new store
|
2024-10-01 23:37:07 +10:00 |
|
Pavel Sviderski
|
3287691a31
|
start corrosion service even when machine is not initialised to be able to init cluster
|
2024-10-01 15:04:20 +10:00 |
|
Pavel Sviderski
|
6f9fc69c2e
|
fix corrosion data dir, add reload to systemd unit
|
2024-10-01 13:33:54 +10:00 |
|
Pavel Sviderski
|
0effba0adb
|
create corrosion store when initialising machine
|
2024-09-30 23:10:56 +10:00 |
|
Pavel Sviderski
|
667ecadd30
|
init cluster store backed by corrosion
|
2024-09-30 20:46:41 +10:00 |
|
Pavel Sviderski
|
68845e7607
|
refactor corrosion service init for machine
|
2024-09-30 20:46:29 +10:00 |
|
Pavel Sviderski
|
3e9718f08c
|
update store schema when configuring corrosion, create machines table
|
2024-09-27 20:10:05 +10:00 |
|
Pavel Sviderski
|
69c9167355
|
configure corrosion bootstrap peers when initialising a machine
|
2024-09-26 20:36:13 +10:00 |
|
Pavel Sviderski
|
b25938acc1
|
clean up corrosion systemd service
|
2024-09-26 19:14:25 +10:00 |
|
Pavel Sviderski
|
1ec3376be5
|
remove indentations from corrosion config
|
2024-09-26 18:06:45 +10:00 |
|
Pavel Sviderski
|
9fcc319c3a
|
create corrosion config
|
2024-09-26 17:00:30 +10:00 |
|
Pavel Sviderski
|
2f7463ebe3
|
refactor corrosion into interface service
|
2024-09-25 23:59:56 +10:00 |
|
Pavel Sviderski
|
d66818ea77
|
detect if the machine is already initialised
|
2024-09-23 14:21:06 +10:00 |
|
Pavel Sviderski
|
fdb277c2df
|
fix internal/machine package to build on darwin
|
2024-09-20 23:18:58 +10:00 |
|
Pavel Sviderski
|
73be824f30
|
convert systemd unit to Type=notify and report readiness
|
2024-09-20 23:11:00 +10:00 |
|
Pavel Sviderski
|
1a5a78e4b3
|
setup Docker network and iptables forwarding when starting machine
|
2024-09-19 17:15:33 +10:00 |
|
Pavel Sviderski
|
5dc0832449
|
refactor network operations into networkController to start/stop when joining/leaving cluster
|
2024-09-18 15:55:02 +10:00 |
|
Pavel Sviderski
|
3f497b5e58
|
add couple TODOs
|
2024-09-12 17:45:31 +10:00 |
|
Pavel Sviderski
|
bd53e3f20e
|
machine add: configure remote machine to join the cluster network
|
2024-09-12 17:03:23 +10:00 |
|
Pavel Sviderski
|
4e042be7b7
|
add machine list command and corresponding RPC endpoint
|
2024-09-12 14:52:07 +10:00 |
|
Pavel Sviderski
|
47073f017f
|
update network peers when new machine added
|
2024-09-12 13:40:10 +10:00 |
|
Pavel Sviderski
|
a64caf34a7
|
add Token RPC endpoint to grab a machine token for adding it to a cluster
|
2024-09-12 09:55:02 +10:00 |
|
Pavel Sviderski
|
c56f81bac2
|
add TODO
|
2024-09-11 16:10:36 +10:00 |
|
Pavel Sviderski
|
da72c0515a
|
refactor cluster server to initialise state when initialising cluster, allow machine to be reinitialised
|
2024-09-11 14:50:52 +10:00 |
|
Pavel Sviderski
|
676f22a935
|
start WG network when the machine is initialised via RPC call
|
2024-09-10 18:23:55 +10:00 |
|
Pavel Sviderski
|
ddf7d23351
|
set uncloud group on the unix socket to allow configured non-root users to access it
|
2024-09-10 16:13:20 +10:00 |
|
Pavel Sviderski
|
86d949ae48
|
refactor Machine to run gRPC server to init cluster
|
2024-09-10 13:44:12 +10:00 |
|
Pavel Sviderski
|
e9f4ad7083
|
add Machine gRPC service
|
2024-09-10 13:41:52 +10:00 |
|
Pavel Sviderski
|
45cacfa6f5
|
rename Machine message to MachineInfo to not conflict with the service name
|
2024-09-08 13:40:43 +10:00 |
|
Pavel Sviderski
|
f49e91b41f
|
fix parse token, return out in cmdexec run
|
2024-09-06 15:52:27 +10:00 |
|
Pavel Sviderski
|
cfa2105684
|
add public IP to the end of endpoint list
|
2024-09-06 15:06:50 +10:00 |
|
Pavel Sviderski
|
7e93abb972
|
move InitCluster to Machine
|
2024-09-06 13:03:45 +10:00 |
|
Pavel Sviderski
|
31e2b8456f
|
refactor daemon to use Machine to manage all components
|
2024-09-06 11:00:33 +10:00 |
|
Pavel Sviderski
|
a59950631b
|
reduce log level for WG tunnel
|
2024-09-06 10:02:52 +10:00 |
|