drogue-iot / drogue-cloud

Cloud Native IoT
https://drogue.io
Apache License 2.0
113 stars 30 forks source link

[feat] Add a migration script to update devices credentials #349

Closed jbtrystram closed 1 year ago

jbtrystram commented 1 year ago

The script will migrate all devices credentials that are in an application. Usage: migration-script.sh eclipsecon-hackathon

ctron commented 1 year ago

I would also put the script under scripts/bin, not in the root of the repository.

jbtrystram commented 1 year ago

I would also put the script under scripts/bin, not in the root of the repository.

@ctron i integrated the script as a command for drgadm and moved it there with the other commands. Now it also keep the old field and merge the data if authentication already exists.