mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-19 05:37:53 +00:00
Don't let the bootstrap delete apiSecret from DB
This commit is contained in:
parent
b57dd10e81
commit
7eb17bd79b
@ -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]
|
||||
* Enable control of API poll interval through Device Variables [Praneeth]
|
||||
* Allow control of VPN + TCP check + Pub nub logs with Device Environment variables [Praneeth]
|
||||
|
@ -53,7 +53,7 @@ bootstrap = ->
|
||||
.then (userConfig) ->
|
||||
console.log('Finishing bootstrapping')
|
||||
Promise.all([
|
||||
knex('config').truncate()
|
||||
knex('config').whereIn('key', ['uuid', 'apiKey', 'username', 'userId', 'version']).delete()
|
||||
.then ->
|
||||
knex('config').insert([
|
||||
{ key: 'uuid', value: userConfig.uuid }
|
||||
|
Loading…
Reference in New Issue
Block a user