Commit Graph

43 Commits (main)

Author SHA1 Message Date
adrien 76fe63791b Rewrote the configuration options to make Diplonat modular: IGD and Firewall modules will only be enabled if correponding `DIPLONAT_*_ENABLE` is set. (Breaking changes!)
Also rearranged imports throughout the project, because I couldn't resist, sorry.
2 years ago
LUXEY Adrien 0f114f2134 a last pass to remove warnings from my code 2 years ago
LUXEY Adrien 644e707956 environment.rs successfully replaced with new config/ configuration loader. No API changes, more tests, cleaner code: life is swell. 2 years ago
LUXEY Adrien ae9550ce23 New configuration parsing using envy. Added minimal functionnality for
the future ACME parameters. Tests written and passing.

WIP: added envy dependncy and ConfigOpts structs that will constitute Diplonat's configuration

WIP: ConfigOpts from_env() and validate() methods written. No API change (the env names remain unchanged)! Now need to use our new ConfigOpts struct instead of Environment, and update references to the environment variables in the code.

WIP: RuntimeConfig with business logic done. Tests written, but they are all running from the same process - setting environment variables in each test produces incoherent results. Another solution for testing is needed.

WIP: tests are fully written using 'from_iter' and all passing
2 years ago
darkgallium 4f4b6b048d corrections after review 3 years ago
darkgallium a59ed38121 ensure chain jump is added only once 3 years ago
darkgallium 6fe86469ee update README & Dockerfile 3 years ago
darkgallium d2ae084fc1 add actor for firewall & massive refactor 3 years ago
darkgallium a2d2582098 add better error handling 3 years ago
darkgallium 2dbf9da005 changing backend to use the cleaner ipt bindings
updating dependencies

minor fixes
3 years ago
darkgallium 1a9199011d first basic support for adding nft rules 3 years ago
Quentin 5dd4544360 Dockerize app 3 years ago
Quentin 3e2ea02d62 Working IGD 3 years ago
Quentin 941942aeda WIP igd actor 3 years ago
Quentin c8742b1f14 Connecting elements 3 years ago
Quentin e1d0eadb9d WIP software 3 years ago
Quentin deeecd93e1 Rewrite for clarity 3 years ago
Quentin 5fafc1cb64 Handle UDP/TCP 3 years ago
Quentin ec777652c1 Better retry mechanism 3 years ago
Quentin 453b1c684e Working parsing 3 years ago
Quentin 4cebe77b6f Consul Actor basic logic works 3 years ago
Quentin efbbc17f82 WIP consul actor 3 years ago
Quentin fe1d91fe06 WIP consul 3 years ago
Quentin d583c17782 We are now able to watch 3 years ago
Quentin 2a6b440270 Working Consul 3 years ago
Quentin 8c43611eb5 Broken Diplonat 3 years ago
Quentin 4da459ce8b Working on logic 3 years ago
Quentin feadc844c0 WIP loops 3 years ago
Quentin 00c2039034 Rewrite as an object 3 years ago
Quentin 79102ba463 Consul URL is now a parameter 3 years ago
Quentin 154546a7b4 Split logic in multiple files! 3 years ago
Quentin 41caf6090c Add context to errors 3 years ago
Quentin 76c8404212 Rewrite with anyhow 3 years ago
Quentin a19ae25a7d Rewrite with modules, still in progress... 3 years ago
Quentin 643d6980e5 Start to modularize 3 years ago
Quentin 13cd2375d8 Set the correct endpoint 3 years ago
Quentin 15a8745a31 Add README 3 years ago
Quentin 506d4b1cbf WIP 3 years ago
Quentin fdffe91397 consul lib does not work for us, switching to reqwest 3 years ago
Quentin f827fd3113 WIP consul integration 3 years ago
Quentin 0a31e36854 Working configuration parse 3 years ago
Quentin 91ba85236d WIP serious configuration (broken code) 3 years ago
Quentin 796a8d6f0b Initial commit 3 years ago