Closed srcansiz closed 1 year ago
In GitLab by @mvesin on May 24, 2023, 10:36
marked the checklist item check/adapt: run notebooks manually as completed
In GitLab by @mvesin on May 24, 2023, 14:34
marked the checklist item gui packages as completed
In GitLab by @mvesin on May 25, 2023, 09:42
marked the checklist item docker-compose software (support docker compose
plugin instead ? docker-compose
standalone is not supported anymore, but need to check MacOS and Windows WSL2 cases) as completed
test dummy comment
Unsuccessful tentative to use last version of boringtun v0.5.2
. No problem with boringtun v0.4.0
container builds correctly
# install boringtun userspace implementation of wireguard
#
# - match versions of debian & boringtun : up to date 0.5.2 is now ok for bullseye
# - glitch: bullseye's apt-get cargo is too old vs boringtun's cargo packages dependencies, need to install
# up to date rust/cargo
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && . /root/.cargo/env && \
cargo install --locked --bin boringtun-cli --version ~0.5.2 boringtun-cli
# install needed wireguard-tools
RUN apt-get install -y wireguard-tools
but wireguard setup fails when launching container.
$ ${FEDBIOMED_DIR}/scripts/fedbiomed_vpn start mqtt
...
Error response from daemon: Container 7d57946669718cc65c817c929bd183aeee94b4899f627726d847f062d6214824 is not running
Key is not the correct length or format: `'
CRITICAL: setting peer in wireguard interface failed with error : Command '['wg', 'set', 'wg0', 'peer', '', 'allowed-ips', '10.220.0.2/32', 'preshared-key', '/dev/stdin']' returned non-zero exit status 1.
investigating on a fedbiomed-vpn-vpnserver
container & manually replaying wireguard commands show same issue
(tested on Fedora 38 in fedbiomed-vpn-vpnserver container based on python:3.10-slim-bullseye
)
See : https://www.wireguard.com/xplatform/ for doc of interface, or for example: https://github.com/cloudflare/boringtun/issues/163
$ WG_SUDO=1 boringtun-cli wg0
BoringTun started successfully
$ socat - UNIX-CONNECT:/var/run/wireguard/wg0.sock
get=1
listen_port=49683
errno=0
$ wg set wg0 private-key <(wg genkey)
$
# no error when setting key
$ socat - UNIX-CONNECT:/var/run/wireguard/wg0.sock
set=1
private_key=6040ad1d02595ad318d7b54673de74361d7cce0a1a617da5b851031243abe67a
errno=0
# but output does not seem to be coherent
$ socat - UNIX-CONNECT:/var/run/wireguard/wg0.sock
get=1
own_public_key=cf4ad568938b7535f70e7cc68c29e038b3022efb0fe5b9a6c9f76a7be5c71817
listen_port=49683
errno=0
$ wg show wg0
interface: wg0
listening port: 49683
Boringtun v0.5.2 unsuccessful tentative reported to boringtun
developers : https://github.com/cloudflare/boringtun/issues/348
In GitLab by @sharkovsky on Jan 9, 2023, 10:12
Revise versions of dependencies in Fed-BioMed:
.yaml
filespackages.json
docker-compose
(v1) todocker compose
(v2) https://docs.docker.com/compose/migrate/nosetests
bypytest
General direction is to try to stick to up-to-date dependency versions (*). Exceptions:
Tasks:
[ ] Ubuntu 22.04 LTSwill be tested with CI[ ] MacOS xxxnot yet activegui/ui/package.json
contentdocker compose
plugin instead ?docker-compose
standalone is not supported anymore, but need to check MacOS and Windows WSL2 cases)boringtun upgrade=> keep 0.4.0 for now, see comment belowout of scope of this issue: we could explore replacingboringtun
bywireguard
orwireguard-go
that are widely distributed via package managersPreliminary task:
[ ] new CI slave with up to date system (see #486: need Fedora > 33 to use scikit-learn >= 1.2)see #531Note: this issue was inspired by #293.
(*) in the future, we may want to support/package multiple versions of Fed-BioMed (one with up to date packages for secure/production deployments, one more laxist on package versions). This is beyond the scope of this issue.