mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-06-23 17:53:32 +00:00
Don't let the bootstrap delete apiSecret from DB
This commit is contained in:
@ -1,3 +1,4 @@
|
|||||||
|
* Don't allow bootstrap to delete apiSecret from DB [Pablo]
|
||||||
* Add API endpoint to expire and create new API key [Pablo]
|
* Add API endpoint to expire and create new API key [Pablo]
|
||||||
* Enable control of API poll interval through Device Variables [Praneeth]
|
* Enable control of API poll interval through Device Variables [Praneeth]
|
||||||
* Allow control of VPN + TCP check + Pub nub logs with Device Environment variables [Praneeth]
|
* Allow control of VPN + TCP check + Pub nub logs with Device Environment variables [Praneeth]
|
||||||
|
@ -53,7 +53,7 @@ bootstrap = ->
|
|||||||
.then (userConfig) ->
|
.then (userConfig) ->
|
||||||
console.log('Finishing bootstrapping')
|
console.log('Finishing bootstrapping')
|
||||||
Promise.all([
|
Promise.all([
|
||||||
knex('config').truncate()
|
knex('config').whereIn('key', ['uuid', 'apiKey', 'username', 'userId', 'version']).delete()
|
||||||
.then ->
|
.then ->
|
||||||
knex('config').insert([
|
knex('config').insert([
|
||||||
{ key: 'uuid', value: userConfig.uuid }
|
{ key: 'uuid', value: userConfig.uuid }
|
||||||
|
Reference in New Issue
Block a user