Skip to content

Allow RUNNING -> WAIT_FOR_CONFIRMATION via DDI 'denied' feedback - #3238

Open
herdt-michael wants to merge 1 commit into
eclipse-hawkbit:masterfrom
boschglobal:feature/issue-3220-revoke-confirmation
Open

Allow RUNNING -> WAIT_FOR_CONFIRMATION via DDI 'denied' feedback#3238
herdt-michael wants to merge 1 commit into
eclipse-hawkbit:masterfrom
boschglobal:feature/issue-3220-revoke-confirmation

Conversation

@herdt-michael

Copy link
Copy Markdown
Contributor

Extend the confirmation flow so a device can revoke a previously granted consent (auto- or manually confirmed) for an action that has not been installed yet, by sending 'confirmation: "denied"' to the existing confirmationBase/{actionId}/feedback endpoint.

  • Relax denyAction guard so a 'denied' feedback is accepted for any active action, not only while WAIT_FOR_CONFIRMATION. An already-confirmed active action reverts to WAIT_FOR_CONFIRMATION with no maintenance-window or progress gating.
  • Record a distinct ActionStatus audit-trail message for the revocation, separate from a first-time deny.
  • No new DDI endpoint or management API method is introduced.

Tests cover deny after auto-confirm, deny after manual confirm, subsequent base-resource poll offering confirmationBase again, and re-confirmation returning to RUNNING.

Fixes #3220

Extend the confirmation flow so a device can revoke a previously granted
consent (auto- or manually confirmed) for an action that has not been
installed yet, by sending 'confirmation: "denied"' to the existing
confirmationBase/{actionId}/feedback endpoint.

- Relax denyAction guard so a 'denied' feedback is accepted for any active
  action, not only while WAIT_FOR_CONFIRMATION. An already-confirmed active
  action reverts to WAIT_FOR_CONFIRMATION with no maintenance-window or
  progress gating.
- Record a distinct ActionStatus audit-trail message for the revocation,
  separate from a first-time deny.
- No new DDI endpoint or management API method is introduced.

Tests cover deny after auto-confirm, deny after manual confirm, subsequent
base-resource poll offering confirmationBase again, and re-confirmation
returning to RUNNING.

Fixes eclipse-hawkbit#3220

Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch.com>
@avgustinmm
avgustinmm requested a review from strailov July 31, 2026 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow action state change RUNNINGWAIT_FOR_CONFIRMATION via DDI denied feedback

2 participants