In the openBalena V2, the BALENA_SUPERVISOR_API_KEY
variable on each device is same with the api secret
field value in device
table of the openBalena database.
But seems it’s now encrypted or modified in V3.
We were using this to authenticate our devices on our custom web server.
Is there anyway to get this api secret
value from the supervisor api key of each device?
On balenaOS device:
root@viso:/usr/app# printenv | grep BALENA
BALENA_DEVICE_TYPE=intel-nuc
BALENA=1
BALENA_SUPERVISOR_HOST=127.0.0.1
BALENA_SERVICE_NAME=solution-manager
BALENA_APP_NAME=600fdf4460af6300135b184a-1
BALENA_APP_ID=13
BALENA_DEVICE_UUID=c65c923fe8f1b4951c4ee7713ed84115
BALENA_SERVICE_HANDOVER_COMPLETE_PATH=/tmp/balena/handover-complete
BALENA_DEVICE_ARCH=amd64
BALENA_SUPERVISOR_ADDRESS=http://127.0.0.1:48484
BALENA_HOST_OS_VERSION=balenaOS 2.67.0+rev1
BALENA_SUPERVISOR_PORT=48484
BALENA_DEVICE_NAME_AT_INIT=morning-bird
BALENA_SUPERVISOR_API_KEY=a9e7ba5f767b35b3e90be6305b500679
BALENA_APP_LOCK_PATH=/tmp/balena/updates.lock
But DB:
Thanks!