Skip to content
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

Consider allowing in process of deletion to receive commands/send data #324

Open
lulf opened this issue Sep 22, 2022 · 0 comments
Open

Consider allowing in process of deletion to receive commands/send data #324

lulf opened this issue Sep 22, 2022 · 0 comments

Comments

@lulf
Copy link
Member

lulf commented Sep 22, 2022

A useful pattern when writing Drogue Cloud extensions is to hook into the lifecycle of devices: when device is created, an operator can detect that and send commands to a device for it to 'initialize'.

The operator can add itself to finalizers for the device to ensure it can follow some process when the device is being deleted. This can be sending some command to the device, and also expecting some confirmation message back from the device, before the operator removes itself from the finalizers.

At present, the authentication service considers devices under deletion as unauthenticated, which prevents the above shutdown process. Changing this policy to allow devices under deletion to authenticate would allow extensions to hook into the 'shutdown lifecycle' of a device.

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

No branches or pull requests

1 participant