Implementing User Confirmation for Download/Install #156
Replies: 3 comments 11 replies
-
Hi, you're right, there is no support for hawkBit's new "confirmation" concept in rauc-hawkbit-updater, yet. rauc-hawkbit-updater would need to implement support for the new API end point We don't have any plans to implement this at the moment. We'd be happy to take a PR implementing this. If you need this in a commercial context, you could also contact Pengutronix (my employer) and let us implement this in rauc-hawkbit-updater. |
Beta Was this translation helpful? Give feedback.
-
I'd like to pick up the implementation of this feature and write down some design notes I have in mind. Please let me know if I should publish them elsewhere.
<node>
<interface name="de.pengutronix.rauc.InstallConfirmation">
<!--
ConfirmInstallationRequest:
@action_id: Internal Action ID coming from Hawkbit
@version: Component version coming from Hawkbit (not bundle version!)
Request a user software to confirm a new installation
-->
<method name="ConfirmInstallationRequest">
<arg name="action_id" type="i" direction="in"/>
<arg name="version" type="s" direction="in"/>
</method>
<!--
ConfirmationStatus:
@action_id: Should match the earlier installation request
@confirmation: "confirmed" or "denied"
@error_code: Optional error code
@details: Optional message with the details of reported status
This signal is emitted when a user software processed the request.
-->
<signal name="ConfirmationStatus">
<arg name="action_id" type="i"/>
<arg name="confirmation" type="s"/>
<arg name="error_code" type="i"/>
<arg name="details" type="s"/>
</signal>
</interface>
</node> It mirrors the information Hawkbit expects as feedback a bit. For example,
I would appreciate any feedback on this idea. |
Beta Was this translation helpful? Give feedback.
-
Hi @UVV-gh, I'm trying to put together some software running with your PR, however I'm a bit confused about what exactly should happen. I did set The other questions is related to how is this confirmation initiated on the HawkBits side? Should it come after a Soft Update? I'm running a hawkbit docker instance - the latest image, which is HawkBit 4.1 or later. |
Beta Was this translation helpful? Give feedback.
-
Hello,
Recently,
hawkbit
released a new version 0.3.0M8 https://github.com/eclipse/hawkbit/releases/tag/0.3.0M8 which included support for "Request confirmation for actions before proceeding with download/install process." option. As ststed in the release notes "The new feature facilitates the implementation of user consent requirements (e.g. as mandated by the European Tangible Goods Directive) by enhancing the action state machine with a new stateWAITING_FOR_CONFIRMATION
". It can be activated/set in hawkBit UI under System Config. Then the target needs to either setconfirmed
ordenied
to make an action available for download confirm-action. "The action will be transferred into theRUNNING
state in case the device is confirming it. Afterwards it will be exposed by the deploymentBase."I believe these operations are not currently part of
rauc-hawkbit-updater
.Is there any plan to support these operations in the next release of the client?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions