-
Notifications
You must be signed in to change notification settings - Fork 191
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
Change hawkbit with aws s3 storage from https download links to http links temporary #1738
Comments
Hello @MaMelnik ! Could you provide more insights of how is your instance of hawkbit configured to work with s3 ? |
Hello strailov, The s3 settings in the application.properties (hawkbit-runtime\hawkbit-update-server\src\main\resources):
The s3 extension is included in the pom.xml dependencies (hawkbit-runtime\hawkbit-update-server):
|
I did some digging and in the code it seems that the extension creates ClientConfiguration with default constructor. |
Thanks for the assistance. I am not sure what you mean with ClientConfiguration. Do you have a hint where to look in the source code? It seems that changing the aws s3 settings from https to http is not possible in the configuration interface. At the moment I only see two possible solutions:
I would prefer the first solution, but I am not quite sure where the best place for this modification in the source code is. Do you have an idea? Because it is only a temporary problem I am not looking for a solution with a switch in the configuration. I only need to update the devices with missing certificates and I am fine. |
I was looking at awsClientConfiguration() method in here |
Thanks for the hint. I tried to change the aws extension but it seems to crash the hawkbit even without any source code modifications. Maybe you have an idea what is wrong with my custom version. These are the changes I made: 1. Get source code and change version
2. Build the custom extension 3. Copy the custom extension 4. Add custom extension location to repositories and dependencies
...
The maven build process for the extension and the hawkbit works, but there are some warnings during the hawkbit-server build. I do not think they are relevant, but here are the ones related to the extension:
The hawkbit crashes during the startup:
I am not sure what causes the issue, because the extension code is unchanged. |
I did some further investigation and switched to my local machine for the tests. Now i get more error details. I think the issue is a Full log:
I thought it could be caused by version difference in the dependencies but i did not find any difference ( Is there someone with the same issue? Most questions/error reports I can find are because of dependency problems. I will try to solve this but I am not a maven expert. |
com.amazonaws.ClientConfiguration should be available in aws-java-sdk-core. Check if it is in your dependencies. |
Hello,
we use the hawkbit update server version 0.4.1 together with the aws s3 extension to update our devices. The hawkbit runs in a docker container and stores the settings in a maria db. Artifacts are stored in the aws s3.
The system works fine but because of an error in the production a few devices did not get the right firmware with the certificate to use https. To fix the issue we have to update the devices using http. The aws s3 download link can be modified from "https:..." to "http:..." and the download works (tested with my web browser).
I tried to changed the following properties:
hawkbit.artifact.url.protocols.download-http.protocol=http
hawkbit.artifact.url.protocols.download-cdn-http.protocol=http
But i still get https download links. Maybe these properties are not effective because of the s3 extension?
Is there a possibility to make direct changes in the source code? I only need the modified hawkbit to update a few devices and after that i can switch back to the encrypted version.
I am currently digging into the source code and trying to figure out where the links are generated and how to modify them. I do not have a local test environment at the moment so it is quite difficult to debug. Is there a howto/manual available to set it up?
My colleague who set the whole system up is not available anymore so i have to deal with the problem myself.
Thanks in advance for any help.
The text was updated successfully, but these errors were encountered: