Commit Graph

55 Commits

Author SHA1 Message Date
adrien 195aec2cfe updated README.md 2021-08-26 16:17:37 +02:00
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.
2021-08-26 16:05:39 +02:00
Quentin fa25c54e47 Merge pull request 'Environment parsing done with Serde Envy' (#5) from adrien/diplonat:feature/config-handling into main
Reviewed-on: Deuxfleurs/diplonat#5
2021-08-19 08:32:53 +02:00
adrien 8b57fb2680 Merge pull request 'Edited README: declare system dependency to a TLS library' (#4) from adrien/diplonat:main into main
Reviewed-on: Deuxfleurs/diplonat#4
2021-08-16 11:45:45 +02:00
LUXEY Adrien 0f114f2134 a last pass to remove warnings from my code 2021-08-16 11:34:42 +02:00
LUXEY Adrien 644e707956 environment.rs successfully replaced with new config/ configuration loader. No API changes, more tests, cleaner code: life is swell. 2021-08-16 11:19:16 +02:00
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
2021-08-16 10:26:06 +02:00
LUXEY Adrien 41b4786f78 edited README: declare system dependency to a TLS library 2021-08-14 18:08:48 +02:00
darkgallium ade0090cdb change image name 2020-07-13 19:34:04 +02:00
Quentin 7ec74a21d4 Merge pull request 'Automatically manage firewall rules (iptables) for services' (#1) from add-firewall-rules into master
Reviewed-on: Deuxfleurs/diplonat#1
2020-07-04 17:16:21 +02:00
darkgallium 4f4b6b048d corrections after review 2020-07-04 17:01:27 +02:00
darkgallium a59ed38121 ensure chain jump is added only once 2020-06-28 19:05:36 +02:00
darkgallium 6fe86469ee update README & Dockerfile 2020-06-28 17:01:12 +02:00
darkgallium d2ae084fc1 add actor for firewall & massive refactor 2020-05-24 20:40:49 +02:00
darkgallium a2d2582098 add better error handling 2020-05-24 18:15:33 +02:00
darkgallium 2dbf9da005 changing backend to use the cleaner ipt bindings
updating dependencies

minor fixes
2020-05-24 18:14:24 +02:00
darkgallium 1a9199011d first basic support for adding nft rules 2020-05-24 18:09:22 +02:00
Quentin 5dd4544360 Dockerize app 2020-05-23 16:29:02 +02:00
Quentin 3e2ea02d62 Working IGD 2020-05-23 15:38:08 +02:00
Quentin 941942aeda WIP igd actor 2020-05-22 22:01:27 +02:00
Quentin c8742b1f14 Connecting elements 2020-05-22 19:21:11 +02:00
Quentin e1d0eadb9d WIP software 2020-05-22 18:41:13 +02:00
Quentin deeecd93e1 Rewrite for clarity 2020-05-22 18:13:32 +02:00
Quentin 5fafc1cb64 Handle UDP/TCP 2020-05-22 16:27:43 +02:00
Quentin ec777652c1 Better retry mechanism 2020-05-22 15:19:49 +02:00
Quentin 28b661aa47 Fix tag format 2020-05-22 14:31:44 +02:00
Quentin 453b1c684e Working parsing 2020-05-22 14:17:48 +02:00
Quentin 4cebe77b6f Consul Actor basic logic works 2020-05-22 12:29:55 +02:00
Quentin efbbc17f82 WIP consul actor 2020-05-22 12:25:44 +02:00
Quentin fe1d91fe06 WIP consul 2020-05-22 11:34:12 +02:00
Quentin 4cce225043 Some guidelines 2020-05-22 11:06:26 +02:00
Quentin d583c17782 We are now able to watch 2020-05-22 10:33:09 +02:00
Quentin 2a6b440270 Working Consul 2020-05-21 23:04:21 +02:00
Quentin 8c43611eb5 Broken Diplonat 2020-05-21 22:25:33 +02:00
Quentin 4da459ce8b Working on logic 2020-05-21 17:51:30 +02:00
Quentin feadc844c0 WIP loops 2020-05-21 15:22:45 +02:00
Quentin 32d62d1349 Bullet points are needed ^^ 2020-05-09 16:57:33 +02:00
Quentin b007587acc Remove bullet points 2020-05-09 16:57:13 +02:00
Quentin 605a5205db Add some content to the README 2020-05-09 16:56:39 +02:00
Quentin 00c2039034 Rewrite as an object 2020-05-09 16:50:38 +02:00
Quentin 79102ba463 Consul URL is now a parameter 2020-05-09 16:40:10 +02:00
Quentin 154546a7b4 Split logic in multiple files! 2020-05-09 16:27:54 +02:00
Quentin 41caf6090c Add context to errors 2020-05-09 16:19:09 +02:00
Quentin 76c8404212 Rewrite with anyhow 2020-05-09 16:04:06 +02:00
Quentin a19ae25a7d Rewrite with modules, still in progress... 2020-05-09 15:53:22 +02:00
Quentin 643d6980e5 Start to modularize 2020-05-09 15:33:02 +02:00
Quentin 13cd2375d8 Set the correct endpoint 2020-05-08 12:46:10 +02:00
Quentin caf40fa1ef Add comments 2020-05-08 10:58:04 +02:00
Quentin 15a8745a31 Add README 2020-05-08 10:57:10 +02:00
Quentin 506d4b1cbf WIP 2020-05-08 10:34:10 +02:00