-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update dependencies to fix vulnerabilities #139
Update dependencies to fix vulnerabilities #139
Conversation
FYI: @lukasmittag |
Hey @erikbosch, |
Thanks for the input @MP91 - I tested like below, found one regression that is fixed in a new commit. Tested with https://github.com/eclipse-velocitas/vehicle-app-python-template/blob/main/app/src/main.py Changinging .velocitas.json like
Two observations - even if the variable is called
The code below from https://github.com/eclipse-velocitas/devenv-devcontainer-setup/blob/main/sdk-installer/src/run.py is to blame for that SHA does not work as it use
with this changed a regression was found - Subscribe MQTT
Send MQTT
Check App logs
Verify SUB output |
Discussion: Use fixed version in setup.py |
1bad60d
to
13ed217
Compare
Also changed: - After discussion in ETAS dev team proposing to use fixed versions also in *.in files - Fixing backward incompatible changes when updating Paho - Fixing workflow so that we really test with example from current branch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Updating dependencies to address vulnerabilities, if merged and released it may also fix some vulnerabilities in https://github.com/eclipse-velocitas/vehicle-app-python-template as that repo depends on this repo. Doing necessary refactoring.
All examples tested by trying to build and start-up them, but not by actually sending messages on MQTT, gRPC and similar. Some problems detected and fixes exist in #141 but no problems found related to the changes in this repository.
After a discussion in ETAS dev team proposing to change to fixed versions also in *.in/setup.py. I updated all *.in/setup.py files to what was used after the
--upgrade
I did with pip-compile before testing.Background
Some time ago we added in #119 a fix to eclipse-velocitas/vehicle-app-python-template#225 by putting an upper limit on used paho-version, due to a backward incompatible change in paho-mqtt. Now that has partially changed in paho-mqtt 2.1, see:
CallbackAPIVersion.VERSION1
as a default eclipse-paho/paho.mqtt.python#831So now CallbackAPIVersion.VERSION1 is default.