Skip to content

xlte: fix password connection

Joanne Hugé requested to merge jhuge/xlte:xlog-password into master

Hello @kirr , in a recent commit of simpleran software release I added a password to the lteenb websocket: https://lab.nexedi.com/nexedi/slapos/-/commit/77c009794c1084ff5fef9f85910e3cb2fc8c484f

Since then the xlog service has stopped working correctly with the following error:

{"meta": {"event": "service detach", "time": 1734710968.4153636, "srv_name": "ENB", "srv_type": "ENB", "srv_version": "2024-11-21", "reason": "handshake: service requires authentication, but no password provided"}}

After a bit of debugging I found out that there are several calls to amari.connect but the password is given in parameter in only one of those call, which explains the error above.

I included the password in all "amari.connect" calls and it looks like xlog is working correctly with this commit.

I am not sure if this commit breaks anything or if this is the right way to do it as I didn't spend too much time checking the code, when you have time could you please review ?

Thank you, Joanne

Merge request reports