Commit Graph

42 Commits

Author SHA1 Message Date
Lucy Cifferello
7adb66cf4c add spantrace debug logs 2022-01-21 20:35:52 -07:00
Keagan McClelland
0a4f60ae26 actually update ssl certificate in persistence when we are within the expiration window. 2022-01-21 20:35:52 -07:00
Aiden McClelland
69382f788d instrument all the things 2022-01-21 20:35:52 -07:00
Keagan McClelland
3f30905786 Bugfix/wifi init (#619)
* initializes wifi system correctly

* add packages to initialization

* restart wpa_supplicant after conf file is sync'ed

* fix cli rendering for set_network

* debug statements

* more debug stuff, trim network id on return

* possibly solves all dhcp problems on startup, I wish I understood better why it starts by default for eth0 but not wlan0

* make consistent with new logging
2022-01-21 20:35:52 -07:00
Justin Miller
c3ac27865d chore: Get the tracing in 2022-01-21 20:35:52 -07:00
Justin Miller
81164f974f chore: moving to color_eyre 2022-01-21 20:35:52 -07:00
Keagan McClelland
e9e1f1608f fixes certificate directory mount 2022-01-21 20:35:52 -07:00
Keagan McClelland
ec47437a07 isolates ssl directories 2022-01-21 20:35:52 -07:00
Keagan McClelland
f9e0fe8fc8 write nginx conf that uses ssl information, add main ui config to Ngi… (#591)
* write nginx conf that uses ssl information, add main ui config to Nginx init method

* fix nginx config for main service

* add ssl to ipv6 config
2022-01-21 20:35:52 -07:00
Keagan McClelland
953e22080f adds debug statement 2022-01-21 20:35:52 -07:00
Keagan McClelland
fb83a3ebe6 change proxy method for tor health check 2022-01-21 20:35:52 -07:00
Keagan McClelland
255daf01b7 fixes log statement for mdns 2022-01-21 20:35:52 -07:00
Keagan McClelland
7f107efbf3 Bugfix/mdns sync semantics (#550)
* fixes issue where mdns.sync would reset the entry group without readding the original A record, causing CNAME's to point to nothing

* make analyzer mad to make cargo happy

* please both analyzer and cargo

* debug logs

* demote successful healthcheck logs to trace since they happen once every second

* I have no words for this commit message

* 2 is 3
2022-01-21 20:35:52 -07:00
Aiden McClelland
7622616856 prefer btreemap over hashmap 2022-01-21 20:35:52 -07:00
Aiden McClelland
1a86f393d6 use btreemap instead of indexmap
to establish canonical lock ordering
2022-01-21 20:35:52 -07:00
Keagan McClelland
f9d91b3cfb adds context to filesystem calls for nginx 2022-01-21 20:35:52 -07:00
Keagan McClelland
68fbc34bce Feature/nginx management (#483)
* Implements nginx controller and initialization

* adds nginx controller add to netmod add

* adds nginx remove to netmod remove

* fix code review issues
2022-01-21 20:35:52 -07:00
Keagan McClelland
561e09016d Feature/wifi sync (#446)
* Synchronizes Wifi config during the 'embassy-init' startup sequence

* Apply suggestions from code review

make directories polymorphic over AsRef

Co-authored-by: Aiden McClelland <3732071+dr-bonez@users.noreply.github.com>

* make resilient to existing symlink

* make this more idiomatic

Co-authored-by: Aiden McClelland <3732071+dr-bonez@users.noreply.github.com>
Co-authored-by: Aiden McClelland <me@drbonez.dev>
2022-01-21 20:35:52 -07:00
Keagan McClelland
c91790d1eb Feature/ssl cert management (#442)
* Adds core logic API for SSL Certificate Management

* Update appmgr/src/net/ssl.rs

Co-authored-by: Aiden McClelland <3732071+dr-bonez@users.noreply.github.com>
2022-01-21 20:35:52 -07:00
Aiden McClelland
0847389cd1 purge the word app 2022-01-21 20:35:52 -07:00
Aiden McClelland
45d945db2e fix tor addressing for realzies 2022-01-21 20:35:52 -07:00
Aiden McClelland
296c2a98c3 fix tor address field on update 2022-01-21 20:35:52 -07:00
Aiden McClelland
ccf505d0d3 misc fixes 2022-01-21 20:35:52 -07:00
Aiden McClelland
3877e43b84 configure datadir on context 2022-01-21 20:35:52 -07:00
Aiden McClelland
5d44519d0d fix warnings 2022-01-21 20:35:52 -07:00
Aiden McClelland
e9faf1f74d misc fixes 2022-01-21 20:35:52 -07:00
Aiden McClelland
9fb02c6a1e overhaul context 2022-01-21 20:35:52 -07:00
Aiden McClelland
6093518e46 load os tor key from db 2022-01-21 20:35:52 -07:00
Keagan McClelland
982ebc01a4 Feature/tor health checks (#426)
* wip

* wraps up core tor health check feature, still need to fix the boundaries with the rest of embassyd

* need to please borrow checker

* please the borrow checker

* wire it in

* finishes the feature

* Apply suggestions from code review

* fixes tor restart functionality

* makes tor replacement more resilient, adds embassyd service in init and replace
2022-01-21 20:35:52 -07:00
Keagan McClelland
6c7dc71ed4 Feature/wifi (#409)
* initial commit for wifi feature

* implements wifi.get

* implements signal strength, removes macro system, makes compatible with rust stable

* remove selected row from wifi info

* refactor to correctly use rpc-toolkit

* remove redundant line from invoke error rendering

* Apply suggestions from code review

* adds display for wifi.get

* use invoke

* use remove

* use tokio native timeout

* use correct null output

* Apply suggestions from code review

Co-authored-by: Aiden McClelland <3732071+dr-bonez@users.noreply.github.com>

* fix borrowing issues

Co-authored-by: Aiden McClelland <3732071+dr-bonez@users.noreply.github.com>
2022-01-21 20:35:52 -07:00
Keagan McClelland
da5a0d622b adds avahi base service to init function of mdns controller (#407)
* adds avahi base service to init function of mdns controller

* Apply suggestions from code review

* adds hostname set to startup sequence

* Apply suggestions from code review

Co-authored-by: Aiden McClelland <3732071+dr-bonez@users.noreply.github.com>
2022-01-21 20:35:52 -07:00
Aiden McClelland
3588d0342e more idempotent installs 2022-01-21 20:35:52 -07:00
Aiden McClelland
a1f1dc2ce7 reconcile types 2022-01-21 20:35:52 -07:00
Aiden McClelland
b807323fa4 installs working 2022-01-21 20:35:52 -07:00
Aiden McClelland
a14820087d switch to managers: wip 2 2022-01-21 20:35:52 -07:00
Aiden McClelland
34e4c12af3 switch to managers: wip 2022-01-21 20:35:52 -07:00
Aiden McClelland
3f416dda1b fix pack 2022-01-21 20:35:52 -07:00
Aiden McClelland
8b3a7c6df5 pack 2022-01-21 20:35:52 -07:00
Aiden McClelland
172ef71c8d appmgr: mdns controller 2022-01-21 20:35:52 -07:00
Aiden McClelland
9630c356f4 appmgr: wrap up tor 2022-01-21 20:35:52 -07:00
Aiden McClelland
04b9ef8222 appmgr: basic tor sync 2022-01-21 20:35:52 -07:00
Aiden McClelland
8954e3e338 appmgr 0.3.0 rewrite pt 1
appmgr: split bins

update cargo.toml and .gitignore

context

appmgr: refactor error module

appmgr: context

begin new s9pk format

appmgr: add fields to manifest

appmgr: start action abstraction

appmgr: volume abstraction

appmgr: improved volumes

appmgr: install wip

appmgr: health daemon

appmgr: health checks

appmgr: wip

config get

appmgr: secret store

wip

appmgr: config rewritten

appmgr: delete non-reusable code

appmgr: wip

appmgr: please the borrow-checker

appmgr: technically runs now

appmgr: cli

appmgr: clean up cli

appmgr: rpc-toolkit in action

appmgr: wrap up config

appmgr: account for updates during install

appmgr: fix: #308

appmgr: impl Display for Version

appmgr: cleanup

appmgr: set dependents on install

appmgr: dependency health checks
2022-01-21 20:35:52 -07:00